Files
Symcon_Belevo_Energiemanage…/Energy_Pie/module.html
2025-12-17 10:11:38 +01:00

23 lines
706 B
HTML

<div style="padding:12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;">
<div id="out"
style="white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
font-size:12px;line-height:1.35;opacity:0.95;">
Warte auf Daten…
</div>
</div>
<script>
window.handleMessage = function (data) {
// Symcon liefert manchmal JSON als String -> sauber parsen
if (typeof data === 'string') {
try { data = JSON.parse(data); } catch(e) {}
}
document.getElementById('out').textContent =
JSON.stringify(data, null, 2);
};
// initial anstoßen
setTimeout(() => requestAction('Refresh', 1), 200);
</script>