This commit is contained in:
jhartworks
2024-12-12 13:02:49 +01:00
parent 19189b82e9
commit 3e81b07cea
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -193,21 +193,21 @@ class MonitoringServer extends IPSModule {
public function checkIfSomethingChanged()
{
$actAlarmCount = GetValueInteger(GetIDForIdent("AlarmVarCount"));
$actAlarmCount = GetValueInteger($this->GetIDForIdent("AlarmVarCount"));
$oldAlarmCount = ReadAttributeInteger("AlarmVarCountOld");
if($actAlarmCount <> $oldAlarmCount){
WriteAttributeInteger("AlarmVarCountOld", $actAlarmCount);
$this->clearNames();
}
$actAnalogCount = GetValueInteger(GetIDForIdent("AnalogVarCount"));
$actAnalogCount = GetValueInteger($this->GetIDForIdent("AnalogVarCount"));
$oldAnalogCount = ReadAttributeInteger("AnalogVarCountOld");
if($actAnalogCount <> $oldAnalogCount){
WriteAttributeInteger("AnalogVarCountOld", $actAlarmCount);
$this->clearNames();
}
$actDigitalCount = GetValueInteger(GetIDForIdent("DigitalVarCount"));
$actDigitalCount = GetValueInteger($this->GetIDForIdent("DigitalVarCount"));
$oldDigitalCount = ReadAttributeInteger("DigitalVarCountOld");
if($actDigitalCount <> $oldDigitalCount){
WriteAttributeInteger("DigitalVarCountOld", $actDigitalCount);
+1 -1
View File
@@ -8,6 +8,6 @@
"date": 1491343200
},
"version": "2.1",
"build": 1,
"build": 2,
"date": 0
}