version 1.6.2

This commit is contained in:
Johannes Holzwarth | SE-Inno GmbH
2024-01-15 14:02:18 +01:00
parent c1237ade5f
commit 2c387faf2b
2 changed files with 13 additions and 14 deletions
+7 -8
View File
@@ -96,19 +96,18 @@ class MonitoringServer extends IPSModule {
if ($value == true){
if ($value == "true"){
curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=1');
echo 'es war ein bool der TRUE war ';
}
elseif($value == false){
elseif($value == "false"){
curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=0');
//echo 'es war ein bool ';
echo 'es war ein bool ';
}
else{
curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=' .$value);
//echo 'es war ein float/int ';
echo 'es war ein float/int ';
}
@@ -214,9 +213,9 @@ class MonitoringServer extends IPSModule {
$parname = str_replace(" ","", $parname);
$varname = str_replace(" ","", $varname);
$system = "P".$projectnumber."_ISP".$ispnumber;
$system = "P".$projectnumber."ISP".$ispnumber;
$category = "Analog";
$valuename = $parname."_".$varname;
$valuename = $parname."".$varname;
// if($this->state["status"] == "pass"){ }
Write2Influx($payload, $ssl, $server, $port, $db, $system, $category, $valuename);
+1 -1
View File
@@ -8,6 +8,6 @@
"date": 1491343200
},
"version": "1.6",
"build": 2,
"build": 3,
"date": 0
}