NOAA Weather Script

Posted on
Thu Aug 18, 2011 12:19 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: NOAA Weather Script

Since my NOAA script rarely refreshes correctly according to how the "property variableRefreshRate : 15 * 60" line of code is set, is there any problem in just deleting that
line and executing at set intervals from within Indigo?

Thanks,

Carl

Posted on
Thu Aug 18, 2011 1:13 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: NOAA Weather Script

Not really - but you should note that NOAA only updates the file once an hour - so no matter how quickly you ask for an update you'll just continue to get the same values until the next update. We picked a polling time of 30 minutes so that the oldest the data can be is 30 minutes (if it updates the file just before the poll then the next poll will get the update - 30 minutes later).

Updating more frequently than that has little benefit given that it's 60 minutes between refreshes at the NOAA side.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Aug 18, 2011 1:18 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: NOAA Weather Script

Thanks Jay. I realize it's only updated every hour or so but my problem is the script
simply stops refreshing altogether for many hours at a time. I'd prefer, if possible,
to trigger it myself periodically and not rely on the code in the script to refresh the info.

When I do execute the script from within Indigo it always refreshes the data.

Thanks,

Carl

Posted on
Fri Aug 19, 2011 4:30 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: NOAA Weather Script

ckeyes888 wrote:
Thanks Jay. I realize it's only updated every hour or so but my problem is the script
simply stops refreshing altogether for many hours at a time. I'd prefer, if possible,
to trigger it myself periodically and not rely on the code in the script to refresh the info.

When I do execute the script from within Indigo it always refreshes the data.


An alternative is to take a look at the Weather Conditions plugin ( http://dl.dropbox.com/u/241415/Indigo%2 ... 0v0981.zip )as well. It allows you to set the timed refresh interval, and you can set a trigger action to force a refresh of the weather information as well...

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Aug 20, 2011 3:34 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: NOAA Weather Script

Thanks Ben, I'll check that out.

Carl

Posted on
Sun Aug 21, 2011 8:57 pm
anyone offline
User avatar
Posts: 125
Joined: Apr 03, 2011
Location: Norfolk, VA

Re: NOAA Weather Script

bschollnick2 wrote:
ckeyes888 wrote:
Thanks Jay. I realize it's only updated every hour or so but my problem is the script
simply stops refreshing altogether for many hours at a time. I'd prefer, if possible,
to trigger it myself periodically and not rely on the code in the script to refresh the info.

When I do execute the script from within Indigo it always refreshes the data.


An alternative is to take a look at the Weather Conditions plugin ( http://dl.dropbox.com/u/241415/Indigo%2 ... 0v0981.zip )as well. It allows you to set the timed refresh interval, and you can set a trigger action to force a refresh of the weather information as well...

- Ben


Ben, does it work with Indigo 4?

Posted on
Mon Aug 22, 2011 3:13 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: NOAA Weather Script

Ben, does it work with Indigo 4?


Sadly no. I didn't see the thread was related to Indigo v4.... It's a python based plugin, so it's Indigo v5 only...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Aug 23, 2011 6:21 pm
editordz offline
Posts: 67
Joined: Dec 01, 2006
Location: Sherman Oaks, CA

Re: NOAA Weather Script

The link on the first page no longer works (domain expired). Could someone post a version of the NOAA script somewhere? Mine has stopped working and I would like a fresh version to start trouble shooting.

Thanks!,
Dan

Posted on
Tue Aug 23, 2011 6:57 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: NOAA Weather Script

The NOAA script ships with Indigo. If you are using Indigo 5, the next beta (in the next day or so) will include a NOAA plugin that should be much more reliable.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Aug 24, 2011 3:00 pm
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: NOAA Weather Script

Is it a script or a plugin? I didn't see the wiki page for it populated yet.

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Wed Aug 24, 2011 4:35 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: NOAA Weather Script

He's talking about the NOAA Weather AppleScript. I'm referring to the new plugin. The About menu item under the "NOAA Weather" plugin takes you to it's wiki page.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Aug 24, 2011 4:42 pm
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: NOAA Weather Script

jay wrote:
He's talking about the NOAA Weather AppleScript. I'm referring to the new plugin. The About menu item under the "NOAA Weather" plugin takes you to it's wiki page.



Thanks. I think the link here needs to be updated: http://www.perceptiveautomation.com/wik ... :documents

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Wed Aug 24, 2011 5:57 pm
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: NOAA Weather Script

This looks to be the page for current condition phrases:

http://www.weather.gov/xml/current_obs/weather.php


I just wanted to use it as a trigger to check for rain and disable irrigation, but this is a lot of phrases and there is no string matching!

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Wed Aug 24, 2011 7:29 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: NOAA Weather Script

Using the NOAA currentCondition state to determine whether to water or not is most definitely not something I would do for a variety of reasons. However, you could have a trigger that fires whenever the currentConditions state changes that gets the state value, does string matching to determine if it's raining, then sets a variable. All that of course can now be done very easily in an embedded Python script action. Then you could use that variable as the condition in your sprinkler schedule.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Dec 14, 2011 2:45 pm
buckaroo offline
Posts: 6
Joined: Dec 01, 2011

Re: NOAA Weather Script

hammer32 wrote:
Hello,

I'm getting this error, I'm pretty sure it's from the NOAA Weather Script:

GetXMLfile:An error of type -10810 has occurred.(-10810)

Is anyone else getting it also?

Thanks!



OK, I think this script is the cause of a Macintosh error -10810. A full description of the condition can be found at: http://www.thexlab.com/faqs/error-10810.html

The issue is as others have noted, the script launches a ton of daughter processes, and this can fill the process table within MacOS X. The OS then refuses to launch another process until one is killed.

Jay, I'm not sure if this is correct, but I have a sneaking suspicion I'm on to something. I've been experiencing the -10810 error recently, and now I recall that I recently installed roof cables and I'm using the weather script to determine if I need to turn them on. A quick look in the Activity Monitor app confirms that IndigoServer is launching many osascript processes (about 100 on my machine right now)!

Any solutions?

Steve

Can we devise a way to kill the unused processes?

Who is online

Users browsing this forum: No registered users and 13 guests