version 1.6.4

This commit is contained in:
Johannes Holzwarth | SE-Inno GmbH
2024-01-15 14:11:58 +01:00
parent 2c387faf2b
commit 30e968eddc
2 changed files with 8 additions and 7 deletions
+6 -5
View File
@@ -78,7 +78,7 @@ class MonitoringServer extends IPSModule {
$status = ($stoptime - $starttime) * 1000; $status = ($stoptime - $starttime) * 1000;
$status = floor($status); $status = floor($status);
} }
if ($status > 0){ if ($status > -1){
print_r("Everything fine :)"); print_r("Everything fine :)");
} }
return $status; return $status;
@@ -217,8 +217,9 @@ class MonitoringServer extends IPSModule {
$category = "Analog"; $category = "Analog";
$valuename = $parname."".$varname; $valuename = $parname."".$varname;
// if($this->state["status"] == "pass"){ } // if($this->state["status"] == "pass"){ }
if($this->checkInfluxState() > -1){
Write2Influx($payload, $ssl, $server, $port, $db, $system, $category, $valuename); $this->Write2Influx($payload, $ssl, $server, $port, $db, $system, $category, $valuename);
}
} }
@@ -260,8 +261,8 @@ class MonitoringServer extends IPSModule {
$category = "Digital"; $category = "Digital";
$valuename = $parname."_".$varname; $valuename = $parname."_".$varname;
if($this->checkInfluxState() < 5){ if($this->checkInfluxState() > -1){
Write2Influx($payload, $ssl, $server, $port, $db, $system, $category, $valuename); $this->Write2Influx($payload, $ssl, $server, $port, $db, $system, $category, $valuename);
} }
+1 -1
View File
@@ -8,6 +8,6 @@
"date": 1491343200 "date": 1491343200
}, },
"version": "1.6", "version": "1.6",
"build": 3, "build": 4,
"date": 0 "date": 0
} }