Difference between revisions of "SKY dog remover script"

From MythTV Official Wiki
Jump to: navigation, search
(Use the templates, that's what they are there for)
m (switch to perl template)
Line 8: Line 8:
  
 
I install it as <code><nowiki>/usr/local/bin/send_sky_backup</nowiki></code>
 
I install it as <code><nowiki>/usr/local/bin/send_sky_backup</nowiki></code>
{{Code box|send_sky_backup|
+
{{perl|send_sky_backup|
 
<pre><nowiki>
 
<pre><nowiki>
 
#!/usr/bin/perl -w
 
#!/usr/bin/perl -w

Revision as of 23:47, 16 March 2011

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

Application-x-perl.png 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.