TV Wakeup Timer

From MythTV Official Wiki
Revision as of 02:35, 11 November 2008 by Malban (talk | contribs)

Jump to: navigation, search

I perfer to have the TV wake me up instead of an alarm clock. With version 0.19 and the new TCP Port Frontend control you can do it. Setup the TV to turn on at whatever time you wish to get up. And then run the following script with cron at the same time.

The script connects to the frontend via telnet, switches to LiveTV and changes the channel.


use Net::Telnet;

$host = "localhost";
$port = 6546;
$channel = 67;

$telnet = new Net::Telnet ( Timeout=>10,

my $length = length($channel);
my $counter = 0;
my $temp;

$telnet->open( $host );

$telnet->print('jump livetv');

while( $counter < $length ) {
  $telnet->print("key " . substr($channel,$counter,1) );


Important.png Note: The telnet feature that this script uses is disabled by default. Enable it via the mythfrontend setup screen under the Default settings page, and then restart mythfrontend.