diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php index e070bc81..9ab0d721 100644 --- a/scripts/pi-hole/php/header.php +++ b/scripts/pi-hole/php/header.php @@ -60,6 +60,15 @@ { $temperatureunit = $_POST["tempunit"]; } + // Get user-defined temperature limit if set + if(isset($setupVars['TEMPERATURE_LIMIT'])) + { + $temperaturelimit = intval($setupVars['TEMPERATURE_LIMIT']); + } + else + { + $temperaturelimit = 60; + } } else { @@ -339,7 +348,7 @@ if($auth) { { if ($celsius >= -273.15) { echo " 60) { + if ($celsius > $temperaturelimit) { echo "#FF0000"; } else