Programming the Weather Underground API?

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Programming the Weather Underground API?

Post by Fangbeast »

Has anyone done any programming for the Weather Underground API?

Just (Finally!) got a new weather station to replace the one cooked by the OZ sun and then had a look at the API involved and keeled over in fright:):)

Got it connected to the Weather Underground and I can copy and paste the daily data but it will become a chore very soon.
Amateur Radio, D-STAR/VK3HAF
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Programming the Weather Underground API?

Post by Fangbeast »

Not as bad as I thought it would be. I can get the daily weather for any particular date via the below query.

https://api.weather.com/v2/pws/history/ ... EvaYoKeyIz

The API doesn't seem to support monthly queries but getting all daily data isn't a problem and the responses are all JSON so that is a big help.

Then I just put acceptable data into the SQLITE database based on time and date to reject duplicates if I add this to the database more than once a day.
Amateur Radio, D-STAR/VK3HAF
Post Reply