no message
This commit is contained in:
@@ -25,7 +25,8 @@ class Energy_Pie extends IPSModule
|
|||||||
$this->SetVisualizationType(1);
|
$this->SetVisualizationType(1);
|
||||||
|
|
||||||
// IMPORTANT: Timer calls global helper below (must exist!)
|
// IMPORTANT: Timer calls global helper below (must exist!)
|
||||||
$this->RegisterTimer('AutoPush', 0, 'EP_AutoPush($_IPS["TARGET"]);');
|
$this->RegisterTimer('AutoPush', 0, 'IPS_RequestAction($_IPS["TARGET"], "Refresh", 1);');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ApplyChanges(): void
|
public function ApplyChanges(): void
|
||||||
@@ -309,13 +310,6 @@ class Energy_Pie extends IPSModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Timer callback (must exist, because RegisterTimer uses it).
|
|
||||||
* We keep it super simple and robust:
|
|
||||||
* -> just trigger Refresh, which recalculates + pushes the payload.
|
|
||||||
*/
|
|
||||||
function EP_AutoPush(int $id): void
|
|
||||||
{
|
|
||||||
@IPS_RequestAction($id, 'Refresh', 1);
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user