From 8cff06f61ac54082c398861721c80afa5108feb3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 14:58:07 +0000 Subject: [PATCH 1/5] Initial plan From 004ac4c3a93de154578243ee9c59ef45647bea94 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 15:01:28 +0000 Subject: [PATCH 2/5] Add Scottish Water to downstream update and docs Agent-Logs-Url: https://github.com/AlexLipp/sewage-map/sessions/7238a0fa-845b-4a71-a7d1-5baadfa8291f Co-authored-by: AlexLipp <10188895+AlexLipp@users.noreply.github.com> --- README.md | 5 +++-- update_downstream.py | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a6c157..661b028 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) -Realtime mapping the downstream impact of Combined Sewage Overflow discharge events in non-tidal rivers across England . This repository provides the back-end for [`www.sewagemap.co.uk`](https://www.sewagemap.co.uk/). The repository for the front-end is available at [`github.com/JonnyDawe/UK-Sewage-Map/`](https://github.com/JonnyDawe/UK-Sewage-Map/). +Realtime mapping the downstream impact of Combined Sewage Overflow discharge events in non-tidal rivers across England and Scotland . This repository provides the back-end for [`www.sewagemap.co.uk`](https://www.sewagemap.co.uk/). The repository for the front-end is available at [`github.com/JonnyDawe/UK-Sewage-Map/`](https://github.com/JonnyDawe/UK-Sewage-Map/). This was developed by [Alex Lipp](https://alexlipp.github.io/), [Jonny Dawe](https://www.linkedin.com/in/jonathan-dawe-46180212a) and Sudhir Balaji. Please feel free to raise an issue above or contact us directly. @@ -56,6 +56,7 @@ Severn Trent Water | [Current spills](https://d1kmd884co9q6x.cloudfront.net/down Wessex Water | [Current spills](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/wessex/wessex_now_excl_48hrs.geojson); [Spills within last 48hrs](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/wessex/wessex_now_incl_48hrs.geojson) | [Current spills](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/wessex/wessex_info_now_excl_48hrs.geojson); [Spills within last 48hrs](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/wessex/wessex_info_now_incl_48hrs.geojson) | [Timestamp](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/wessex/wessex_timestamp.txt) Yorkshire Water | [Current spills](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/yorkshire/yorkshire_now_excl_48hrs.geojson); [Spills within last 48hrs](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/yorkshire/yorkshire_now_incl_48hrs.geojson) | [Current spills](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/yorkshire/yorkshire_info_now_excl_48hrs.geojson); [Spills within last 48hrs](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/yorkshire/yorkshire_info_now_incl_48hrs.geojson) | [Timestamp](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/yorkshire/yorkshire_timestamp.txt) SouthWest Water | [Current spills](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/southwest/southwest_now_excl_48hrs.geojson); [Spills within last 48hrs](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/southwest/southwest_now_incl_48hrs.geojson) | [Current spills](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/southwest/southwest_info_now_excl_48hrs.geojson); [Spills within last 48hrs](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/southwest/southwest_info_now_incl_48hrs.geojson) | [Timestamp](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/southwest/southwest_timestamp.txt) +Scottish Water | [Current spills](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/scottish/scottish_now_excl_48hrs.geojson); [Spills within last 48hrs](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/scottish/scottish_now_incl_48hrs.geojson) | [Current spills](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/scottish/scottish_info_now_excl_48hrs.geojson); [Spills within last 48hrs](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/scottish/scottish_info_now_incl_48hrs.geojson) | [Timestamp](https://d1kmd884co9q6x.cloudfront.net/downstream_impact/scottish/scottish_timestamp.txt) ### Thames Water historical data @@ -64,4 +65,4 @@ We process the Thames Water historical spill API which records stop/start event ## Source data -The live EDM data which we use to map downstream sectons is sourced, in England, from the [Stream Storm Overflow Data Hub](https://www.streamwaterdata.co.uk/pages/storm-overflows-data) which is provided under a CC-BY license. Each individual water company maintain's an individual API which you can access from the given link. +The live EDM data which we use to map downstream sectons is sourced, in England, from the [Stream Storm Overflow Data Hub](https://www.streamwaterdata.co.uk/pages/storm-overflows-data) which is provided under a CC-BY license, and in Scotland from the [Scottish Water API](https://www.scottishwater.co.uk/Help-and-Resources/Open-Data/Overflow-Map-Data). Each individual water company maintain's an individual API which you can access from the given link. diff --git a/update_downstream.py b/update_downstream.py index 1466223..9c59405 100644 --- a/update_downstream.py +++ b/update_downstream.py @@ -16,6 +16,7 @@ from poopy.companies import ( AnglianWater, NorthumbrianWater, + ScottishWater, SevernTrentWater, SouthWestWater, SouthernWater, @@ -66,6 +67,7 @@ "yorkshire", # Yorkshire Water "northumbrian", # Northumbrian Water "wessex", # Wessex Water + "scottish", # Scottish Water "welsh", # Welsh Water ] @@ -103,6 +105,8 @@ watercompany_info[company]["WaterCompany"] = NorthumbrianWater() elif company == "wessex": watercompany_info[company]["WaterCompany"] = WessexWater() + elif company == "scottish": + watercompany_info[company]["WaterCompany"] = ScottishWater() # For each water company check that local output directory exists and create it if it doesn't for company in watercompanies: From d1044f15bf32995c3cb5379e49b91503a00611c4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 15:02:38 +0000 Subject: [PATCH 3/5] Fix README source-data typos Agent-Logs-Url: https://github.com/AlexLipp/sewage-map/sessions/7238a0fa-845b-4a71-a7d1-5baadfa8291f Co-authored-by: AlexLipp <10188895+AlexLipp@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 661b028..5bf5ec3 100644 --- a/README.md +++ b/README.md @@ -65,4 +65,4 @@ We process the Thames Water historical spill API which records stop/start event ## Source data -The live EDM data which we use to map downstream sectons is sourced, in England, from the [Stream Storm Overflow Data Hub](https://www.streamwaterdata.co.uk/pages/storm-overflows-data) which is provided under a CC-BY license, and in Scotland from the [Scottish Water API](https://www.scottishwater.co.uk/Help-and-Resources/Open-Data/Overflow-Map-Data). Each individual water company maintain's an individual API which you can access from the given link. +The live EDM data which we use to map downstream sections is sourced, in England, from the [Stream Storm Overflow Data Hub](https://www.streamwaterdata.co.uk/pages/storm-overflows-data) which is provided under a CC-BY license, and in Scotland from the [Scottish Water API](https://www.scottishwater.co.uk/Help-and-Resources/Open-Data/Overflow-Map-Data). Each individual water company maintains an individual API which you can access from the given link. From 97a2fcf2fe12df07022ebf7f27620f3898bda3da Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 16:07:08 +0000 Subject: [PATCH 4/5] Add Thames Water API link in source data docs Agent-Logs-Url: https://github.com/AlexLipp/sewage-map/sessions/d21fb122-fcc5-4c20-9a9c-fcd1dbc05b50 Co-authored-by: AlexLipp <10188895+AlexLipp@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5bf5ec3..7fbb433 100644 --- a/README.md +++ b/README.md @@ -65,4 +65,4 @@ We process the Thames Water historical spill API which records stop/start event ## Source data -The live EDM data which we use to map downstream sections is sourced, in England, from the [Stream Storm Overflow Data Hub](https://www.streamwaterdata.co.uk/pages/storm-overflows-data) which is provided under a CC-BY license, and in Scotland from the [Scottish Water API](https://www.scottishwater.co.uk/Help-and-Resources/Open-Data/Overflow-Map-Data). Each individual water company maintains an individual API which you can access from the given link. +The live EDM data which we use to map downstream sections is sourced, in England, from the [Stream Storm Overflow Data Hub](https://www.streamwaterdata.co.uk/pages/storm-overflows-data) which is provided under a CC-BY license, with Thames Water data sourced from the [Thames Water API](https://data.thameswater.co.uk/s/), and in Scotland from the [Scottish Water API](https://www.scottishwater.co.uk/Help-and-Resources/Open-Data/Overflow-Map-Data). Each individual water company maintains an individual API which you can access from the given link. From f3a070a1152b951530cef55d1db6b9256e38d124 Mon Sep 17 00:00:00 2001 From: Alex Lipp Date: Thu, 23 Apr 2026 17:21:11 +0100 Subject: [PATCH 5/5] Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7fbb433..528767e 100644 --- a/README.md +++ b/README.md @@ -65,4 +65,10 @@ We process the Thames Water historical spill API which records stop/start event ## Source data -The live EDM data which we use to map downstream sections is sourced, in England, from the [Stream Storm Overflow Data Hub](https://www.streamwaterdata.co.uk/pages/storm-overflows-data) which is provided under a CC-BY license, with Thames Water data sourced from the [Thames Water API](https://data.thameswater.co.uk/s/), and in Scotland from the [Scottish Water API](https://www.scottishwater.co.uk/Help-and-Resources/Open-Data/Overflow-Map-Data). Each individual water company maintains an individual API which you can access from the given link. +The live EDM data used to map downstream sections is sourced as follows: + +- In England, from the [Stream Storm Overflow Data Hub](https://www.streamwaterdata.co.uk/pages/storm-overflows-data), which is provided under a CC-BY license. +- For Thames Water, from the [Thames Water API](https://data.thameswater.co.uk/s/). +- In Scotland, from the [Scottish Water API](https://www.scottishwater.co.uk/Help-and-Resources/Open-Data/Overflow-Map-Data). + +