Merge pull request #991 from pi-hole/new/user-definable-temp-limit

Add TEMPERATURELIMIT setting
This commit is contained in:
Mark Drobnak
2019-08-21 09:02:54 -04:00
committed by GitHub

View File

@@ -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 "<a id=\"temperature\"><i class=\"fa fa-fire\" style=\"color:";
if ($celsius > 60) {
if ($celsius > $temperaturelimit) {
echo "#FF0000";
}
else