Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wunderground-temp-display.py Not working #61

Open
vwillcox opened this issue Apr 21, 2019 · 9 comments
Open

wunderground-temp-display.py Not working #61

vwillcox opened this issue Apr 21, 2019 · 9 comments

Comments

@vwillcox
Copy link

wunderground-temp-display.py no longer working as Weather Underground do not provide API keeys.

@Gadgetoid
Copy link
Member

Oof- nothing like continuously moving goalposts, eh!

I think we have some other code somewhere that works although it looks like a combo of OpenWeatherMap and https://github.com/csparpa/pyowm would be the best approach.

@sandyjmacdonald
Copy link
Member

@Gadgetoid
Copy link
Member

Gadgetoid commented Aug 29, 2019

Downside of the darksky approach is it being an extremely fragile not-API based web scrape (of a service that explcitly sells API based access) that will probably succumb to the same fate as wunderground :(

Granted, they're so focussed on their API service that they make no claims that scraping their website is not allowed. 🤔

Note: I just set up an OpenWeatherMap API key, fired up pyowm and found that even the most basic examples failed for me with "Your API subscription level does not allow to perform this operation." so it's clear that road is a dead end too.

Edit: And lo, OWM suddenly works.

@sandyjmacdonald
Copy link
Member

The drawback of openweathermap is that the API requires signing up to get an API key for access. The reason wunderground was so good was that there wasn’t any of that shenanigans involved.

@Gadgetoid
Copy link
Member

We probably need to port this to the darksky.net approach as seen here: https://github.com/pimoroni/inky/blob/master/examples/phat/weather-phat.py

Broadly I think we're on a wild goose chase with weather APIs and need to move to a better approach which is why I want to investigate Pirate Weather-as-an-app: https://github.com/pimoroni/piwe/projects

@Gadgetoid Gadgetoid added the bug label Nov 5, 2019
@wild4gadgets
Copy link
Contributor

I just noticed the wunderground API problem; it seems that the agromonitoring API might be the way to go; they have a free version. I haven't played with it much yet but will do so when I get a few cycles. https://agromonitoring.com

@Gadgetoid
Copy link
Member

I think openweathermap.org and pyowm might be the answer for weather in general - https://github.com/csparpa/pyowm

@willdolezal
Copy link
Contributor

I've updated @wild4gadgets original script to use the OpenWeather API and made a pull request.

@lghustle
Copy link

lghustle commented Dec 12, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants