In February 2023, the city of Austin experienced a winter storm that at its peak resulted in over 170,000 Austin Energy customers
without power. The utility offers a public interactive outage map which shows
current outages but doesn't allow users to explore historic data. Access to information on past outages could enable residents to
do their own analysis of how the city responds to future crises, if certain areas are priortized over others, etc.
Base Code
In 2019 in response to similar energy crises,
Code for Kentuckiana released a dataset of outages in Kentucky based on a program that periodically scraps the map information and
stores it on Heroku. According to the author on Github, these scripts should be able to be replicated for other localities that use the
same company (Kubra) to produce their outage maps (which Austin Energy does).
If this repo is cloned, lgeku_scraper.py can be replaced with another location-specific scraper, like the one in this PR.
The action should have been copied over and should be picked up and execute an Action every 15 minutes, scraping and saving the current outages.
First Impressions
Initial exploration shows that one issue in revising the code for the Austin Power Outage map is that the MIN_ZOOM in kubra_scraper.py
is set to 7 for the entire state of Kentucky, which is too far out for Austin's map. How the code works is it creates a bounding box
based on the boundaries of the energy map, then zooms in and splits them into "quadkeys", but at zoom 7 there was only one quadkey.
Changing to zoom 14 resulted in more quadkeys being generated, but still getting an error of the number_out variable not matching
the expected_outages variable when the script is executed.
Open Austin Energy Outage Project
Background
In February 2023, the city of Austin experienced a winter storm that at its peak resulted in over 170,000 Austin Energy customers without power. The utility offers a public interactive outage map which shows current outages but doesn't allow users to explore historic data. Access to information on past outages could enable residents to do their own analysis of how the city responds to future crises, if certain areas are priortized over others, etc.
Base Code
In 2019 in response to similar energy crises, Code for Kentuckiana released a dataset of outages in Kentucky based on a program that periodically scraps the map information and stores it on Heroku. According to the author on Github, these scripts should be able to be replicated for other localities that use the same company (Kubra) to produce their outage maps (which Austin Energy does).
First Impressions
Initial exploration shows that one issue in revising the code for the Austin Power Outage map is that the MIN_ZOOM in kubra_scraper.py is set to 7 for the entire state of Kentucky, which is too far out for Austin's map. How the code works is it creates a bounding box based on the boundaries of the energy map, then zooms in and splits them into "quadkeys", but at zoom 7 there was only one quadkey. Changing to zoom 14 resulted in more quadkeys being generated, but still getting an error of the number_out variable not matching the expected_outages variable when the script is executed.