Skip to content

Realtime mapping of sewage release events in Thames basin

License

Notifications You must be signed in to change notification settings

AlexLipp/thames-sewage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sewage Discharges in the Thames Basin

License: GPL v3

Realtime mapping the downstream impact of Combined Sewage Overflow discharge events in the Thames basin. This repository provides the back-end for www.sewagemap.co.uk.

This was developed by Alex Lipp, Jonny Dawe and Sudhir Balaji. Please feel free to raise an issue above or contact us directly.

Twitter Follow Twitter Follow GitHub followers GitHub followers GitHub followers

Installation

This script uses the POOPy package which allows easily interaction with Water Company EDM APIs, and analysis of the data. This is available at: github.com/AlexLipp/POOPy.

To access the data stored in the Thames Water API you will need to register for the API here. The script expects the API keys to be stored as environment variables (details given in the script).

Usage

The core script is update.py which is called automatically every 15 minutes. This function calculates a geoJSON file which contains the downstream impact of all active or recently active CSO in the Thames Basin. Additionally, it creates a JSON file which contains the history of all discharges for all monitors. These are automatically uploaded to the AWS bucket which hosts them. These are then read by the www.sewagemap.co.uk front-end which visualises them.

About

Realtime mapping of sewage release events in Thames basin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages