View unanswered posts | View active topics It is currently Tue Jun 18, 2013 3:32 pm



Reply to topic  [ 175 posts ]  Go to page: Previous  1, 2, 3, 4, 5, 6 ... 12  Next
 NOAA Weather Script 
Author Message

Joined: Dec 21, 2005
Posts: 25
Post 
I'm seeing virtually the same error as peppop:

script error: Can't get item 2 of {"Dec3111:53amEST"}.
script error: error dispatching event to attachment script (-1753)script script error: Can't get item 2 of {"Dec3111:53amEST"}.


Sun Dec 31, 2006 11:50 am
Profile

Joined: Apr 01, 2003
Posts: 823
Location: Rio Rancho, NM
Post 
Yeah, my script is broken. It's a date formatting issue or something. Haven't had time to fix it.

Sorry.

_________________
Greg In The Desert


Sun Dec 31, 2006 11:52 am
Profile WWW

Joined: Oct 16, 2004
Posts: 53
Location: Phoenix, AZ
Post 
I moved the script file on my website and forgot to update the link at the beginning of the thread. The link is corrected now.

If anyone could not download, please try again. Any problems, just PM me.


Sun Dec 31, 2006 12:32 pm
Profile

Joined: Oct 16, 2004
Posts: 53
Location: Phoenix, AZ
Post 
pwfletcher wrote:Is there any way that I can modify your script to get Tide information for my area as well???

Not that I know of. The NOAA site does not include tide info in their broadcast. It's mainly for pilots and airports. You would have to pull it from another website.

Sorry.


Sun Dec 31, 2006 12:36 pm
Profile
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post 
A while ago I made the AccuWeather script based upon Threadhead's NOAA Weather script.
Although the idea of both scripts is the same, they are using different ways to collect and process the weather info.

Yesterday, sepstein asked if my AccuWeather script could be modified to fetch data from NOAA Weather. The reason is that Threadhead's script only works on OS X 10.4, where my AccuWeather script also works on OS X 10.3.

So I've made a NOAA Weather Script for all of you who are still running OS X 10.3.

NOAA Weather Script 2

Enjoy!

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


Sun Feb 25, 2007 1:57 am
Profile WWW
User avatar

Joined: Jan 16, 2007
Posts: 115
Location: Chicago
Post 
I just wanted to say thanks
Not only the scripts but also for the instructions and notes you offer with the scripts.
They are very concise and informative.

It has really helped me to have a better insight on the script workings.

I just set up an irrigation schedule based on polling the relative humidity
from the NOAA weather script.

_________________
Skype : cosmuk


Tue Feb 27, 2007 6:31 pm
Profile WWW

Joined: Apr 02, 2006
Posts: 117
Location: Philadelphia, PA
Post 
Threadhead wrote:You can only get what NOAA supplies. And all the fields can be turned on/off in the top portion of the script.

So, there is no "cloudy" or "fair" field, only a condition. And to be honest, I don't know all the possibilities that could be expressed in the condition. Here in AZ, we only get to see one condition: sunny :wink:


NOAA lists all of the possible weather conditions here.

Also includes some graphics that you might want to include on a control page, eh?

Byron

_________________
Mac mini 1.25, 1024MB RAM; Indigo 2.0


Wed Mar 28, 2007 3:27 pm
Profile

Joined: Apr 02, 2006
Posts: 117
Location: Philadelphia, PA
Post 
gregjsmith wrote:I've updated this script to 1.1. My changes include:

    Changing the observation time to be a applescript friendly format.
    It's now an attachment and can be run using the function GetNOAAData().
    It auto generates the trigger to run the function every 15 minutes. Just create startup action with the GetNOAAData function and that's all that should be needed.


How does one do that?

Byron

_________________
Mac mini 1.25, 1024MB RAM; Indigo 2.0


Wed Mar 28, 2007 3:36 pm
Profile

Joined: Apr 02, 2006
Posts: 117
Location: Philadelphia, PA
Post 
gregjsmith wrote:Yeah, my script is broken. It's a date formatting issue or something. Haven't had time to fix it.

Sorry.


I made this work.

I commented out all of the stuff about ConvertDate ans SubDate and removed the one place where ConvertDate was called (the line that now reads set NextActionTime to (current date) + 15 * minutes)

It remains to be seen if the time still works, but if not, I can always to a Time/Date trigger.

_________________
Mac mini 1.25, 1024MB RAM; Indigo 2.0


Mon Apr 02, 2007 8:32 pm
Profile

Joined: Jul 23, 2006
Posts: 79
Post 
I'm running the background task version "Weather NOAA sync" script. It was working great for a while. Now I get this error constantly:

May 17, 2007 10:25:37 AM
Weather NOAA Weather NOAA Script Started

May 17, 2007 10:25:52 AM
Weather NOAA GetXMLfile:URL Access Scripting got an error: AppleEvent timed out.(-1712)
Weather NOAA Weather NOAA Script Finished


Could you please tell me what this means? Thanks.

Also, to the guy who wrote the AccuWeather scipt, do you have a background task version? Thanks.


Thu May 17, 2007 8:48 am
Profile
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post 
czvi wrote:Also, to the guy who wrote the AccuWeather scipt, do you have a background task version? Thanks.

You can find it here.

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


Thu May 17, 2007 10:03 am
Profile WWW

Joined: Jul 23, 2006
Posts: 79
Post 
Thanks, macpro!

Is it my imagination, or do you have

getItem(theCurrentConditions, "Humidity", "")

in the script twice?


Thu May 17, 2007 12:32 pm
Profile
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post 
No, it's not your imagination.
There are two lines to get humidity info.

[BS modus] I'll change the "read me" in the next release to give info when to use the first one and when to use the second one. :wink: [/BS modus]

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


Thu May 17, 2007 12:45 pm
Profile WWW

Joined: Sep 07, 2005
Posts: 82
Location: NY
Post 
I'm getting the same error as czvi was above,
GetXMLfile:URL Access Scripting got an error: AppleEvent timed out.(-1712)

Started sometime Saturday afternoon. I've tried changing NOAA locations (KNYC, KJFK, KLGA) to no avail. Anyone know what might be causing this ?

Thanks,

Ken


Mon Jul 28, 2008 1:27 pm
Profile

Joined: Oct 16, 2004
Posts: 53
Location: Phoenix, AZ
Post 
Since it's been a day or so, has the script started working again?


Tue Jul 29, 2008 12:12 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 175 posts ]  Go to page: Previous  1, 2, 3, 4, 5, 6 ... 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.