refactor CounterClient module: update timer callback to use InstanceID and clean up form.json by removing unused status codes

This commit is contained in:
jhartworks
2026-04-16 13:08:52 +02:00
parent 23c9b03a27
commit 1e182e8d80
2 changed files with 2 additions and 19 deletions
-17
View File
@@ -44,22 +44,5 @@
"caption": "Testlauf (JSON erzeugen)",
"onClick": "SECC_BuildAndStorePayload($id);"
}
],
"status": [
{
"code": 101,
"icon": "active",
"caption": "Aktiv"
},
{
"code": 102,
"icon": "inactive",
"caption": "Keine Kategorie gewählt"
},
{
"code": 103,
"icon": "inactive",
"caption": "Keine JSON Variable gewählt"
}
]
}
+1 -1
View File
@@ -15,7 +15,7 @@ class CounterClient extends IPSModule
$this->RegisterPropertyInteger('Projectyear', 2026);
$this->RegisterPropertyInteger('Projectnumber', 0);
$this->RegisterTimer('Update', 0, 'SECC_BuildAndStorePayload($id);');
$this->RegisterTimer('Update', 0, 'SECC_BuildAndStorePayload('.$this->InstanceID.');');
}
public function ApplyChanges()