Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #edit cron by running "sudo crontab -e" without quotes
- #cron runs in root, all called scripts require full paths ie /home/pi/lightshowpi/py/hardware_controller.py
- # Always put this at the top
- SYNCHRONIZED_LIGHTS_HOME=/home/pi/lightshowpi
- # Start microweb on boot
- @reboot $SYNCHRONIZED_LIGHTS_HOME/bin/start_microweb
- # Evening Start
- # Turn on the lights at 4:30pm
- 30 16 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 5:00pm
- # turn lights on
- 00 17 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 5:30pm
- # turn lights on
- 30 17 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 6:00pm
- # turn lights on
- 00 18 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 6:30pm
- # turn lights on
- 30 18 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 7:00pm
- # turn lights on
- 00 19 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 7:30pm
- # turn lights on
- 30 19 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 8:00pm
- # turn lights on
- 00 20 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 8:30pm
- # turn lights on
- 30 20 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 9:00pm
- # turn lights on
- 00 21 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- # play 1 song from playlist at 9:30pm
- # turn lights on
- 30 21 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/2021/.playlist && sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
- #End of Night
- # Turn off the lights at 10:30pm
- 30 22 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement