Posts Tagged ‘mqtt’

Tweetjects and Bluetooth

Friday, March 7th, 2008

Andy Stanford-Clark recently got a few people together to talk about blogjects and tweetjects after getting his house to tweet about the various goings-on there. That inspired me to think about what I could do with Twitter and remembered a while ago I’d created a little script that polled for nearby Bluetooth devices and published them via MQTT. So as a good distraction from work I thought I might integrate this with Twitter and so we now have a little python script that lets my laptop publish details of any bluetooth devices it sees appear and disappear. So what’s the use of this then? Probably very little but it might be interesting to hook it up in my flat and see who goes in and out of there…

[Update]
I failed to find the time to set this up as a proper project somewhere but here’s the scripts in case anyone wanted to make use of the application:

Christmas fun

Monday, December 31st, 2007

Ok, so I got a bit bored at some point over Christmas and decided to play with one of my presents – a USB Rocket Launcher.

The first difficulty was getting it to run on my Linux laptop as the drivers were only for Windows. A quick search and Scott Weston sorted me out. Then I thought it should really be controlled by more than just the keyboard so I hooked it into the Thinkpad accelerometer – now movements of the laptop could direct it. Finally, as I knew Andy Stanford-Clark would be a bit disappointed in me if I hadn’t, I MQTT‘d it so that the accelerometer details are published to a broker, a bridge app subscribes to that info and (where appropriate) publishes commands which are received by a final subscriber that actually sends the commands to the rocket launcher. This way you can easily swap out the accelerometer or indeed rocket launcher for something completely different.

I feel quite pleased with myself and slightly ashamed at the same time.