Evertime I reboot my Pi incased in the X-C1 I need to run the blow steps in order to get the fan to run:
- sudo killall pigpiod
- Must run or I will get an error when I try and run python ./x-c1/fan.py &
- sudo pigpiod
- python ./x-c1/fan.py &
What can I do to get the fan to run on boot and not have to run those commands each time?