mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Add TEMPERATURELIMIT setting in setupVars.conf for setting the level beyond which we show the temperature icon in red on the dashboard.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -60,6 +60,15 @@
|
||||
{
|
||||
$temperatureunit = $_POST["tempunit"];
|
||||
}
|
||||
// Get user-defined temperature limit if set
|
||||
if(isset($setupVars['TEMPERATURELIMIT']))
|
||||
{
|
||||
$temperaturelimit = intval($setupVars['TEMPERATURELIMIT']);
|
||||
}
|
||||
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