OSD notification of recording start, RSS, email, irc, twitter

Also see Run a command at start or end of a recording/playing/jobs

This will display a message on the screen when a recording starts, RSS feeds, email arrival, almost anything you want. By default it will display using the MythTV osd (ticker) if you are playing a recording with the internal play, or with xosd if you are not.

Current Version: V1.8, V1.6, V1.8, V1.2, V1.5

  1. Make pipe "mknod /tmp/.monitor-pipe-send-osd p"
  2. Install monitor-pipe-send-osd.sh into a directory in your PATH. This needs to be run in the background as the user running the display. In Gnome you can add it to System -> Preferences -> Personal -> Sessions. But just adding the command as is will result in an extra one being run on each login as it does not get killed on logout. Therefore we need to wrap it in a script to ensure only one is running.

    Copy oneonly.sh to a directory in your PATH

    In Gnome
    goto System -> Preferences -> Personal -> Sessions
    Click New
    Name monitor-pipe-send-osd
    Command oneonly.sh kill monitor-pipe-send-osd.sh
    Logout, Login and you should have a monitor-pipe-send-osd.sh running.

    monitor-pipe-send-osd.sh will display to the screen anything written to /tmp/.monitor-pipe-send-osd. So it is a general utility that can be used to display anything.
    Options
    mythtvosd - force only use mythtvosd (mythtvosd only displays messages when in internal player)
    xosd - force only use xosd
    auto - use mythtvosd when playing a recording, xosd otherwise

  3. To display a message when a recording starts install monitor-recording.pl into a directory in your PATH.
    To run a one off check do "monitor-recording.pl once"
    To continuously check, run in background as "monitor-recording.pl". You can use the same method as above with oneonly.sh and Gnome Sessions.
    Options
    --display=mythtvosd - force only use mythtvosd (mythtvosd only displays messages when in internal player)
    --display=xosd - force only use xosd
    --display=auto - use mythtvosd when playing a recording, xosd otherwise

  4. To display rss feeds install monitor-rss.pl into a directory in your PATH.
    To run a one off check do "monitor-rss.pl"
    To continuously check, run in background as "monitor-rss.pl --sleep=mins" where mins is time between checks.
    Options
    --feedfile=file with RSS URL's. default db (MythTV news db)
    --sleep=minutes between runs default 0 (run once only)
    --display=mythtvosd - force only use mythtvosd (mythtvosd only display message when in internal player)
    --display=xosd - force only use xosd
    --display=auto - use mythtvosd when playing a recording, xosd otherwise
    --onplay run on playing a recording
    --kill kill current run
    By default it will use rss feeds from MythTV News Feeds. To override this "monitor-rss.pl --feedfile=file" file is a text file with one rss url per line.
    What I do is add it to lirc. (Remember you need irexec running for this)

    begin   
            remote = grayHauppauge
            prog = irexec
            button = hash
            repeat = 0
            config = monitor-rss.pl
    end
    

    You can also run it in the background (oneonly.sh as above) with either --sleep=mins option or --onplay. The --onplay option will cause it to run once whenever you play a recording.

  5. As stated above monitor-pipe-send-osd.sh can be used to display anything. For example if you have procmail setup, it can display email arrival with the following in $HOME/.procmailrc
    :0hc
    | awk '/From:/ {print}' >/tmp/.monitor-pipe-send-osd
    This only displays "local" mail. I use fetchmail to automatically get my email from the ISP and so the above works fine.

  6. To display irc messages I use the irssi IRC client and the following irssi script send-osd.pl I was hoping to have a standalone script but have not be able to get one to work yet.
  7. To display twitter messages install monitor-twitter.pl You can use the same method as above with oneonly.sh and Gnome Sessions.
    It can also send tweets on what your watching and or recording.
    Options
    monitor-twitter.pl --twlogin=twitter_login --twpasswd=twitter_passwd [--tweetplaying] [--tweetrecording] [--nomonitor] [--display=mythtvosd|xosd|auto]
    --tweetplaying Tweet what you are watching
    --tweetrecording Tweet what you are recording
    --nomonitor Don't show friends tweets
    --display display using mythtvosd xosd or auto

Required Applications

  1. xosd - RPM xosd.
  2. irssi - RPM irssi (Only for irc OSD)
  3. XML::RSS - RPM perl-XML-RSS (Only for monitor-rss.pl)
  4. Net::Twitter - http://search.cpan.org/~cthom/Net-Twitter-1.21/lib/Net/Twitter.pm (Only for monitor-twitter.pl)
  5. fetchmail - RPM fetchmail (Only if you want to use procmail for mail OSD)
  6. procmail - RPM procmail (Only if you want to use procmail for mail OSD)

Change History
17 Dec 2009 Changed monitor-twitter.pl to not have MythTV in tweet.
19 Mar 2009 Added mysql.txt search location to monitor-pipe-send-osd.sh V1.8
20 Dec 2008 Added monitor-twitter.pl V1.4. send-osd.pl V1.2. monitor-recording.pl V1.8
7 Dec 2008 Added irc monitor send-osd.pl V1.1
5 Oct 2008 V1.8,V1.6,V1.7 Added unicode and kill option to monitor-rss.pl
4 Oct 2008 V1.5,V1.6,V1.7 Added mythtvosd/xosd auto selection and multi line support to xosd also monitor-rss.pl
28 Sept 2008 V1.2 & V1.4 Initial release