no message

This commit is contained in:
2025-07-03 15:58:05 +02:00
parent ed3dc27878
commit 6817dc2bd8
2 changed files with 14 additions and 7 deletions

View File

@@ -11,7 +11,6 @@ class PV_Visu extends IPSModule
$this->RegisterPropertyInteger('VarFeedIn', 0);
$this->RegisterPropertyInteger('VarGrid', 0);
// Variable zur Übergabe der Daten an das HTML
$this->RegisterVariableString('JSONData', 'Visualisierungsdaten', '', 0);
IPS_SetHidden($this->GetIDForIdent('JSONData'), true);
@@ -49,7 +48,7 @@ class PV_Visu extends IPSModule
public function RequestAction($Ident, $Value)
{
if ($Ident === 'update') {
return $this->UpdateData(); // Rückgabe für die Visualisierung
return $this->UpdateData(); // Rückgabe für Visualisierung
}
throw new \Exception("Unknown Ident: $Ident");
}
@@ -84,7 +83,7 @@ class PV_Visu extends IPSModule
$json = json_encode($data);
SetValueString($this->GetIDForIdent('JSONData'), $json);
return $data; // Wichtig für JS-Aufruf
return $data;
}
private function GetDailyTotal(int $varID, int $start, int $end)
@@ -97,4 +96,4 @@ class PV_Visu extends IPSModule
$values = @AC_GetAggregatedValues($archiveID, $varID, 1, $start, $end, 1);
return isset($values[0]['Avg']) ? (float)$values[0]['Avg'] : 0.0;
}
}
}