ahodges9 / LedFx

LedFx is a network based LED effect controller with support for advanced real-time audio effects! LedFx can control multiple devices and works great with cheap ESP8266 nodes allowing for cost effectvice syncronized effects across your entire house!
MIT License
384 stars 91 forks source link

Start on reboot #110

Closed rohanmuz2 closed 4 years ago

rohanmuz2 commented 4 years ago

Hi It's not a bug but a question I want to start ledfx on reboot . I am currently using PI to run this . I tried putting ledfx command with absolute path in rc.local , crontab and init.d file but non of them is working .Has anyone done this .

rohanmuz2 commented 4 years ago

I am able to do this by doing below step in pi 1)Create any file called rohan.sh --Content of file /home/pi/.local/bin/ledfx

2)Call this file in rc.local sudo /home/pi/rohan.sh 2 > /etc/nohup.out & 3)sudo reboot

Once PI comes online Ledfx is able to start sucessfully

**Please rember to do all the installation with root user else it will not work