no message

This commit is contained in:
2026-05-27 11:41:25 +02:00
parent 41bc6b2e01
commit 2cc763a588
2 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -60,7 +60,7 @@
{
"type": "Button",
"caption": "Werte sofort übernehmen",
"onClick": "Peakshaving_ApplyCurrentValues($id);"
"onClick": "GEF_ApplyCurrentValues($id);"
}
]
}
+8 -9
View File
@@ -49,17 +49,16 @@ class Peakshaving extends IPSModule
$this->RegisterTimer('DailyUpdate', 0, 'GEF_ApplyCurrentValues($_IPS[\'TARGET\']);');
}
public function ApplyChanges()
{
parent::ApplyChanges();
public function ApplyChanges()
{
parent::ApplyChanges();
// täglich um 00:05 Uhr
$this->SetTimerInterval('DailyUpdate', 24 * 60 * 60 * 1000);
$this->SetTimerInterval('DailyUpdate', 24 * 60 * 60 * 1000);
// Beim Übernehmen der Modul-Konfiguration direkt aktuelle Werte setzen
$this->ApplyCurrentValues();
if (IPS_GetName($this->InstanceID) == '') {
IPS_SetName($this->InstanceID, 'Peakshaving');
}
}
public function RequestAction($Ident, $Value)
{
switch ($Ident) {
@@ -88,7 +87,7 @@ class Peakshaving extends IPSModule
$this->ApplyCapacityToTarget($values['capacity']);
$this->ApplyPowerToTarget($values['power']);
echo 'Peakshaving Werte wurden übernommen.' . PHP_EOL;
return 'Peakshaving Werte wurden übernommen.';
}
private function GetValuesForCurrentMonth()