V2.1
This commit is contained in:
@@ -37,9 +37,14 @@ class MonitoringServer extends IPSModule {
|
|||||||
$this->RegisterTimer("ForceUpdateValues", 0, 'SEMS_checkValues('.$this->InstanceID.',true);');
|
$this->RegisterTimer("ForceUpdateValues", 0, 'SEMS_checkValues('.$this->InstanceID.',true);');
|
||||||
|
|
||||||
$this->RegisterVariableInteger("AlarmVarCount", "Number of Alarmvalues", "", 0);
|
$this->RegisterVariableInteger("AlarmVarCount", "Number of Alarmvalues", "", 0);
|
||||||
|
$this->RegisterAttributeInteger("AlarmVarCountOld", 0);
|
||||||
|
|
||||||
$this->RegisterVariableInteger("AlarmActiveCount", "Number of Values in Alarmstate", "", 1);
|
$this->RegisterVariableInteger("AlarmActiveCount", "Number of Values in Alarmstate", "", 1);
|
||||||
$this->RegisterVariableInteger("AnalogVarCount", "Number of Analogvalues", "", 2);
|
$this->RegisterVariableInteger("AnalogVarCount", "Number of Analogvalues", "", 2);
|
||||||
|
$this->RegisterAttributeInteger("AnalogVarCountOld", 0);
|
||||||
|
|
||||||
$this->RegisterVariableInteger("DigitalVarCount", "Number of DigitalValues", "", 3);
|
$this->RegisterVariableInteger("DigitalVarCount", "Number of DigitalValues", "", 3);
|
||||||
|
$this->RegisterAttributeInteger("DigitalVarCountOld", 0);
|
||||||
|
|
||||||
$this->RegisterVariableString("Alarmtable", "Alarmhistorie", "~HTMLBox", 30);
|
$this->RegisterVariableString("Alarmtable", "Alarmhistorie", "~HTMLBox", 30);
|
||||||
$this->RegisterAttributeString("AtAlarmtable", "");
|
$this->RegisterAttributeString("AtAlarmtable", "");
|
||||||
@@ -181,10 +186,31 @@ class MonitoringServer extends IPSModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function checkIfSomethingChanged()
|
||||||
public function checkValues($force) {
|
{
|
||||||
|
$actAlarmCount = GetValueInteger(GetIDForIdent("AlarmVarCount"));
|
||||||
|
$oldAlarmCount = ReadAttributeInteger("AlarmVarCountOld");
|
||||||
|
if($actAlarmCount <> $oldAlarmCount){
|
||||||
|
WriteAttributeInteger("AlarmVarCountOld", $actAlarmCount);
|
||||||
$this->clearNames();
|
$this->clearNames();
|
||||||
|
}
|
||||||
|
|
||||||
|
$actAnalogCount = GetValueInteger(GetIDForIdent("AnalogVarCount"));
|
||||||
|
$oldAnalogCount = ReadAttributeInteger("AnalogVarCountOld");
|
||||||
|
if($actAnalogCount <> $oldAnalogCount){
|
||||||
|
WriteAttributeInteger("AnalogVarCountOld", $actAlarmCount);
|
||||||
|
$this->clearNames();
|
||||||
|
}
|
||||||
|
|
||||||
|
$actDigitalCount = GetValueInteger(GetIDForIdent("DigitalVarCount"));
|
||||||
|
$oldDigitalCount = ReadAttributeInteger("DigitalVarCountOld");
|
||||||
|
if($actDigitalCount <> $oldDigitalCount){
|
||||||
|
WriteAttributeInteger("DigitalVarCountOld", $actDigitalCount);
|
||||||
|
$this->clearNames();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public function checkValues($force) {
|
||||||
|
|
||||||
$catNotifyId = $this->ReadPropertyInteger("ParseNotifyCategoryID");
|
$catNotifyId = $this->ReadPropertyInteger("ParseNotifyCategoryID");
|
||||||
$catAnalogId = $this->ReadPropertyInteger("ParseAnalogCategoryID");
|
$catAnalogId = $this->ReadPropertyInteger("ParseAnalogCategoryID");
|
||||||
|
|||||||
+2
-2
@@ -7,7 +7,7 @@
|
|||||||
"version": "6.0",
|
"version": "6.0",
|
||||||
"date": 1491343200
|
"date": 1491343200
|
||||||
},
|
},
|
||||||
"version": "2.0",
|
"version": "2.1",
|
||||||
"build": 11,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user