gw2pvo
gw2pvo copied to clipboard
Adding Open Weather support
Hi @jakezp,
I've added your changes to my local install and signed up at openweathermap.org.
I keep getthing these errors though:
WARNING 401 Client Error: Unauthorized for url: https://api.openweathermap.org/data/2.5/onecall?lat=XXX&lon=XXX&units=metric&exclude=minutely,hourly,daily,alerts&appid=XXX
On https://openweathermap.org/appid they have a slightly different way of calling the api:
http://api.openweathermap.org/data/2.5/forecast?id=524901&appid=[{API key}]
Do I have to sign up for one of their paid API services, or should this work with the free one that comes automatically after signing up?
Cheers
Got it, signed up for the free OneCall 3.0 API. Took a few minutes until it was activated and I stopped getting the error.
Also, the ow_api.py needs to be updated to reflect the new API version from:
https://api.openweathermap.org/data/2.5/onecall?... to https://api.openweathermap.org/data/3.0/onecall?...