Usage
Run as docker container
Inside the docker container, the API is exposed on port 5000. You can map this to any port on your host machine, in this example we use port 8000.
Query the API
After starting the container, you can open a web browser to see a small meteogram for the peak of Kilimanjaro: http://localhost:8000/meteogram?lat=-3.0674&lon=37.3556&altitude=5895
Alternatively, you could download that image to a file using curl:
curl -o kilimanjaro_small.png "http://localhost:8000/meteogram?lat=-3.0674&lon=37.3556&altitude=5895"
Run as Python package
You can also use the package as a Python library:
In order to produce a meteogram for Kilimanjaro and save it to a file, you could do something like this: