Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hamdivazim/weatherplot
A program that can plot rain predictions using matplotlib and open-meteo.
https://github.com/hamdivazim/weatherplot
api geolocation geopy matplotlib pandas rain-prediction requests seaborn sns weather-api
Last synced: about 1 month ago
JSON representation
A program that can plot rain predictions using matplotlib and open-meteo.
- Host: GitHub
- URL: https://github.com/hamdivazim/weatherplot
- Owner: hamdivazim
- License: apache-2.0
- Created: 2023-05-06T16:17:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-07T17:56:43.000Z (over 1 year ago)
- Last Synced: 2024-01-27T08:35:53.695Z (11 months ago)
- Topics: api, geolocation, geopy, matplotlib, pandas, rain-prediction, requests, seaborn, sns, weather-api
- Language: Jupyter Notebook
- Homepage:
- Size: 268 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WeatherPlot
A Jupyter Notebook that can plot rain predictions using matplotlib and open-meteo.## Prerequisites
You will need:
* `geopy`
* `requests`
* `pandas`
* `matplotlib`
* `seaborn`
* IPYNB KernelThese are all in `requirements.txt`.
## How to run
Simply run all cells. There will be an input prompt asking for which city you want rain prediction data for, then at the bottom of the notebook it will generate 2 line graphs, one for predicted amount of rainfall (mm) and one for rain probability (%) for the whole day. The already generated graphs were made with this geodata:
```
[["2023-05-06T00:00 to 2023-05-06T23:00"], ["latitude": 51.5, "longitude": -0.120000124], ["London"]]
```## How it works
Using https://open-meteo.com, this notebook gets hourly rain prediction data and converts the data into a `pandas.DataFrame`. This DataFrame is then used to generate graphs.## Contributions?
Maybe you could open a pull request and add more graphs?## License
WeatherPlot is licensed by Hamd Waseem under [the Apache License 2.0](https://github.com/hamdivazim/WeatherPlot/blob/main/LICENSE).