3 ms·
Interesting data. It looks like not much restoration work has been going on in Queens: 86449 offline to begin, and still 73599 offline. And they tell me my powe
by greenyoda 14y ago
Interesting data. It looks like not much restoration work has been going on in Queens: 86449 offline to begin, and still 73599 offline. And they tell me my power is going to be out until the 9th...
Does the "coned" gem use some public API that ConEd has, or does it just scrape their web site?
Note: "burough" should be "borough".
- jpettersson 14y agoIt's interesting indeed. As of right now it looks like only Manhattan has seen drastic improvements. I hope you get your power back sooner than the 9th! The coned gem (now https://github.com/ckundo/sandy https://github.com/ckundo/sandy) is craping data from the official Coned storm central site. (Thanks, I fixed the typo. As a native Swedish speaker borough is one of those words that make no sense.)
- jrockway 14y agoDoes the "coned" gem use some public API that ConEd has, or does it just scrape their web site? https://github.com/ckundo/coned/blob/master/lib/coned.rb#L12 https://github.com/ckundo/coned/blob/master/lib/coned.rb#L12
- jgv 14y agoconed has some endpoints https://twitter.com/ckundo/status/265610079783514112 https://twitter.com/ckundo/status/265610079783514112
- citricsquid 14y agohttp://apps.coned.com/stormcenter_external/stormcenter_externaldata/data/interval_generation_data/metadata.xml Take a directory from here and use it here: http://apps.coned.com//stormcenter_external/stormcenter_externaldata/data/interval_generation_data/2012_11_03_20_45_00/report.js from: https://github.com/ckundo/sandy/blob/master/lib/sandy/providers/coned/report.rb#L45 https://github.com/ckundo/sandy/blob/master/lib/sandy/provid...
- ckundo 14y agoThe gem uses an obscured API endpoint that feeds http://apps.coned.com/stormcenter_external/ http://apps.coned.com/stormcenter_external/. ConEd's version of the app makes 2 ajax calls, one to an xml file that gets regenerated every 15 minutes and shows the timestamp of the report json feed. The second call gets the json that gets parsed in the app. I've done a rudimentary version of jpetterson's at http://stormpox.com http://stormpox.com (much less pretty). I'm running a rake task that gets called via cron job. The rake task fetches and parses the feed (via the sandy gem) and posts it to a google spreadsheet via the google_drive API. stormpox.com is running as a static site on heroku with an embedded google timeline chart that auto-updates when the spreadsheet changes, and voila, insta-outage-chart (albeit google branded). The code for the stormpox.com backend is at https://github.com/ckundo/coned_charts https://github.com/ckundo/coned_charts. The sandy gem (previously the coned gem) is on rubygems and here: https://github.com/ckundo/sandy https://github.com/ckundo/sandy Again great work jpetterson!