Posted: September 17th, 2010 | Author: john | Filed under: twitter | Tags: btlogger, oauth, twitter | No Comments »
Twitter pulling the plug on basic authentication meant I had to make changes to btlogger to support OAuth. Fortunately, librest made the code changes trivial. However, I ran into some problems. The clock was out of sync on the PC where btlogger runs. This caused the authenticate process to fail at the token request stage and was not easy to debug. The other issue which has been heavily documented is how to support authentication keys in FOSS. Currently configure.ac requires an edit to supply the key information. In theory I could supply the keys to somebody who wants to build the software from source until I figure out another way to handle this. I think they call this “best effort security”.
btlogger is now running from its own twitter account at: http://twitter.com/bluetoothlogger
Posted: September 6th, 2009 | Author: john | Filed under: twitter | Tags: Bluetooth, btlogger, twitter | No Comments »
I finally got around to fixing btlogger. It broke after an Ubuntu upgrade which contained BlueZ changes. Anyway, I have moved the code over to Gitorious and made a new tarball and Debian package.
Binary: http://zedstar.org/deb/btlogger_0.3.3-1_i386.deb
Tarball: http://zedstar.org/tarballs/btlogger-0.3.3.tar.gz
Repo: git clone git://gitorious.org/btlogger/btlogger.git
Take a look at the README for further information.
Posted: June 26th, 2009 | Author: john | Filed under: twitter | Tags: bobot, guile, irc, twitter | No Comments »
I have made a Guile module which is capable of being used by the IRC bot bobot++. The code is available here:
http://zedstar.org/tarballs/sneektweet-0.1.tar.gz
The readme:
sneektweet 0.1:
Wraps some C/GLib code which posts to Twitter.
setup:
Edit configure.ac to set twitter account details.
from REPL:
john@thinkpad:~/workspace/sneektweet$ guile
guile> (use-modules (twitter sneektweet))
guile> (tweet "foobar")
guile> ** Message: posted update to Twitter
todo:
Add reading updates and posting back to IRC channel.
bobot example code:
(use-modules (twitter sneektweet))
(define (sneektweet channel message)
(if (> (string-length message) 140)
(bot:say channel "Your message needs to be under 140 characters in length!")
(tweet message)))
(bot:addcommand "tweet" sneektweet #t 2 0)