no message
This commit is contained in:
@@ -16,7 +16,7 @@ class PV_Visu extends IPSModule
|
|||||||
$this->SetVisualizationType(3);
|
$this->SetVisualizationType(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ApplyChanges(): void
|
public function ApplyChanges()
|
||||||
{
|
{
|
||||||
parent::ApplyChanges();
|
parent::ApplyChanges();
|
||||||
$this->UpdateData();
|
$this->UpdateData();
|
||||||
@@ -25,7 +25,7 @@ class PV_Visu extends IPSModule
|
|||||||
/**
|
/**
|
||||||
* Liefert das HTML-Template und injiziert initiale Tagesdaten
|
* Liefert das HTML-Template und injiziert initiale Tagesdaten
|
||||||
*/
|
*/
|
||||||
public function GetVisualizationTile(): string
|
public function GetVisualizationTile()
|
||||||
{
|
{
|
||||||
// Tageswerte berechnen
|
// Tageswerte berechnen
|
||||||
$start = strtotime('today 00:00');
|
$start = strtotime('today 00:00');
|
||||||
@@ -77,7 +77,7 @@ class PV_Visu extends IPSModule
|
|||||||
/**
|
/**
|
||||||
* Callback vom HTML: sendet frische Daten
|
* Callback vom HTML: sendet frische Daten
|
||||||
*/
|
*/
|
||||||
public function RequestAction($Ident, $Value): void
|
public function RequestAction($Ident, $Value)
|
||||||
{
|
{
|
||||||
if ($Ident === 'update') {
|
if ($Ident === 'update') {
|
||||||
$this->UpdateData();
|
$this->UpdateData();
|
||||||
@@ -89,7 +89,7 @@ class PV_Visu extends IPSModule
|
|||||||
/**
|
/**
|
||||||
* Aktualisiert Daten und sendet an Tile
|
* Aktualisiert Daten und sendet an Tile
|
||||||
*/
|
*/
|
||||||
public function UpdateData(): void
|
public function UpdateData()
|
||||||
{
|
{
|
||||||
$start = strtotime('today 00:00');
|
$start = strtotime('today 00:00');
|
||||||
$end = time();
|
$end = time();
|
||||||
@@ -123,7 +123,7 @@ class PV_Visu extends IPSModule
|
|||||||
/**
|
/**
|
||||||
* Holt Tages-Aggregat aus dem IPS-Archiv
|
* Holt Tages-Aggregat aus dem IPS-Archiv
|
||||||
*/
|
*/
|
||||||
private function GetDailyTotal(int $varID, int $start, int $end): float
|
private function GetDailyTotal(int $varID, int $start, int $end)
|
||||||
{
|
{
|
||||||
if ($varID <= 0) {
|
if ($varID <= 0) {
|
||||||
return 0.0;
|
return 0.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user