version 1.6.4
This commit is contained in:
@@ -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;
|
||||||
@@ -143,7 +143,7 @@ class MonitoringServer extends IPSModule {
|
|||||||
$alarmvalues++;
|
$alarmvalues++;
|
||||||
if ($sendit == true){
|
if ($sendit == true){
|
||||||
if ($this->notify($childid, $visuId, $catAlarmId, $projectnumber, $projectname, $ispnumber) == true){
|
if ($this->notify($childid, $visuId, $catAlarmId, $projectnumber, $projectname, $ispnumber) == true){
|
||||||
$inalarmcount++;
|
$inalarmcount ++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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
@@ -8,6 +8,6 @@
|
|||||||
"date": 1491343200
|
"date": 1491343200
|
||||||
},
|
},
|
||||||
"version": "1.6",
|
"version": "1.6",
|
||||||
"build": 3,
|
"build": 4,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user