OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) sprinklers_pi – An alternative sprinkler control program Re: Re: sprinklers_pi – An alternative sprinkler control program

#24974

LLMoon
Member

For you guys who want to pull data from your personal weather station, you may be able to do that by entering “pws:XXXXXXXXXX” in the ZIP field on the settings screen. (where XXXXXXXX is your personal station ID).

I have not tried this, but the code appears to place the ZIP directly in the HTML query field. There are a number of different query formats, listed below and in the link. You may need to change the ZIP field type from numeric to text in web.cpp, etc. and then rebuild.

Here is the format for the query field from wunderground API documentation. I think you could enter any of these query strings in the ZIP field if it is stored as a string.

from http://www.wunderground.com/weather/api/d/docs?d=data/index
query
The location for which you want weather information. Examples:
CA/San_Francisco (US state/city)
60290 (US zipcode)
Australia/Sydney (country/city)
37.8,-122.4 (latitude,longitude)
KJFK (airport code)
pws:KCASANFR70 (PWS id)
autoip (AutoIP address location)
autoip.json?geo_ip=38.102.136.138 (specific IP address location)