Sunday, 7 September 2008

MythTV box now send tweets!

"Huh, what the hell are you on about Mike? Have you been drinking?"

Of course not, it's just another one of those geeky things we like to do, just 'cos we can.

I've set my MythTV box (my home media centre) to send out small messages to twitter whenever it records something. I basically followed the instructions here.

I had to install the perl module Net::Twitter. To do this the easiest way just fire up cpan, and then at the prompt type install Net::Twitter .

There is a small perl script to download and put in somewhere like /usr/local/bin , make sure its excecutable, chmod +x /usr/local/bin/mythtwit.pl
You then need to add a job to mythtv, either do this via the mythweb interface, or from mythtv-setup . Make sure the job is enabled too. One more thing I had to do was make sure I had a config.xml file located in /home/mythtv/.mythtv . Without this the script did not work.

Now when my media centre decides to record something the whole world gets to know about it. Hmmm, actually this may start to get annoying for those people following me. What I will probably do is create another twitter account just for the mythtv box and follow that account from my main twitter account.

1 comments:

Chris Neale said...

You don't happen to know of a mirror for these instructions?

Or could send/host a copy of the perl script?

I'd also be interested in stories of transcoding and recording profiles, since I fill my disk space all too readily - I'm not going to go into the mongrel mythtv setup I've created - much like Frankenstein's monster : ]

Post a Comment