I've been trying to run this code on startup for the last two days:
I've tried the
rc.local method, the
init.d method and
sudo crontab -e method but none of them worked for me !
The file is executable (
sudo chmod +x InitiateSensors.js)
I am accessing the Raspberry Pi remotely using
xrdp and user pi.
Any ideas why this isn't working ?