Home > Web > MythTweet – Twitter MythTV recordings

MythTweet – Twitter MythTV recordings

In the move to put as much of my house onto twitter as possible, MythTV was the next victim. I’d previously made a PHP script that sent MSN alerts, but now I don’t use MSN, it needed a revamp.

MythTweet

I knocked up a small PHP script that grabs the backend status, finds what is being recorded or watched, compares with the previous run, and sends a message to twitter using wget.

To use it, grab the script, change the username/password variables, chmod +x it, and then add it to your “Startup Applications” or equivalent if you’re not using Ubuntu.

Categories: Web Tags: , , , , ,
  1. June 25th, 2010 at 17:28 | #1

    So i just came across this and had a few questions

    1) Will this stop working when twitter switches over to OAuth?

    2) Is there a way to only send tweets when I select an OSD option?
    ie. I am watching a show and press some on screen or menu option that says “tweet this show”

    3) Have you found (or made) a plugin to go the other way, and have a twitter ticker on the bottom of the screen?

  2. Ed
    June 25th, 2010 at 17:36 | #2

    Hi,

    Wow, I had no idea that they will be deprecating basic authentication! I will get some kind of solution to this when I have time – and I have several other things that tweet that I’ll need to change. So answer to 1 is no!

    2) Not sure to be honest – I’ve never looked at getting events out of MythTV. However, it would be trivial to knock up a script that is called when you press a button on your remote (via irexec), which queries the currently watched program (same way as this script works) and tweets it.

    3) Dale Lane has done this – can’t say I’ve tried it, but worth looking at – http://dalelane.co.uk/blog/?p=1284

    Thanks,
    Ed

  1. No trackbacks yet.