SKY dog remover script

From MythTV Official Wiki
Revision as of 22:29, 6 May 2008 by GBee (talk | contribs) (Move the note added by Jogu to a notebox at the top of the page.)

Jump to: navigation, search

Important.png Note: May 2008: Note that on many sky boxes running current firmware, there are now options in the setup menu to disable the red dot display, which should reduce the need for this script.

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.