Kodi Community Forum

Full Version: [LINUX] where are temperatures displayed? (ION, Live, DHARMA Beta1)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

This might be a very basic question, but...

I have Dharma Beta 1 running on an ASRock A330ION, installed from XBMC Live. I found out about <gputempcommand> and <cputempcommand>, so I put the appropriate things in .xbmc/userdata/advancedsettings.xml. They look like this:

<advancedsettings>
<cputempcommand>/usr/bin/perl -e 'print `sensors` =~ /CPU Temp:\s*?(\d+\.\d+)/," C"'</cputempcommand>
</advancedsettings>

The command itself works fine when I run it from the shell:
/usr/bin/perl -e 'print `sensors` =~ /CPU Temp:\s*?(\d+\.\d+)/," C"'
48.5 C

But... where should I see this value displayed??
See: http://pastebin.com/ea1Pw3ND

This looks good to me:

02:37:43 T:3079010176 M:693227520 NOTICE: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
<cputempcommand>/usr/bin/perl -e &apos;print `sensors` =~ /CPU Temp.*?(\d+\.\d+)/,&quot; C&quot;&apos;</cputempcommand>
<gputempcommand>/usr/bin/perl -e &apos;print `sensors` =~ /Sys Temp.*?(\d+\.\d+)/,&quot; C&quot;&apos;</gputempcommand>
<samba>
<clienttimeout>10</clienttimeout>
</samba>
</advancedsettings>
02:37:43 T:3079010176 M:693227520 NOTICE: Getting hardware information now...
If your using Confluence then select System and right arrow over and choose system info, Then its under Video/Hardware.
AllanMar Wrote:If your using Confluence then select System and right arrow over and choose system info, Then its under Video/Hardware.

Thanks AllanMar, I figured it out just before, by looking into the keymap file, that there is a system info menu SmileSmile

On the other hand, I got a "?" at both CPU and GPU temps. I figured out XBMC doesn't like dots, so "40.5 C" doesn't work, but "40 C" does...

These are OK now:
<cputempcommand>perl -e 'print `sensors` =~ /CPU Temp.*?(\d+)/," C"'</cputempcommand>
<gputempcommand>perl -e 'print `sensors` =~ /Sys Temp.*?(\d+)/," C"'</gputempcommand>