Weather Underground API's?


(Av8rdude) #1

Is astronomy the only data feature available from Weather Underground? I have been trying to use conditions and get a return of null…makes me think smart things is not subscribed to the conditions API?
Thanks,
Scott


(Av8rdude) #2

I’m trying to get the local wind speed from weather underground. Here is my code…what am I doing wrong?

def data = getWeatherFeature( "conditions", zipcode )
log.debug( "Current windspeed in ${zipcode} is ${data.wind_mph} mph")

TIA,
Scott


(Brian Steere) #3

@av8rdude try data.current_observation.wind_mpg


(Av8rdude) #4

@Dianoga that did the trick! Thanks for the help.


(Av8rdude) #5

@Dianoga Where did you find the correct api call? I have found their documentation and it doesn’t show the “current_observation” part?

I appreciate your time,
Scott


(Av8rdude) #6

Oops…the link disappeared:
http://www.wunderground.com/weather/api/d/docs?d=data/conditions


(Brian Steere) #7

If you look at the json response from wunderground, the field you wanted was enclosed in the current_observation object.


(John O) #8

Sorry for bumping an old post…

I would really like to use the data from my particular weather station since where I live (a rural mountainous area) one zip code covers a tremendous area. My station ID is KCALOSGA37 (see http://www.wunderground.com/personal-weather-station/dashboard?ID=KCALOSGA37). Is there a call that references the ID instead of the zip code?

Thanks
John O


(Brian Steere) #9

If memory serves, use pws:KCALOSGA37 instead of the zipcode

But I’m not entirely sure. It’s been discussed elsewhere if you want to try searching.


(DLee) #10

Yep. Station id in place of zip.