ruudverheijden / node-p1-reader

Node.js package for reading and parsing data from the P1 port of a Dutch or Belgian Smart Meter.
MIT License
25 stars 25 forks source link

ActualGrid #30

Open timoline opened 1 year ago

timoline commented 1 year ago

Because we know the actual energy and the actualretour, it is possible to calculate the actualGrid in "realtime" It would be nice to have this ...

//added grid
parsedPacket.electricity.grid.actual.reading = parseFloat(parsedPacket.electricity.received.actual.reading - parsedPacket.electricity.delivered.actual.reading).toFixed(3);
parsedPacket.electricity.grid.actual.unit = "kW";