version 1.6.5
This commit is contained in:
@@ -98,16 +98,16 @@ class MonitoringServer extends IPSModule {
|
|||||||
|
|
||||||
if ($value == "true"){
|
if ($value == "true"){
|
||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=1');
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $system.','.$category.'='.$valuename.' value=1');
|
||||||
echo 'es war ein bool der TRUE war ';
|
// echo 'es war ein bool der TRUE war ';
|
||||||
}
|
}
|
||||||
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 ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ class MonitoringServer extends IPSModule {
|
|||||||
$changedtime = $varInfo["VariableChanged"];
|
$changedtime = $varInfo["VariableChanged"];
|
||||||
$varname = IPS_GetName($childid);
|
$varname = IPS_GetName($childid);
|
||||||
$time = time();
|
$time = time();
|
||||||
$payload = GetValueBoolean($childid);
|
$payload = GetValue($childid);
|
||||||
$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){
|
||||||
|
|||||||
+1
-1
@@ -8,6 +8,6 @@
|
|||||||
"date": 1491343200
|
"date": 1491343200
|
||||||
},
|
},
|
||||||
"version": "1.6",
|
"version": "1.6",
|
||||||
"build": 4,
|
"build": 5,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user