https://github.com/simonw/pge-outages
Tracking PG&E power outages
https://github.com/simonw/pge-outages
git-scraping
Last synced: about 1 year ago
JSON representation
Tracking PG&E power outages
- Host: GitHub
- URL: https://github.com/simonw/pge-outages
- Owner: simonw
- Created: 2024-02-04T21:07:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T17:29:17.000Z (about 1 year ago)
- Last Synced: 2025-04-14T17:43:58.838Z (about 1 year ago)
- Topics: git-scraping
- Homepage:
- Size: 21.7 MB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pge-outages
This repository tracks outages reported on the [PG&E outages map](https://pgealerts.alerts.pge.com/outage-tools/outage-map/) over time, using [Git scraping](https://simonwillison.net/2020/Oct/9/git-scraping/).
This repository started tracking outages on 4th February 2024. The implementation of the scraper can be found in [.github/workflows/fetch.yml](https://github.com/simonw/pge-outages/blob/main/.github/workflows/fetch.yml) - it uses a combination of `curl` and `jq`.
The most recently tracked outages are in [outages.json](https://github.com/simonw/pge-outages/blob/main/outages.json). The [commit history](https://github.com/simonw/pge-outages/commits/main/outages.json) of that file shows outages recorded over time.
A previous version of this repository ran from from 2019 to 2022. That data can now be found in [simonw/pge-outages-pre-2024](https://github.com/simonw/pge-outages-pre-2024/)
## Incomplete data warning
This repository only archives outages that are reported for a single location.
The outage map also includes polygon data, which is much more interesting... but has not proven practical to archive here, for [reasons explained in this issue comment](https://github.com/simonw/pge-outages/issues/4#issuecomment-1928758853). Short version: I'd have to constantly archive 100MB of data per snapshot because the polygons are so large!
## Browsing the latest data in Datasette Lite
Use this URL to open the latest `outages.json` in [Datasette Lite](https://github.com/simonw/datasette-lite):
https://lite.datasette.io/?json=https://github.com/simonw/pge-outages/blob/main/outages.json#/data/outages?_facet=CITY&_facet=OUTAGE_CAUSE&_facet=CREW_CURRENT_STATUS&_facet=OUTAGE_EXTENT
It will look something like this:
