Fetch and display weather data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.8 KiB
Raw

Weather web server

Web server that fetch and display weather data.

Weather data provider

The weather data are provided by infoclimat.fr (not affiliated).
Why them ? They got weather data accessible from a registration free public API.
Are they the best ? Probably not, their API lack modularity and some data that may be critical depending on your application.
Do they provide data outside France ? No.

Installation

For debugging/development purpose, you could simply use python3 DebugServer.py to launch the integrated flask webserver.
To deploy in production, there's multiple possibility depending on your need, see the official flask documentation for reference.

Usage

By default the development server is accessible via 127.0.0.1:5000 and display the weather of today and the next 6 days at Paris.

You could navigate to 127.0.0.1:5000/lat;long where "lat" and "long" are the latitude and longitude of the place you which to display.

Note:

  • The freezing point and rain quantity are only displayed when it's snowing and raining respectively.
  • The bold number represent the gust of wind and is only displayed when it is greater than the average speed of wind.
  • Use the buttons on the top-left of the table to access night-mode and display the help.

Illustration of the page

Optional parameters

Use the following URL parameters to change the default behavior.

Obviously you can use parameters with or without the lat;long elements like this: 127.0.0.1:5000/48.51296;2.17402?day=2&today=0&title=Weather%20at%20the%20Eiffel%20Tower that will display the weather for the next two days at some random tower in Paris.