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:
DL6ER
2019-08-20 14:07:34 +02:00
committed by Mcat12
parent 01a29f6555
commit b66302bb9f

View File

@@ -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