// readme

nspoweroutages

Git scraping of the data behind the Nova Scotia Power Outage Map.

Mainly viewable at https://nsp.datasette.danp.net/ by way of https://github.com/danp/outages-to-sqlite.

Why?

The outage map shows what’s happening right now but gives no way to see information about past outages, what has changed, etc. Regularly fetching the data that powers it and saving it in this way will let us see changes over time. That could let us answer questions like:

  • What are the most commonly labeled causes of outages?
  • What areas have frequent outages?
  • How long do outages typically last?

And more!

How it works

Every 10 minutes, a system of mine runs bin/scrape.sh.

bin/scrape.sh:

  1. fetches and combines outage data using cmd/scrape-outages, saving it to data/outages.json
  2. fetches the service area summary data, saving it to…