gw2pvo icon indicating copy to clipboard operation
gw2pvo copied to clipboard

Adding Open Weather support

Open jakezp opened this issue 5 years ago • 2 comments

jakezp avatar Oct 12 '20 07:10 jakezp

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

JWDebler avatar May 02 '23 06:05 JWDebler

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?...

JWDebler avatar May 02 '23 06:05 JWDebler