Skip to content

Commit

Permalink
CFK -> OK domain
Browse files Browse the repository at this point in the history
  • Loading branch information
bretwalker committed Jun 11, 2023
1 parent e406cf9 commit 2b7c6e1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _posts/2019-02-12-announcing-code-for-kentuckiana.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Code for Kentuckiana, a local brigade of [Code for America](https://www.codefora

Code for Kentuckiana is the official Code for America [Brigade](https://brigade.codeforamerica.org) for Louisville, Ky. Currently, there are 70+ Brigades across the United States, bringing together community organizers, developers, and designers to use technology to improve the lives of citizens. Code For Kentuckiana’s mission is to organize and advocate for the use of public data and technology to make Louisville and Southern Indiana a more safe, resilient, and equitable place.
<!--more-->
The first membership meeting is tentatively scheduled for March 9th with updated information to follow online at codeforkentuckiana.org
The first membership meeting is tentatively scheduled for March 9th with updated information to follow online at openkentuckiana.org

A representative for Code for America noted: “Code for America is very excited to have Code for Kentuckiana as part of the Code for America Network! We look forward to seeing the work they produce to help those in their communities thrive, and working with them on behalf of work going on across the country”

Expand Down
20 changes: 10 additions & 10 deletions _posts/2019-12-18-power-utility-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Today, we are announcing the availability of a dataset of LG&E and KU Energy out

The data comes from the [LG&E/KU outage map](https://stormcenter.lge-ku.com/default.html). Each outage is catalogued and stored for future analysis.

Every 6 hours, we publish the data to an online database that anyone can access at [http://poweroutages.codeforkentuckiana.org/outages](http://poweroutages.codeforkentuckiana.org/outages).
Every 6 hours, we publish the data to an online database that anyone can access at [http://poweroutages.openkentuckiana.org/outages](http://poweroutages.openkentuckiana.org/outages).

This online database is powered by a tool called [Datasette](https://github.com/simonw/datasette) that allows for exploration of the data. The data can be viewed and explored by clicking through the website or by using the SQL query language. We know that there is still a level of technical knowlege required to work with the data. It's our hope that others will take the data, perform analysis on it, and share their findings.

Expand All @@ -31,31 +31,31 @@ We are following the same format Simon Willison used for his [PG&E outage tracki

> The three key tables to understand are `outages`, `snapshots` and `outage_snapshots`.
>
> LG&E/KU assigns an outage ID to every outage. I store these in the [outages table](http://poweroutages.codeforkentuckiana.org/outages/outages).
> LG&E/KU assigns an outage ID to every outage. I store these in the [outages table](http://poweroutages.openkentuckiana.org/outages/outages).
>
> Every 15 minutes I grab a snapshot of storm map, which reports every single outage that is currently ongoing. I store a record of when I grabbed that snapshot in the [snapshots table](http://poweroutages.codeforkentuckiana.org/outages/snapshots).
> Every 15 minutes I grab a snapshot of storm map, which reports every single outage that is currently ongoing. I store a record of when I grabbed that snapshot in the [snapshots table](http://poweroutages.openkentuckiana.org/outages/snapshots).
>
> The most interesting table is `outage_snapshots`. Every time I see an outage on the storm map, I record a new copy of its data as an `outage_snapshot` row. This allows me to reconstruct the full history of any outage, in 15 minute increments.
>
> Here are [all of the outages](http://poweroutages.codeforkentuckiana.org/outages/outage_snapshots?snapshot=68) that were represented in [snapshot 68](http://poweroutages.codeforkentuckiana.org/outages/snapshots/68)—captured at 12:17pm Eastern Time on December 8, 2019.
> Here are [all of the outages](http://poweroutages.openkentuckiana.org/outages/outage_snapshots?snapshot=68) that were represented in [snapshot 68](http://poweroutages.openkentuckiana.org/outages/snapshots/68)—captured at 12:17pm Eastern Time on December 8, 2019.
>
> I can run `select sum(estCustAffected) from outage_snapshots where snapshot = 68` ([try it here](http://poweroutages.codeforkentuckiana.org/outages?sql=select+sum%28estCustAffected%29+from+outage_snapshots+where+snapshot+%3D+%3Aid&id=68)) to count up the total LG&E/KU estimate of the number of affected customers (314 at this time).
> I can run `select sum(estCustAffected) from outage_snapshots where snapshot = 68` ([try it here](http://poweroutages.openkentuckiana.org/outages?sql=select+sum%28estCustAffected%29+from+outage_snapshots+where+snapshot+%3D+%3Aid&id=68)) to count up the total LG&E/KU estimate of the number of affected customers (314 at this time).
#### Visualizing data

It is possible to visualize outage data using a couple of [Datasette plugins](https://datasette.readthedocs.io/en/stable/plugins.html) that we have installed.

Each table has tools to build charts and maps. For example:

<a href="http://poweroutages.codeforkentuckiana.org/outages?sql=select+snapshots.id%2C+title+as+snapshotTime%2C+hash%2C+sum%28outage_snapshots.estCustAffected%29+as+totalEstCustAffected%0D%0Afrom+snapshots+join+outage_snapshots+on+snapshots.id+%3D+outage_snapshots.snapshot%0D%0Agroup+by+snapshots.id+order+by+snapshots.id+desc+limit+100#g.mark=line&g.x_column=snapshotTime&g.x_type=ordinal&g.y_column=totalEstCustAffected&g.y_type=quantitative"><img src="../img/2019-12-18-power-utility-data/customers_affected_over_time.png" alt="A chart of customers affected by power outages over time."></a>
Here is a <a href="http://poweroutages.codeforkentuckiana.org/outages?sql=select+snapshots.id%2C+title+as+snapshotTime%2C+hash%2C+sum%28outage_snapshots.estCustAffected%29+as+totalEstCustAffected%0D%0Afrom+snapshots+join+outage_snapshots+on+snapshots.id+%3D+outage_snapshots.snapshot%0D%0Agroup+by+snapshots.id+order+by+snapshots.id+desc+limit+100#g.mark=line&g.x_column=snapshotTime&g.x_type=ordinal&g.y_column=totalEstCustAffected&g.y_type=quantitative">chart of the number of affected customers over time.</a>
<a href="http://poweroutages.openkentuckiana.org/outages?sql=select+snapshots.id%2C+title+as+snapshotTime%2C+hash%2C+sum%28outage_snapshots.estCustAffected%29+as+totalEstCustAffected%0D%0Afrom+snapshots+join+outage_snapshots+on+snapshots.id+%3D+outage_snapshots.snapshot%0D%0Agroup+by+snapshots.id+order+by+snapshots.id+desc+limit+100#g.mark=line&g.x_column=snapshotTime&g.x_type=ordinal&g.y_column=totalEstCustAffected&g.y_type=quantitative"><img src="../img/2019-12-18-power-utility-data/customers_affected_over_time.png" alt="A chart of customers affected by power outages over time."></a>
Here is a <a href="http://poweroutages.openkentuckiana.org/outages?sql=select+snapshots.id%2C+title+as+snapshotTime%2C+hash%2C+sum%28outage_snapshots.estCustAffected%29+as+totalEstCustAffected%0D%0Afrom+snapshots+join+outage_snapshots+on+snapshots.id+%3D+outage_snapshots.snapshot%0D%0Agroup+by+snapshots.id+order+by+snapshots.id+desc+limit+100#g.mark=line&g.x_column=snapshotTime&g.x_type=ordinal&g.y_column=totalEstCustAffected&g.y_type=quantitative">chart of the number of affected customers over time.</a>

<a href="http://poweroutages.codeforkentuckiana.org/outages/most_recent_snapshot"><img src="../img/2019-12-18-power-utility-data/most_recent_outages_map.png" alt="A map of outages for the most recent outage snapshot."></a>
Here is a <a href="http://poweroutages.codeforkentuckiana.org/outages/most_recent_snapshot">map the outages included in the most recent snapshot.</a>
<a href="http://poweroutages.openkentuckiana.org/outages/most_recent_snapshot"><img src="../img/2019-12-18-power-utility-data/most_recent_outages_map.png" alt="A map of outages for the most recent outage snapshot."></a>
Here is a <a href="http://poweroutages.openkentuckiana.org/outages/most_recent_snapshot">map the outages included in the most recent snapshot.</a>

#### Raw Data

If you would like to work with the raw SQLite database, you can download it here: [http://poweroutages.codeforkentuckiana.org/outages.db](http://poweroutages.codeforkentuckiana.org/outages.db)
If you would like to work with the raw SQLite database, you can download it here: [http://poweroutages.openkentuckiana.org/outages.db](http://poweroutages.openkentuckiana.org/outages.db)

### Technical Details

Expand Down
2 changes: 1 addition & 1 deletion css/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
codeforkentuckiana.org
openkentuckiana.org

0 comments on commit 2b7c6e1

Please sign in to comment.