[mythtv-users] How to show CPU temp by pressing remote
Phill Edwards
philledwards at gmail.com
Thu Sep 1 13:59:26 UTC 2005
If you're watching a recording or Live TV this will show the CPU temp,
the current time and the system up time on the TV screen. All you have
to do is add these lines to lircrc:
# Show CPU Temp, Time & Uptime using mythtvosd
begin
prog = irexec
button = Message
repeat = 0
config = /usr/bin/mythtvosd --template=alert alert_text="`sudo
/usr/bin/mbmoo
n -c 1 -t -u | sed -e 1d -e 3d`"
end
NB - you have to have mythtvosd installed and the mbmon utility. If
you use lm_sensors then just modify the command as appropriate.
If you want to display it in a scroller instead use this as the config line:
config = /usr/bin/mythtvosd --template=scroller scroll_text="`sudo
/usr/bin/mbmoo
n -c 1 -t -u | sed -e 1d -e 3d`"
Hope that's useful for somebody/
Regards,
Phill
More information about the mythtv-users
mailing list