| Author |
Message |
|
ckeyes888
Joined: Nov 26, 2009 Posts: 927 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
|
| Thu Aug 18, 2011 12:19 pm |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6664 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)
|
| Thu Aug 18, 2011 1:13 pm |
|
 |
|
ckeyes888
Joined: Nov 26, 2009 Posts: 927 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
|
| Thu Aug 18, 2011 1:18 pm |
|
 |
|
bschollnick2
Joined: Oct 17, 2004 Posts: 1116 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
|
| Fri Aug 19, 2011 4:30 am |
|
 |
|
ckeyes888
Joined: Nov 26, 2009 Posts: 927 Location: Kalispell, MT
|
 Re: NOAA Weather Script
Thanks Ben, I'll check that out.
Carl
|
| Sat Aug 20, 2011 3:34 pm |
|
 |
|
anyone
Joined: Apr 03, 2011 Posts: 1
|
 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?
|
| Sun Aug 21, 2011 8:57 pm |
|
 |
|
bschollnick2
Joined: Oct 17, 2004 Posts: 1116 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
|
| Mon Aug 22, 2011 3:13 am |
|
 |
|
editordz
Joined: Dec 01, 2006 Posts: 47 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
|
| Tue Aug 23, 2011 6:21 pm |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6664 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)
|
| Tue Aug 23, 2011 6:57 pm |
|
 |
|
Brandt
Joined: Dec 24, 2008 Posts: 386 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 6.x w/ Dual-Band PLM 2413U Mac OS X 10.6.x Snow Leopard 2006 Mac Mini Core Solo
|
| Wed Aug 24, 2011 3:00 pm |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6664 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)
|
| Wed Aug 24, 2011 4:35 pm |
|
 |
|
Brandt
Joined: Dec 24, 2008 Posts: 386 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 6.x w/ Dual-Band PLM 2413U Mac OS X 10.6.x Snow Leopard 2006 Mac Mini Core Solo
|
| Wed Aug 24, 2011 4:42 pm |
|
 |
|
Brandt
Joined: Dec 24, 2008 Posts: 386 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.phpI 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 6.x w/ Dual-Band PLM 2413U Mac OS X 10.6.x Snow Leopard 2006 Mac Mini Core Solo
|
| Wed Aug 24, 2011 5:57 pm |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6664 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)
|
| Wed Aug 24, 2011 7:29 pm |
|
 |
|
buckaroo
Joined: Dec 01, 2011 Posts: 6
|
 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.htmlThe 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?
|
| Wed Dec 14, 2011 2:45 pm |
|
|
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
|
|