Hear the Energy Flow: Pachube + SoundCloud Mashup
It’s all very well and good to be able to visualize the energy flow from New Brunswick to Prince Edward Island, but what if we want more “ambient” feedback? What if we want to feel the energy flow?
What’s happening here is this:
- The New Brunswick System Operator page is being scraped and converted into a Pachube feed which exposes the data in XML (code here).
- The XML data is grabbed from Pachube and the figure, in megawatts, representing energy flowing from New Brunswick to Prince Edward Island is use to search SoundCloud via its API (code here).
- The tracks returned from SoundCloud are played in iTunes.
The result: you can hear how much energy is flowing over the cable from New Brunswick to Prince Edward Island.
Update: I’ve packaged up the code as a Mac OS X app that you can download and install without the need to fuss with code.