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

tariffDescription #31

Open timoline opened 1 year ago

timoline commented 1 year ago

please add TariffDescripton, so no need to convert it anywhere else ;-)

if(parsedPacket.electricity.tariffIndicator == 1){parsedPacket.electricity.tariffDescription = "Low"} else {parsedPacket.electricity.tariffDescription = "Normal"};