Bluetooth logging to Twitter with btlogger

I decided to hack my Bluetooth logger so that it could post any new devices it saw to my Twitter account. This should be interesting once I get it setup on my desk at work! After moving to Intrepid Ibex I realised the changes in BlueZ versions borked my software. It took me a while to figure out what needed to be fixed. Anyway, these changes and Twitter hack are available as a tarball here:

zedstar.org/tarballs/btlogger-0.3.2.tar.gz

The tarball should install an sqlite db file in /var/lib/misc but you can move it else where if you don’t want to run as root. If you supply a username and password on the command line it will try and post the scan results to Twitter like:

http://twitter.com/jptmoore

To see the command line options run btlogger –help


5 Comments

lululychee on September 6, 2009 at 2:23 pm.

hi, i am trying to use this hack that you have so graciously provided.. but i can’t open the db file and i’m not sure how to make it work.. sorry, i’m new to this… would you be able to break it down a bit more for me please?
any help u can give me would be greatly appreciated!
Thank you!
Lulu

john on September 6, 2009 at 5:06 pm.

Hi, it depends on the system you are using. I just did some fixes to the code and will release a new version. I will email you to see if I can help you get it running.

lululychee on September 6, 2009 at 6:30 pm.

Thanks so much! I am asking because I am trying to develop a GPS + maybe bluetooth feed on local public transport — ultimately this would use GPS to show location relevant blogs from local businesses on a bus route… it may be too ambitious… i don’t know yet.
Looking forward to your email.
L*

lululychee on September 6, 2009 at 6:33 pm.

(I am using Vista at the moment since Sun Java Wireless Toolkit (another aspect of my project) doesn’t have a Mac OS X version yet. is that what you are referring to when you ask which system?)

john on September 6, 2009 at 7:33 pm.

Ah okay, unfortunately this is software specifically developed for Linux. If you have access to a PC with Ubuntu it should be possible to get it running.

Leave Your Comment