Nabaztag Rabbit + PEI Energy

Peter Rukavina

Back in the spring I did some work on extracting and reporting on the current “PEI Energy Interchange” figure: the amount of electricity that Prince Edward Island is pulling from (or pushing to) the mainland. When my Nabaztag rabbit sprang to life on Christmas Eve after a year of dormancy I reasoned that it was time to get the rabbit involved in the project. The result:

The code that does this is here and the process is simple:

  1. Pull the previously-scraped-and-XMLified energy interchange data.
  2. Use Swift to turn the PEI figure into a WAV file with a message message P E I energy interchange is XX megawatts.
  3. Use the Nabaztag API (with the API key from nabaztag.com) to have my rabbit read the WAV file.

I’ve got this set up to read the figure to me every hour here in the office and after two days I’m finding it (a) not annoying and (b) a helpful way of building up peripheral awareness of PEI’s energy usage (like, hey, what’s happening today: we’re pulling almost 190MW from the mainland! We max out at about 210MW).

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search