no message
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
{
|
{
|
||||||
"type": "Button",
|
"type": "Button",
|
||||||
"caption": "Werte sofort übernehmen",
|
"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\']);');
|
$this->RegisterTimer('DailyUpdate', 0, 'GEF_ApplyCurrentValues($_IPS[\'TARGET\']);');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ApplyChanges()
|
public function ApplyChanges()
|
||||||
{
|
{
|
||||||
parent::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
|
if (IPS_GetName($this->InstanceID) == '') {
|
||||||
$this->ApplyCurrentValues();
|
IPS_SetName($this->InstanceID, 'Peakshaving');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public function RequestAction($Ident, $Value)
|
public function RequestAction($Ident, $Value)
|
||||||
{
|
{
|
||||||
switch ($Ident) {
|
switch ($Ident) {
|
||||||
@@ -88,7 +87,7 @@ class Peakshaving extends IPSModule
|
|||||||
$this->ApplyCapacityToTarget($values['capacity']);
|
$this->ApplyCapacityToTarget($values['capacity']);
|
||||||
$this->ApplyPowerToTarget($values['power']);
|
$this->ApplyPowerToTarget($values['power']);
|
||||||
|
|
||||||
echo 'Peakshaving Werte wurden übernommen.' . PHP_EOL;
|
return 'Peakshaving Werte wurden übernommen.';
|
||||||
}
|
}
|
||||||
|
|
||||||
private function GetValuesForCurrentMonth()
|
private function GetValuesForCurrentMonth()
|
||||||
|
|||||||
Reference in New Issue
Block a user