bastibe / meteogram Goto Github PK
View Code? Open in Web Editor NEWGrabbing weather data from the web and plotting a meteogram.
Grabbing weather data from the web and plotting a meteogram.
More than five days does not make much sense and precipitation data is only available for about five days.
Tried to execute your script today. It seems that yr.no site removed the version 1.8 of the api. The latest one is version 1.9. I have change the api version to latest one and tested again. But it still resulted in following error:-
$ python meteogram_auto.py
Traceback (most recent call last):
File "meteogram_auto.py", line 288, in <module>
fig = plot_meteogram('Oldenburg, Germany')
File "meteogram_auto.py", line 246, in plot_meteogram
latLng = retrieve_position_openmapquest(address)
File "meteogram_auto.py", line 78, in retrieve_position_openmapquest
request = urlopen(complete_url)
File "/usr/lib/python3.5/urllib/request.py", line 162, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 471, in open
response = meth(req, response)
File "/usr/lib/python3.5/urllib/request.py", line 581, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.5/urllib/request.py", line 509, in error
return self._call_chain(*args)
File "/usr/lib/python3.5/urllib/request.py", line 443, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 589, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
Again I have changed the request
line with request = urlopen(complete_url, headers={'User-Agent': 'Mozilla/5.0'})
but it produces the same error.
Include min/max precipitation data
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.