mirror of
https://github.com/pi-hole/web.git
synced 2026-04-26 03:40:09 +01:00
Use and set the unit on setupVars.conf option TEMPERATUREUNIT
New behavior!!! The temperature unit will be set GLOBALLY and not per browser. - if a TEMPERATUREUNIT is set in setupVars.conf file, the value will be used. - if there is no unit set in setupVars.conf, "C" will be used; - changing the value on the web interface WILL CHANGE setupVars.conf. - if the browser has an old value set on locastorage, this will be ingnored. Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
}
|
||||
echo '<span id="temperature"><i class="fa fa-w fa-fire '.$tempcolor.'" style="width: 1em !important"></i> ';
|
||||
echo 'Temp: <span id="rawtemp" hidden>'.$celsius.'</span>';
|
||||
echo '<span id="tempunit" hidden>'.$temperatureunit.'</span>';
|
||||
echo '<span id="tempdisplay"></span></span>';
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user