View unanswered posts | View active topics It is currently Wed Jun 19, 2013 3:45 pm



Reply to topic  [ 79 posts ]  Go to page: Previous  1, 2, 3, 4, 5, 6  Next
 AccuWeather Attachment Script 
Author Message

Joined: Feb 01, 2007
Posts: 127
Location: Haugesund, Norway
Post 
Anyone have a clue ? I cant figure it out!


Sun Dec 07, 2008 5:39 am
Profile
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post 
AWRefreshRate is a fixed value and will not change.
Have you defined this variable yourself or was it generated automatically via the attachment script?

_________________
"I tawt I taw a puddy tat!" Tweety


Sun Dec 07, 2008 6:26 am
Profile WWW

Joined: Feb 01, 2007
Posts: 127
Location: Haugesund, Norway
Post 
I defined it myself. Set it to 600.

Its a nono to do that ?


Sun Dec 07, 2008 7:59 am
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11815
Location: Texas
Post 
Did you follow all the steps in the Read Me. Namely, did you install the XML Tools? There are quite a few other steps involved as well it looks like.

_________________
Image


Sun Dec 07, 2008 8:20 am
Profile WWW

Joined: Feb 01, 2007
Posts: 127
Location: Haugesund, Norway
Post 
Yep, theres MANY steps :) I did install the XML tools and have also rebooted a couple of times. Also did an permissions check/repair an hour ago (none of this is in the readme, i just did it because its something ive never done(permissions)).


Sun Dec 07, 2008 10:10 am
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11815
Location: Texas
Post 
I'd suggest you start adding debug log lines (log to Indigo's Event Log) to the script until you isolate exactly which call is failing:
Code: Select all
log "got here 0001"

_________________
Image


Sun Dec 07, 2008 10:14 am
Profile WWW
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post 
FaTMax wrote:I defined it myself. Set it to 600.

Its a nono to do that ?

No. It's fine if you define it yourself.

_________________
"I tawt I taw a puddy tat!" Tweety


Sun Dec 07, 2008 10:16 am
Profile WWW

Joined: Feb 01, 2007
Posts: 127
Location: Haugesund, Norway
Post 
Ok, I´ll give the debug thing a try. Never done that before. Is it as easy as you wrote, and it just shows up in Indigo´s log file ?


Sun Dec 07, 2008 10:33 am
Profile

Joined: Feb 01, 2007
Posts: 127
Location: Haugesund, Norway
Post 
Ok, I´ll give the debug thing a try. Never done that before. Is it as easy as you wrote, and it just shows up in Indigo´s log file ?


Sun Dec 07, 2008 10:33 am
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11815
Location: Texas
Post 
Yes. I would also add a tell IndigoServer prefix like this:
Code: Select all
tell application "IndigoServer" to log "got here 0001"

_________________
Image


Mon Dec 08, 2008 8:20 am
Profile WWW

Joined: Apr 24, 2005
Posts: 44
Location: Essex Junction, Vermont
Post Weather & Snow Leopard
Been a long time since I messed with the AccuWeather script, don't remember much at all.

I just upgraded to Snow Leopard and the AccuWeather script produces errors:

Code: Select all
11/04/09 11:21:07 AM
  Time/Date Action   Fetch outside temperature
  Error              script error: in file "AccuWeather sync.scpt"
  Error              script error: "<xml>

<adc_Database>

   <WatchWarnAreas>
   <GmtDiff>
      -5
   </GmtDiff>
   <CurrentConditions>
      <City>
         Essex Junction
      </City>
      <State>
         VT
      </State>
      <DaylightSavingsActive></DaylightSavingsActive>
      <Time>
         11:00
      </Time>
      <Pressure>
         30.30
      </Pressure>
      <Temperature>
         39
      </Temperature>
      <RealFeel>
         33
      </RealFeel>
      <Humidity>56%</Humidity>
      <WeatherText>
         MOSTLY CLOUDY
      </WeatherText>
      <WeatherIcon>
         06
      </WeatherIcon>
      <WindSpeed>
         10
      </WindSpeed>
      <WindDirection>
         WNW
      </WindDirection>
      <Visibility>
         10
      </Visibility>
      <Precip>
         0.00
      </Precip>
      <UVIndex>
         0
      </UVIndex>
      <Copyright>AccuWeather, Inc.</Copyright>
   </CurrentConditions>
   <AirAndPollen>
      <Tree>N(0)</Tree>
      <Weed>N(0)</Weed>
      <Grass>N(0)</Grass>
      <Mold>N(0)</Mold>
      <AirQuality>G(20)</AirQuality>
      <AirQualityType>
         1
      </AirQualityType>
   </AirAndPollen>
   <Planets>
      <Sun>
<Moon>
<Mercury>
<Venus>
<Mars>
<Jupiter>
<Saturn>
<Uranus>
<Neptune>
<Pluto>

   </Planets>
   <Moon>
      
      <Phase>
         16
      </Phase>
      
      <Phase>
         17
      </Phase>
      
      <Phase>
         18
      </Phase>
      
      <Phase>
         19
      </Phase>
      
      <Phase>
         20
      </Phase>
      
      <Phase>
         21
      </Phase>
      
      <Phase>
         22
      </Phase>
      
      <Phase>
         23
      </Phase>
      
      <Phase>
         24
      </Phase>
      
      <Phase>
         25
      </Phase>
      
      <Phase date=\"1
  Error              error dispatching event to attachment script (-1753)
  Error              script error: "<xml>

<adc_Database>

   <WatchWarnAreas>
   <GmtDiff>
      -5
   </GmtDiff>
   <CurrentConditions>
      <City>
         Essex Junction
      </City>
      <State>
         VT
      </State>
      <DaylightSavingsActive></DaylightSavingsActive>
      <Time>
         11:00
      </Time>
      <Pressure>
         30.30
      </Pressure>
      <Temperature>
         39
      </Temperature>
      <RealFeel>
         33
      </RealFeel>
      <Humidity>56%</Humidity>
      <WeatherText>
         MOSTLY CLOUDY
      </WeatherText>
      <WeatherIcon>
         06
      </WeatherIcon>
      <WindSpeed>
         10
      </WindSpeed>
      <WindDirection>
         WNW
      </WindDirection>
      <Visibility>
         10
      </Visibility>
      <Precip>
         0.00
      </Precip>
      <UVIndex>
         0
      </UVIndex>
      <Copyright>AccuWeather, Inc.</Copyright>
   </CurrentConditions>
   <AirAndPollen>
      <Tree>N(0)</Tree>
      <Weed>N(0)</Weed>
      <Grass>N(0)</Grass>
      <Mold>N(0)</Mold>
      <AirQuality>G(20)</AirQuality>
      <AirQualityType>
         1
      </AirQualityType>
   </AirAndPollen>
   <Planets>
      <Sun>
<Moon>
<Mercury>
<Venus>
<Mars>
<Jupiter>
<Saturn>
<Uranus>
<Neptune>
<Pluto>

   </Planets>
   <Moon>
      
      <Phase>
         16
      </Phase>
      
      <Phase>
         17
      </Phase>
      
      <Phase>
         18
      </Phase>
      
      <Phase>
         19
      </Phase>
      
      <Phase>
         20
      </Phase>
      
      <Phase>
         21
      </Phase>
      
      <Phase>
         22
      </Phase>
      
      <Phase>
         23
      </Phase>
      
      <Phase>
         24
      </Phase>
      
      <Phase>
         25
      </Phase>
      
      <Phase date=\"1

_________________
Terry

I started off with nothing...I still have most of it left.


Wed Nov 04, 2009 10:29 am
Profile
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post 
I'm affraid the AccuWeather script is not compatible with Snow Leopard.
The reason is that it uses XML Tools and that piece doesn't work with SL.
We'll have to wait for an update that makes that part SL ready.
Until then you can't use the script.

But... the author of the XML Tools is already working on a fix and beta releases are available.
Please go to this link http://www.latenightsw.com/blog/?p=231 and try the beta for XML Tools.

_________________
"I tawt I taw a puddy tat!" Tweety


Wed Nov 04, 2009 10:36 am
Profile WWW

Joined: Apr 24, 2005
Posts: 44
Location: Essex Junction, Vermont
Post 
Ah. OK. Thanks for the info.

Just out of curiosity, are there other methods to get local temperature beside the AccuWeather script?

The only reason I use it is that I use the temperature info to control a light I installed in a refrigerator to stop the contents from freezing during the winter here in Vermont.

Of course I could just stop using it during the winter, but it always seems the main refrigerator isn't big enough at times.

Thanks

_________________
Terry

I started off with nothing...I still have most of it left.


Wed Nov 04, 2009 11:43 am
Profile
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post 
There's also a NOAA Weather Script that uses another technique to fetch data. Maybe that works with Snow Leopard.

_________________
"I tawt I taw a puddy tat!" Tweety


Wed Nov 04, 2009 12:18 pm
Profile WWW
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6856
Location: Austin, Texas
Post 
macpro wrote:There's also a NOAA Weather Script that uses another technique to fetch data. Maybe that works with Snow Leopard.


Yes, the NOAA script that ships with Indigo works on Snow Leopard. Be sure to get the latest version that ships with 4.1.1 - it has better error reporting.

_________________
Jay (Indigo Support)
Image


Wed Nov 04, 2009 1:11 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 79 posts ]  Go to page: Previous  1, 2, 3, 4, 5, 6  Next

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.