[mythtv-users] Current time of day?

Brad DerManouelian myth at dermanouelian.com
Tue Dec 20 18:26:10 EST 2005


On Dec 20, 2005, at 1:39 PM, Al Mcintosh wrote:

>> You could make a small shell script that calls mythtvosd to  
>> display the current time and map the script to a button on your  
>> remote.
>>
>> mythtvosd --template=alert --alert_text=$(date)
>>
>
> This was my first impulse but thought I would check before  
> reinventing the wheel. :)
>
> I don't want to exit the show I am watching just to see the time.  
> It would be nice to see it in the OSD info.

For a more realistic clock on your video capture machine, use this:

#!/usr/bin/perl
for ( my $i = 0; 1; $i++ )
{
     `mythtvosd --template=alert --alert_text="12:00"`;
     sleep 1;
     `mythtvosd --template=alert --alert_text=""`;
     sleep 1;
}

Sorry... couldn't resist.




More information about the mythtv-users mailing list