jay (support) wrote:It looks like your NOAA script has gotten altered somehow - the one we ship with Indigo doesn't attempt to talk to TextEdit for any reason. I'd recommend making sure you have the shipping version of the script installed and that's the one that's being launched.
If you're using Indigo 5 you might want to switch to the NOAA plugin - it should be a little more robust.
jay (support) wrote:Check out the documentation for the plugin (available by selecting "About NOAA Weather" menu item on the NOAA Weather plugin menu) - rather than update variables with data, the plugin allows you to define weather station devices in the device dialog. You can then use the states in those devices in triggers, conditions, and control pages just like you use any other device. You can have as many different weather station devices if you like to keep track of weather at multiple locations.
jay (support) wrote:It looks like your NOAA script has gotten altered somehow - the one we ship with Indigo doesn't attempt to talk to TextEdit for any reason. I'd recommend making sure you have the shipping version of the script installed and that's the one that's being launched.
If you're using Indigo 5 you might want to switch to the NOAA plugin - it should be a little more robust.
/Library/Application Support/Perceptive Automation/Indigo 5/Scripts/Background Tasks/Weather NOAA sync.scpt
jay (support) wrote:Weather station devices update every 30 minutes - but you'll only see data changes once an hour because that's how frequently NOAA updates their data.
Not sure what's going on with your script - the one built-in doesn't reference TextEdit in any way. Sounds like you have some other systemic problem. You might try to open that script in Script Editor and run it yourself - hopefully it will show you more precisely where it's failing. I just ran that script on my Mac here and it's running fine. Make sure your starting up this script:
- Code: Select all
/Library/Application Support/Perceptive Automation/Indigo 5/Scripts/Background Tasks/Weather NOAA sync.scpt
on GetXMLfile()
try
tell application "URL Access Scripting.app"
--http://www.weather.gov/xml/current_obs/KBUR.xml
«event aevtdwnl» "http://www.weather.gov/xml/current_obs/" & NOAA_Station & ".xml" given «class fdst»:file myFile, «class rplc»:«constant erplyes »
-- work around -31040 error:
tell application "URL Access Scripting.app" to quit
end tell
return true
on error errString number errNum
LogNOAA("GetXMLfile", errString, errNum)
return false
end try
end GetXMLfile
Users browsing this forum: No registered users and 26 guests