Coder Social home page Coder Social logo

meteogram's Introduction

Hi, I'm Bastian, dad, hobby photographer, software developer, and signal processing scientist in Germany.

Both photography and programming are about telling stories. Expressing a complex algorithm in simple terms, or stunning vista in a compelling picture. Finding order and simplicity in a chaotic scene or code base. Therein lies the challenge and joy of life.

meteogram's People

Contributors

bastibe avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

meteogram's Issues

URL request error.

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.

limit data range to ~5 days

More than five days does not make much sense and precipitation data is only available for about five days.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.