Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noob Guide for Using P1 Reader #21

Open
maristo0711 opened this issue Jun 22, 2021 · 2 comments
Open

Noob Guide for Using P1 Reader #21

maristo0711 opened this issue Jun 22, 2021 · 2 comments

Comments

@maristo0711
Copy link

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
Copy link
Owner

ruudverheijden commented Jun 28, 2021

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants