UNPKG

node-red-contrib-discovergy-meter

Version:

Allows to work with a Discovergy Smart Meter (Electricity only) within Node RED flows

1 lines 606 B
$(document).ready((function(){const t=function(){$.getJSON("/msg",(function(t){window.localStorage.setItem("msg",JSON.stringify(t)),function(){if(void 0!==window.localStorage.getItem("msg")&&null!==window.localStorage.getItem("msg")){let t=JSON.parse(window.localStorage.getItem("msg"));$("#gsiChart").correntlyGSI(t.meterinfo.location.zip),void 0!==t.depot&&($("#gsbInfo").correntlySKOBalance(t.depot.account),$("#depot").correntlySKODepot(t.depot.account),$("#customsko").correntlyTreeBalance(t.depot.account),$("#hknchart").correntlyHKNChart(t.meterinfo.location.zip))}}()}))};t(),setInterval(t,9e5)}));