NOAA Weather Script

Posted on
Sat Jan 21, 2006 12:12 pm
Threadhead offline
Posts: 53
Joined: Oct 16, 2004
Location: Phoenix, AZ

NOAA Weather Script

I created this swanky little script for all you kiddies that pulls the latest weather information from the NOAA website and put them into Indigo variables. Yummy!

NOAA Weather Script

Give it a try and let me know how it works for you.

Cheers.
Karl
Last edited by Threadhead on Sun Dec 31, 2006 12:29 pm, edited 1 time in total.

Posted on
Sun Jan 22, 2006 12:28 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: NOAA Weather Script

Thanks Karl! I'm looking forward to playing with it.

Regards,
Matt

Posted on
Sun Jan 22, 2006 3:39 pm
dtich offline
Posts: 798
Joined: Sep 24, 2005

(No subject)

excellent script karl, thanks!

Posted on
Tue Jan 31, 2006 6:25 pm
kalan offline
Posts: 26
Joined: Jan 25, 2006

NOAA Script

This works very well...but I'm wondering what part of this information would be a variable test for rain to tell Indigo not to water the lawn. Now, don't laugh, but the best I can come up with is: water the lawn unless Humidity is > 100.

Posted on
Wed Feb 01, 2006 12:44 pm
Threadhead offline
Posts: 53
Joined: Oct 16, 2004
Location: Phoenix, AZ

(No subject)

Since the humidity is 'relative humidity', then 100% would be raining. So I would say that if the relative humidity is say >98% or so, it's a good bet that it's raining outside.

However, it really depends on how close you are to the reporting station and the geographic differences in your area. Here in AZ, it can be outright pouring rain only a few block away, and you get not a drop. Also, we have a contidion in the summer called 'verga' where it rains, but the water evaporates before it hits the ground. So you can see the rain a few hundred feet above your head, but it doesn't hit you.

BTW, we are on day number 107 without a single drop of rain, an all time record. And it's nearly 80 degrees outside. 8)

Posted on
Thu Feb 02, 2006 4:40 pm
dtich offline
Posts: 798
Joined: Sep 24, 2005

(No subject)

yes, i did a little research for mine, and set the humidity threshold at 87% for raining. that is based on what the measured humidity was in my area when it was actually raining. varies w/ location. and with temp. the real thing is to work up an index that takes dew point and temp trends into account as well as rh. still working on that... : )

Posted on
Sat Feb 04, 2006 10:14 am
LaDan offline
Posts: 16
Joined: Jan 30, 2005
Location: Michigan

Re: NOAA Weather Script

This is way kool. It worked perfectly on the first try.
Is it possible to "speak" the information that will be stored in the variables list?

Posted on
Tue Feb 21, 2006 10:55 am
hernandezarturo offline
Posts: 6
Joined: Jan 04, 2006

NOAA Weather Script

Great Script! On cloudy days, I'd like to have my lights turn on a little earlier and turn off a litlle later. I tried to modify the script to get the weather variable with little success. I thought about using visibility but not sure if I can do it that way.

Any ideas?

Thanks,

Arturo

Posted on
Tue Feb 21, 2006 11:47 pm
Threadhead offline
Posts: 53
Joined: Oct 16, 2004
Location: Phoenix, AZ

(No subject)

Arturo,
Shouldn't be a problem. Just remember that all variables are stored as strings and you will need to convert them to numbers (integers) before you can do any comparison or math.

Posted on
Wed Feb 22, 2006 8:43 am
hernandezarturo offline
Posts: 6
Joined: Jan 04, 2006

NOAA Weather Script

Just wondering. Could I get the weather variable (cloudy, foggy, etc) as well? I don't see it in the list. Then I could use this as a condition to turn my lights on early or turn them off later. I am a novice at apple script. Any hints are greatly appreciated.

Thanks,

Arturo

Posted on
Wed Feb 22, 2006 9:04 am
Threadhead offline
Posts: 53
Joined: Oct 16, 2004
Location: Phoenix, AZ

(No subject)

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:

Posted on
Fri Feb 24, 2006 1:59 pm
hernandezarturo offline
Posts: 6
Joined: Jan 04, 2006

noaa weather script

We get sunny, too. But it can go from sunny to rainy to sunny again in 20 minutes. I actually think I can get what I want by dividing relative humidity by visibility. I am going to play around with what values correspond to it getting darker at dusk. Any hints about how to convert the noaa text values to numbers?

Arturo

Posted on
Fri Feb 24, 2006 8:40 pm
Threadhead offline
Posts: 53
Joined: Oct 16, 2004
Location: Phoenix, AZ

(No subject)

You can only convert the variables (which are all strings) to number via AppleScript.

Posted on
Tue Feb 28, 2006 10:08 am
hernandezarturo offline
Posts: 6
Joined: Jan 04, 2006

NOAA Weather Script

I tried by doing this but it says it cannot conver that class of variables.

Here is the code.


tell application "Indigo"
set vismi to value of variable "NOAA_Visiblity_mi" as integer
end tell

Arturo

Posted on
Wed Mar 29, 2006 10:21 pm
jjuhnke offline
Posts: 20
Joined: Feb 11, 2006

Has anyone else had this problem

I'm trying to run the NOAA script. I edited the user defined varialbles and created a timed event in Indigo. I get the follwoing error when running the script.


Mar 29, 2006 10:13 PM
Time/Date Action Weather Script Update
NOAA Weather NOAA Weather Script Starting.
NOAA Weather ParseXML:NSCannotCreateScriptCommandError(10)

I must be doing something wrong.

I'm running OS X Server 10.3.9 and the script runs fine on my laptop running OS X 10.4.5. Both are on the same network. HUH....

Who is online

Users browsing this forum: No registered users and 6 guests