Led widget Raspberry Pi 3 (Node.js)

this and my sketch and it works!
thank you so much :heart_eyes::heart_eyes::heart_eyes:

the last thing as start index.js at startup of raspberry?

If that means how do I automatically start the script then install forever-service from GitHub - zapty/forever-service: Provision node script as a service via forever, allowing it to automatically start on boot, working across various Linux distros and OS
Bit tricky to set up but worth it. If I edit my script then kill app.js it will automatically restart with the new script and starts on Pi boot up.
If this is not you question please advise further.

Hi @Costas , sorry if I write you late, but I was busy with the job and did not have time to answer you. I want to start index.js at every start of the raspberry. so i just have to install the command line in description to your link and it already works? Or do I need to tighten the parameters? Thanks again

@Jack1 this is what I originally followed https://causeyourestuck.io/2016/04/30/run-node-js-script-startup/

I haven’t tried it but you could try section 5 of this guide http://weworkweplay.com/play/raspberry-pi-nodejs/

@Jack1 from memory the reason I went with the forever-service is that some of my Pi’s are client and server. Server takes ages to start and will not be running when the client tries to connect if you use the regular rc.local, crontab, profile hacks etc. If you are not using the Pi as a local server the regular hacks will probably be OK.

no I do not use the local server, I’m using the cloud Blynk server

as always I thank you infinitely for all the help you have given me! I also managed to set node.js at the start of the raspberry with your guide forever! thank you so much . @costas

1 Like