An experimental Boxee app to keep track of how your MP votes

We are experiencing interesting times politically in the UK. Maybe many at one point were happy to elect a Member of Parliament once every five years and pretty much let them get on with it. Talking about politics could make people feel uncomfortable, but a wave of recent events such as the expenses scandal and the Digital Economy Act have started to change that. With the election producing a hung parliament every vote of an MP could make or break proposed legislation, but do you know how your MP is voting? There are already excellent websites where you can find this out, but recently I started to wonder if an Internet TV platform like Boxee could be useful in this area, so I built an experimental “app” to try the idea out. Could finding out how your MP votes be like checking the football scores on Ceefax?

First I should say that I am a Boxee fan and like this platform a lot, but this idea could be built on many other set top box platforms too. One of the nice aspects of Boxee that sometimes does not get talked about much is that it is an opportunity to experiment with what it means to bring the Internet to your TV set. As the platform is open and you can use existing web skills to create apps with it, the chance is there to push the boundaries and try out new ideas. I'm sure you could build this application on many other platforms though.

So why Internet enabled TV? It is a special opportunity, many may feel uncomfortable using traditional computer technology but there is mass public acceptance of set top box technology, a point backed up by the adoption of digital TV which according to research by OfCom is now in 91.4% of UK homes. These set top boxes are becoming more powerful, and some now ship with network ports to connect to the Internet. Games consoles too are becoming network enabled, last year the BBC made the shock announcement that the Sony Playstation 3 accounted for about 10% of traffic to their iPlayer service. So if there is going to be a mass acceptance of various Internet on TV technologies by a wide range of people there could soon be an interesting opportunity here to keep people up to date with what their politicians are up to without demanding special skills and from the comfort of their sofas.

After watching the Digital Economy Bill debate and reading @goodvote's ideas for a Digital Parliament I started to wonder about how the power of a platform like Boxee could be used to increase awareness of an MPs activities in Parliament with their constituents. I decided to start with something fairly simple and wrote an application that pulls in some of the information from They Work For You and The Public Whip, both excellent sites, and attempt to provide an experience on a TV that could make a constituent more aware of what their MP is doing. Voting records seemed a good place to start and some basic information about the MP and how you might find out more seemed like a good mix.

The "Your MP" app in action, showing the page for Nick Clegg MP

I had to be fairly selective about what information to show as an odd aspect of displaying information on a TV screen is that you can't really display that much text as the reader is likely to be too far from the screen to see small detail. This factor also influences how such an app has to be designed and is known as the ten foot user interface, all lessons learnt while I was working as part of the team that developed the Open University Boxee application. In some ways the constraints you deal with when working with this type of interface are very similar to mobile devices.

When the user first installs the app in Boxee they are asked for their postcode. This is then remembered so there is no need to enter it each time (although it can be changed easily). The two websites mentioned above are then queried in turn to find out about the MP for that post code and their voting history. The app does not offer a lot of functionality, instead the idea is that it is something you might check briefly in between watching your favourite podcasts so it is kept as simple as possible. The app is designed to blend in with Boxee, this was deliberate to make it feel like something not out of the ordinary, just a part of the experience of using that platform. The video embedded at the end of this blog post shows the app in action.

Part of the reason I attempted writing this app was for the challenge. It is different from most Boxee apps in that it does not aim to bring multimedia content to the screen but instead text. I didn't want to have a server component to this either, so the app has to take care of downloading the data and processing it. In the case of They Work For You this meant using their API with which will provide the information about the MP. The voting records were a bit more tricky, these are in fact screen scraped from The PublicWhip, if I was to spend more time on the app I would probably find a way to use the downloads they provide. Thankfully Boxee provides Python to app developers so it is possible to do all of this client side. It was a bit challenging at times as I had some problems with getting certain parts of the code to work but one of the wonderful things about open source is that you can look at other people's code and learn how they coped with such challenges, and that is exactly what I did.

It is still rather buggy so I need to clean up the source code and iron out the issues, but if there is interest I'm happy to release it as open source software. There are a lot of improvements that it could do with as well such as support for languages other than English and support for the other types of representatives. Of course I would be very pleased to hear any ideas of how application like this could be used or how this application could potentially be improved.

I'm wondering what else could be done in this context, could there be an opportunity to provide feedback to MPs? Could MPs use applications like this to ask their constituents for their opinions of topics of the day? My app is really just meant as a small step in this direction, but for now I'll be using it to see how my new MP votes.

Comments

I agree nice novel use of Boxee for something a bit different than vid, pix, music. It goes to show how much a media app for the TV can show much more than just media.

Having just bought an Android phone, I like the idea of using QR codes to be able to jump out and visit a website. I'd be interested if you could produce them on the fly based on a url. I can think of some uses for my current and future apps, if you could.

Is the app available now in the boxee repo? I would like to give it a spin.

Hi Tom,

Nokia run a service that allows you to generate QR codes on the web: http://mobilecodes.nokia.com/index.htm I don't think they have an API for this though. It is also possible to generate the codes locally see: http://www.greenhughes.com/content/creating-mobile-codes-locally-no-web-... . I want to experiment with this at some point to see if I can get a Boxee app script to talk to this program, should be possible.

Glad you like the app! I need to clean up the code a bit before release and also the app needs an API key from theyworkforyou.com to work so I need to code an easy way for people to enter that key. So a bit of work still to do, but hopefully the complicated bits are done.

Here is a simple QR generator web page that I'm sure one could 'scrape' to produce a semblance of an API if needed.
http://qrcode.kaywa.com/

Thanks for the suggestion! This prompted me to dig about a bit and I think I've found a solution:
http://code.google.com/apis/chart/docs/gallery/qr_codes.html

Will give this a go!

Oh, very clever! There's possibly a large future for this idea. In a web page, say, when you right click a hypertext link, up pops a QR code instead. Can I patent that or has someone else thought of it first? ;)

Excellent idea and execution! If you add QR codes, perhaps add it at the bottom of the preferences pane on the left -- that way it won't be in your face while using the sofa-aimed functionality :-)

Lovely idea, especially because it demonstrates how an open STB system like Boxee can be used beyond the media playing norms. Genuine empowerment for very little user investment.

I’ll gladly install it if/when you’re ready to give it a public release.

Great idea for an app, really looking forward to trying it out when it is released - where can we get notification of it's release? From this post or elsewhere?

That app looks great. I'd love to be notified when it's available...

This looks great. Could you ping me when it's available?

I really loved this app during my time with a boxee box, but had to get rid the box as it just isn't compatible with anything, the devlopers have given up on it, and I decided to get an xbmc device instead. Boxee is based on xbmc, and I was hoping there'd be any way you could create an xbmc version of your app, as the plugin systems are very similar.

I really loved this app during my time with a boxee box, but had to get rid the box as it just isn't compatible with anything, the devlopers have given up on it, and I decided to get an xbmc device instead. Boxee is based on xbmc, and I was hoping there'd be any way you could create an xbmc version of your app, as the plugin systems are very similar.

Add new comment

Comments are always very welcome, but please note the following:
  • Sadly due to the high number of spam comments recently all comments are now manually moderated. You comment will therefore not appear on the site instantly.
  • Comments on this web site are monitored for spam using Mollom. By posting a comment, you accept that your message and other personal details about you will be analysed and stored for anti-spam and quality monitoring purposes, in accordance with Mollom's privacy policy.
  • Please use your own name not a company or website name to submit comments. Your comment will be removed if you don't do this.
  • All links in comments will be marked with a no follow attribute. That means posting a link to your site here won't help your search engine rankings.
  • By submitting a comment you agree that your comment can be reproduced under the same licensing terms as the rest of the content on the site.
  • Comments can be removed at any time without explanation, but won't be removed just because you disagreed with something I said.