feat: add ClientIdPortal property to CounterServer module and form.json

This commit is contained in:
jhartworks
2026-04-16 13:40:00 +02:00
parent 3df0f898db
commit 0723a2d33f
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ class CounterServer extends IPSModule
$this->RegisterPropertyInteger('Connector', 0);
$this->RegisterPropertyInteger('SourceJSON', 0);
$this->RegisterPropertyInteger('UpdateTime', 60);
$this->RegisterPropertyInteger('ClientIdPortal', 0);
$this->RegisterTimer('Update', 0, 'SECT_checkTable($_IPS[\'TARGET\']);');
}
@@ -61,7 +61,7 @@ class CounterServer extends IPSModule
$counterName = $c['name'] ?? $counterId;
$type = $c['type'] ?? 'other';
$unit = $c['unit'] ?? 'kWh';
$projectId = isset($c['project_id']) ? (int)$c['project_id'] : 'NULL';
$projectId = $this->ReadPropertyInteger('ClientIdPortal');
// ---------- UPSERT ----------
$sql = "