I’ve made some updates to the SoundCloud Energy Web App (that’s the actual app to the right; if you’re using Safari or Google Chrome you can press the “play” button to stream music right here).
From the original somewhat primitive version I’ve made the following updates:
- I removed the wordy explanation of what this actually is and replaced it with a Pachube-generated graph of the last 24 hours of energy interchange.
The updated code is in the github repository for your enjoyment.
Thanks for all the work you’re doing on this, it’s both fun and informative. I’m most of the way through a long winded blog post about PEI wind energy and what you’ve been up to with this stuff.
I have a question though, what happens with the soundcloud app when our energy import gets really low, or even negative like briefly last night? I don’t know of much music out there recorded at 5bpm… :)
When the energy is “negative” – we’re sending energy to New Brunswick – I simply take the absolute value of the figure in MW. So -5 MW plays the same as 5 MW. I suppose if I could figure out a way of having the audio played backwards that would be more appropriate.
SoundCloud returns plenty of tracks at 5 BPM — here’s an XML dump of some of them from their API. Of course any API is only as good as the metadata backing it up, so it’s possible that at least some of those tracks are mislabelled.
There are even words in Italian to describe these very, very slow pieces, like Larghissimo.
That is pretty cool, I’m going to have to try to listen when our imports get very low!
My post is up.
I”ve updated the app with “next track” and “previous track” buttons, and change the “play” button to a “loading” icon (I suppose it really should be an animated spinner) when the stream is loading. HTML5’s audio element makes all of this very, very easy.
And finally, for today, I’ve added the display of the currently-playing track, linked to its permalink page on SoundCloud.com.
Could you add a second track of the current wind speed?
And align the beats!
If you open http://l.ruk.ca/pei-energy in Safari on a Mac, and then select File | Open in Dashboard from the menu, you can add the widget to your OS X Dashboard.
And once you do this, if you click on the (i) in the corner of the widget and uncheck the “Only play audio in dashboard” then you can stream the audio directly from the dashboard while you work away on something else (if you don’t do this then the audio will only play as long as you have the dashboard open).