View unanswered posts | View active topics It is currently Fri May 24, 2013 5:13 pm



Reply to topic  [ 175 posts ]  Go to page: Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 12  Next
 NOAA Weather Script 
Author Message
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6665
Location: Austin, Texas
Post Re: NOAA Weather
DataBoy wrote:I'm getting this error when I run the script. OSX 10.5.8 on a mini duo.

Sep 18, 2009 4:49:59 PM
Trigger Action NOAA Weather trigger
Weather NOAA SendToIndigo:IndigoServer got an error: A descriptor type mismatch occurred.(-10001)


See this thread for details.

_________________
Jay (Indigo Support)
Image


Fri Sep 18, 2009 5:13 pm
Profile WWW

Joined: Mar 09, 2008
Posts: 183
Post Re: NOAA Weather Script
After getting a timeout error on the NOAA script
Code: Select all
GetXMLfile:URL Access Scripting got an error: AppleEvent timed out.(-1712)

and giving up on troubleshooting (I can go to the page manually via Safari, but the file's not being written; have no idea why URL Access Scripting is misbehaving) I found Berkinet's post about using cURL instead of URL Access Scripting, which works well (Thanks, Richard!).

In addition to his change, I found it necessary to modify one other line in the NOAA script:
Code: Select all
tell application "Finder"
         set myFile to ((path to temporary items) as string) & "noaa_sync_temp.xml"
      end tell


Needs to be:
Code: Select all
tell application "Finder"
         set myFile to POSIX path of ((path to temporary items) as string) & "noaa_sync_temp.xml"
      end tell


Without the "POSIX path of" operator, the file is written to the root directory of the hard drive with a file name consisting of the classic Macintosh path (using colons instead of backslashes). (The script still works without this change, but the root directory is not the best place for temp file storage). Evidently the "path to" function still uses colons internally.


Mon Oct 11, 2010 12:54 pm
Profile
Post Re: NOAA Weather Script
Within the last day or so this script stopped updating variables. It will update variables if i stop then restart the server, but no longer after that...anyone else having this problem?


Sun Nov 28, 2010 5:43 am
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6665
Location: Austin, Texas
Post Re: NOAA Weather Script
Still running for me. Is the script itself still running in the background?

_________________
Jay (Indigo Support)
Image


Sun Nov 28, 2010 9:15 am
Profile WWW
Post Re: NOAA Weather Script
jay wrote:Still running for me. Is the script itself still running in the background?

It is. I can see it load when I start the server. If I hids Indigo it keeps updating. If I quit Indigo but not stop the server it doesn't update like it used to.


Sun Nov 28, 2010 9:49 am
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6665
Location: Austin, Texas
Post Re: NOAA Weather Script
That's really odd since the client (UI) has nothing to do with scripts running against the server. Are you sure you have the server configured to run separately from the client?

_________________
Jay (Indigo Support)
Image


Sun Nov 28, 2010 12:43 pm
Profile WWW
Post Re: NOAA Weather Script
As far as I know. How do I check?


Sun Nov 28, 2010 1:06 pm
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6665
Location: Austin, Texas
Post Re: NOAA Weather Script
Make sure in the "Start Local Server..." dialog (Indigo 4 menu) that you have "Start and connect to Indigo Server on this computer" selected (second radio button).

If you have that set, then quit the Indigo client app, open the Terminal application, and paste in the following command:

Code: Select all
ps -axwww | grep Indigo


and then paste the results in to a reply post.

_________________
Jay (Indigo Support)
Image


Sun Nov 28, 2010 1:52 pm
Profile WWW
Post Re: NOAA Weather Script
Study-iMac-2:~ Karen$ ps -axwww | grep Indigo
35661 ?? 1:03.86 /Library/Application Support/Perceptive Automation/Indigo 4/IndigoServer.app/Contents/MacOS/IndigoServer
35662 ?? 0:42.54 python /Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/IndigoWebServer.py -i1176 -w8176 -cfn
35663 ?? 0:24.48 python /Library/Application Support/Perceptive Automation/Indigo 4/IndigoSqlClient/IndigoSqlClient.py -i1176
35664 ?? 3:25.51 /usr/bin/osascript /Library/Application Support/Perceptive Automation/Indigo 4/Scripts/Background Tasks/iTunes sync.scpt
35665 ?? 3:11.39 /usr/bin/osascript /Library/Application Support/Perceptive Automation/Indigo 4/Scripts/Background Tasks/Weather NOAA sync.scpt
38023 ttys000 0:00.00 grep Indigo


Sun Nov 28, 2010 3:07 pm

Joined: Aug 07, 2003
Posts: 51
Location: State College, PA
Post Re: NOAA Weather Script
I've been running the NOAA Weather script for some time now. Recently, I noticed the event log showing the following:

Weather NOAA Weather NOAA Script Started
Weather NOAA Variable "Weather_Pressure" is not present in the NOAA data file.
Weather NOAA Variable "Weather_Pressure_mb" is not present in the NOAA data file.
Weather NOAA Weather NOAA Script Finished

Not sure how long this has been going on, but I haven't changed anything in the script in a long time. Something change at the NOAA site?


Tue Jan 11, 2011 5:41 pm
Profile WWW
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6665
Location: Austin, Texas
Post Re: NOAA Weather Script
Interesting - because NOAA periodically removes data from it's XML file, I added those log lines so that users who have fields configured to populate that NOAA no longer provides will know why the values aren't getting updated.

However, they're populating for me. I wonder if maybe it's a problem with the specific station you're getting data from...

Anyway, to stop those messages, change the following lines at the top of the script to false:

Code: Select all
property GetPressureString : true
property GetPressureMB : true

_________________
Jay (Indigo Support)
Image


Tue Jan 11, 2011 5:57 pm
Profile WWW

Joined: Apr 01, 2003
Posts: 823
Location: Rio Rancho, NM
Post Re: NOAA Weather Script
I'm having a problem with this NOAA Sync Script. It I have the trigger set up to run at indigo start up. The script runs fine at start up but doesn't seem to update after that but no errors in the log. The only way I can get it to run again is to restart the server.

Ideas?

_________________
Greg In The Desert


Sun Jan 23, 2011 8:32 pm
Profile WWW

Joined: Apr 01, 2003
Posts: 823
Location: Rio Rancho, NM
Post Re: NOAA Weather Script
I found the issue. I am also running a start up action for TED per this script: viewtopic.php?p=20257#p20257

Looks like indigo can run one or the other.

_________________
Greg In The Desert


Mon Jan 24, 2011 12:23 am
Profile WWW
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6665
Location: Austin, Texas
Post Re: NOAA Weather Script
Odd - one shouldn't have anything to do with the other...

_________________
Jay (Indigo Support)
Image


Mon Jan 24, 2011 10:35 am
Profile WWW

Joined: Apr 01, 2003
Posts: 823
Location: Rio Rancho, NM
Post Re: NOAA Weather Script
I can repeat it. The NOAA sync script will run fine and repeat until I start the TED script. I don't get any more updates from the NOAA script after.

_________________
Greg In The Desert


Mon Jan 24, 2011 2:13 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 175 posts ]  Go to page: Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 12  Next

Who is online

Users browsing this forum: No registered users and 1 guest


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.