mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 02:39:25 +01:00
Merge pull request #991 from pi-hole/new/user-definable-temp-limit
Add TEMPERATURELIMIT setting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user