CPU temp not displayed on admin web page


#1

Hi. Just wonder way u still can set cpu temp to “C” “F” and “K” when it does not show??


#2

What is not showing? The CPU temp on your status box in the admin web page, or the options to change the CPU temperature units on the admin web page (settings > API/Web Interface)?


#3

If you want to change this from the Linux command line, the options are as follows for the pihole command (reference pihole -a -h):

-a, admin [options]

       (Admin options):
      ...
         -c, celsius       Set Celsius as preferred temperature unit
         -f, fahrenheit    Set Fahrenheit as preferred temperature unit
         -k, kelvin        Set Kelvin as preferred temperature unit
      ...

#4

Oh sorry I forgot to say where ;(

Its on the main page in the upper left corner where the load is and memory usage :slight_smile:

bild

:slight_smile:

I know they took away it but way is it still an option ?


#5

The feature is still implemented, but if the web interface can’t find the temperature, it does not show it.


#6

Ok see what i can do
:slight_smile:


#7

Where can i go in and change the header. ??


#8

If you really want to, you can modify it at /var/www/html/admin/scripts/pi-hole/php/header.php. This will not be persisted across updates.


#9

i dont have this in my pihole…its different

 if(file_exists("/sys/class/thermal/thermal_zone0/temp"))
    {
        $output = rtrim(file_get_contents("/sys/class/thermal/thermal_zone0/temp"));
    }
    elseif (file_exists("/sys/class/hwmon/hwmon0/temp1_input"))
    {
        $output = rtrim(file_get_contents("/sys/class/hwmon/hwmon0/temp1_input"));
    }

I have this

pihole@pihole:/sys/class/thermal$ ls
cooling_device0  cooling_device1
pihole@pihole:/sys/class/thermal$

I got this when I changed to other setting:

bild

But I dont think the temp is 14!!