SKY dog remover script

From MythTV Official Wiki
Revision as of 21:50, 18 November 2005 by 66.56.208.117 (Edit performed by mwstuffer.pl)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sky Dog Remover

Sky has a habit of putting red dots and other annoyances on-screen. Pressing 'Backup' on the remote gets rid of (some of) them.

This script runs all the time and sends a BACKUP every 5 seconds.

It uses locking to co-operate with ../Sky Channel Changer Script (so it doesn't send a backup whilst you try and change channel)

I install it as /usr/local/bin/send_sky_backup

#!/usr/bin/perl -w

use ir;

while (1)
{
  sleep 5;
  get_lock && do {
    system "/usr/local/bin/irsend SEND_ONCE SKY BACKUP";
    clear_lock;
  }
}

TODO

Only actually send whilst Myth is recording.

This is because at the moment you can't use the Sky menus whilst this is running. Eg trying to use interactive or sky teletext is impossible - the script keeps 'backup'ing you out of it.