no message
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
{
|
||||
"type": "Button",
|
||||
"caption": "Werte sofort übernehmen",
|
||||
"onClick": "Peakshaving_ApplyCurrentValues($id);"
|
||||
"onClick": "GEF_ApplyCurrentValues($id);"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user