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
+12 -13
View File
@@ -96,19 +96,18 @@ class MonitoringServer extends IPSModule {
if ($value == "true"){
curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=1');
if ($value == true){ echo 'es war ein bool der TRUE war ';
curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=1'); }
} elseif($value == "false"){
elseif($value == false){ curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=0');
curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=0');
echo 'es war ein bool ';
//echo 'es war ein bool ';
} }
else{ else{
curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=' .$value); 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); $parname = str_replace(" ","", $parname);
$varname = str_replace(" ","", $varname); $varname = str_replace(" ","", $varname);
$system = "P".$projectnumber."_ISP".$ispnumber; $system = "P".$projectnumber."ISP".$ispnumber;
$category = "Analog"; $category = "Analog";
$valuename = $parname."_".$varname; $valuename = $parname."".$varname;
// if($this->state["status"] == "pass"){ } // if($this->state["status"] == "pass"){ }
Write2Influx($payload, $ssl, $server, $port, $db, $system, $category, $valuename); 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": 2, "build": 3,
"date": 0 "date": 0
} }