Bluetooth remote

A few days ago Applemania took over Warp HQ and several workmates purchased MacBooks. The MacBooks came with this nice remote thing and I grew jealous.

In my way back home I thought that it shouldn’t be very hard to get a kind of remote control working using bluetooth and my Nokia mobile. I had never coded for my mobile so I wasn’t sure about how difficult would it be. In the end it was quite easy to write a simple program that just sent every key press to my laptop via bluetooth, and it only took 113 lines of Java code.

Then I spent several hours coding the “receiver” part, in the end I created a little Python app which could load different plugins and created several of these modules:

  • System: it basically provides “lock” and “halt”
  • amarok: play, stop, next song, raise/lower volume
  • mouse control: it allows you to move the pointer with the mobile and do clicks, it’s quite handy for presentations
  • video: I’ve a dir with videos and the module shows you a list of the available videos, shows previews of them and allows you to select one to play in fullscreen

There are loooots of things to improve but it works for me :) , I’ve uploaded the source code (tarball) in case you find it useful.

2 Responses to “Bluetooth remote”

  1. meneame.net Says:

    Control remoto con BlueTooth…

    Cómo controlar un portátil con BlueTooth y usando un teléfono Nokia (software en Java para el teléfono). Permite realizar varias funciones, como controlar el amarok, el ratón y ver los vídeos que contiene un directorio, haciendo una previsualizac…

  2. Harley Says:

    Looks like just the kind of thing I’m looking for. All I wanna do is be able to push a button on my mobile for play.. pause.. stop so that I don’t have to keep running back and forth from my telly to the laptop.. I could always move the laptop but too many cables. Ahhh well. Since I’m not a software programmer I guess I’ll just have to wait until you release an idiot guide to getting this working ;)

Leave a Reply