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/
- Host: GitHub
- URL: https://github.com/andrie/thames_river_conditions
- Owner: andrie
- Created: 2022-10-03T15:24:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-03T18:27:31.000Z (7 months ago)
- Last Synced: 2025-02-14T13:16:53.151Z (3 months ago)
- Language: Python
- Homepage:
- Size: 290 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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 notebooksThe 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