https://github.com/dmuth/is-peco-okay
Text-based low-bandwidth website for real-time information on the Philadelphia Power Grid.
https://github.com/dmuth/is-peco-okay
Last synced: about 1 year ago
JSON representation
Text-based low-bandwidth website for real-time information on the Philadelphia Power Grid.
- Host: GitHub
- URL: https://github.com/dmuth/is-peco-okay
- Owner: dmuth
- Created: 2024-01-10T02:31:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-27T22:19:39.000Z (over 1 year ago)
- Last Synced: 2024-11-27T23:23:00.450Z (over 1 year ago)
- Language: Python
- Homepage: https://www.IsPecoOkay.com/
- Size: 138 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-cli-version.md
Awesome Lists containing this project
README
# PECO Outage Status
This is no longer really being maintained--it was the first version of my script
and is being superceded by the website.
## CLI Version
Just a little shell script that I whipped up to pull down the current outage stats from PECO.
It's the same endpoint that their [Official Outage Map](https://secure.peco.com/FaceBook/Pages/outagemap.aspx) uses.
This script can be executed with the following `bash` command:
`bash -c "$(curl -s https://raw.githubusercontent.com/dmuth/peco-outage-status/main/bin/get-peco-outage-status.sh)"`
...and it will return data in this format:
```
{
"date": "2024-01-10T02:23:18.541Z",
"outages": [
{
"summaryTotalId": "total-1",
"total_cust_a": {
"val": 120405
},
"total_percent_cust_a": {
"val": 7.24
},
"total_percent_cust_active": {
"val": 92.76
},
"total_cust_s": 1663160,
"total_outages": 1399
}
]
}
```
I wrote this during [a pretty nasty storm that blew through the area recently](https://www.nbcphiladelphia.com/weather/powerful-storm-expected-to-hit-philly-on-tuesday/3738811/)
as I wanted to get an idea for how many power outages there were without obsessively reloading the page.