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

Noob Guide for Using P1 Reader #21

Open maristo0711 opened 3 years ago

maristo0711 commented 3 years ago

Hi Ruud! I've hooked up my old Raspberry Pi to the P1 port and installed your P1 package but now I'm stuck, probably because I'm a noob to Node.js.

What do I have to do once I've your package installed via npm? I've tried following: node main.js

Should the counter readings show up on the screen?

Thanks for you help.

ruudverheijden commented 3 years ago

Hi maristo0711,

This package is actually more like a technical library that can be used in other systems, so it does require some programming skills to actually get a nice visual dashboard or something out of it. I do have the example.js file included as a starter to print the actual readings to the terminal but that is more meant for testing if everything works.

So running the code below on your raspberry pi should give you some output to see if everything is working, but if you want to have a nice web interface you should look for other solutions.

npm install
node examples/example.js
maristo0711 commented 3 years ago

Hi Ruud,

Thank you for your reply and guidance. It gonna be steep learning curve for me since I don't know anything about node.js. I'll try the example file to get some data from the P1 and take it from there then.