CPU temp not displayed on admin web page


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


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)?


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


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:



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


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


Ok see what i can do


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


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.


i dont have this in my pihole…its different

        $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

I got this when I changed to other setting:


But I dont think the temp is 14!!