Advertisement
Guest User

lightshowpi schedule

a guest
Dec 9th, 2022
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. # Always put this at the top
  2. SYNCHRONIZED_LIGHTS_HOME=/home/pi/lightshowpi
  3.  
  4. # Start microweb on boot
  5. @reboot $SYNCHRONIZED_LIGHTS_HOME/bin/start_microweb
  6. @reboot sudo python $SYNCHRONIZED_LIGHTS_HOME/py/button.py &
  7.  
  8. # Evening Start
  9. # Turn on the lights at 4:30pm
  10. 30 16 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
  11.  
  12. # Show for 15min
  13. # Play my 2021 playlist one time thru and exit at 5:00 pm
  14. 00 17 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/start_music_and_lights
  15.  
  16. # Stop the show at 5:14pm
  17. 14 17 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/stop_music_and_lights
  18.  
  19. # Turn on the lights at 5:15pm
  20. 15 17 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
  21.  
  22. # Turn off the lights at 5:59pm
  23. #59 17 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=off
  24.  
  25. #Show for 15min
  26. # Play my 2021 playlist one time thru and exit at 6:00 pm
  27. 00 18 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/start_music_and_lights
  28.  
  29. # Stop the show at 6:14pm
  30. 14 18 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/stop_music_and_lights
  31.  
  32. # Turn on the lights at 6:15pm
  33. 15 18 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
  34.  
  35. # Turn off the lights at 6:59pm
  36. #59 18 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=off
  37.  
  38. # Show for 15min
  39. # Play my 2021 playlist one time thru and exit at 7:00 pm
  40. 00 19 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/start_music_and_lights
  41.  
  42. # Stop the show at 7:14pm
  43. 14 19 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/stop_music_and_lights
  44.  
  45. # Turn on the lights at 7:15pm
  46. 15 19 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
  47.  
  48. # Turn off the lights at 7:59pm
  49. #59 19 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=off
  50.  
  51. # Show for 15min
  52. # Play my 2021 playlist one time thru and exit at 8:00 pm
  53. 00 20 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/start_music_and_lights
  54.  
  55. # Stop the show at 8:14pm
  56. 14 20 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/stop_music_and_lights
  57.  
  58. # Turn on the lights at 8:15pm
  59. 15 20 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
  60.  
  61. # Turn off the lights at 8:59pm
  62. #59 20 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=off
  63.  
  64. # Show for 15min
  65. # Play my 2021 playlist one time thru and exit at 9:00 pm
  66. #00 21 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/start_music_and_lights
  67.  
  68. # Stop the show at 9:14pm
  69. #14 21 * * * $SYNCHRONIZED_LIGHTS_HOME/bin/stop_music_and_lights
  70.  
  71. # Turn on the lights at 9:15pm
  72. #15 21 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=on
  73.  
  74. #End of Night
  75. # Turn off the lights at 10:30pm
  76. 30 22 * * * sudo python $SYNCHRONIZED_LIGHTS_HOME/py/hardware_controller.py --state=off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement