An open API service indexing awesome lists of open source software.

https://github.com/andrie/thames_river_conditions

Summary of paddling conditions at Hampton Court on the River Thames. An action runs daily to refresh a report at https://andrie.quarto.pub/river-thames-conditions-at-hampton-court/
https://github.com/andrie/thames_river_conditions

Last synced: about 1 month ago
JSON representation

Summary of paddling conditions at Hampton Court on the River Thames. An action runs daily to refresh a report at https://andrie.quarto.pub/river-thames-conditions-at-hampton-court/

Awesome Lists containing this project

README

        

# Thames River Condidions

This is an experimental project to use Python to create a single page website with paddling conditions on the River Thames, London, United Kingdom.

The project scrapes several websites from the UK environmental agency (for river leve warnings) as well as river closures. In addition, it reads the API to extract the river flow rate as well as water level at various locks.

# Published results

The project runs once a day on Github Actions and renders at https://andrie.quarto.pub/river-thames-conditions-at-hampton-court/

# Requirements

To recreate this project, you need:

- Python 3.10.5
- Create a virtual environment using `python3 -m venv venv` and then restore the required libraries using `pip3 install -r requirements.txt`
- Quarto
- Jupyter notebooks

The project uses these Python libraries:

- Astral: to calculate sunrise, sunset, dawn and dusk times
- beautifulsoup: to scrape web pages
- pandas: for data manipulation
- plotly: for plotting
- itables: for data tables
- quarto: to create the results page in HTML format