Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # first script - kicks off at boot
- cat start-scoreboard.sh
- #!/bin/bash
- cd /home/pi/
- ./piTickerBoards.sh &
- # second - main rotation script
- cat piTickerBoards.sh
- #!/bin/bash
- while true; do
- cd /home/pi/nfl-led-scoreboard
- python main.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=50 --led-slowdown-gpio=2 & sleep 1200;
- ps aux | grep python | grep -v "grep python" | awk '{print $2}' | xargs kill -9
- echo "nfl-led-scoreboard - main.py -- any -- python process KILLED! onto the next ticker board!"
- cd /home/pi/RPi-RGB-Matrix-Scrolling-Sign-master
- echo "changed to second dir and about to run text scrolling"
- python RGB-32x64.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=50 --led-slowdown-gpio=2 & sleep 1200;
- #echo "this is from second scrolling text"
- ps aux | grep python | grep -v "grep python" | awk '{print $2}' | xargs kill -9
- echo "RGB-32x64.py (and any)python process KILLED! onto the next ticker board!"
- #cd /home/pi/RPi-RGB-Matrix-Scrolling-Sign-master
- #echo "changed to news only scrolling and about to run text scrolling"
- #python news-RGB-32x64.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=50 --led-slowdown-gpio=2 & sleep 3600
- #echo "this is from second scrolling text"
- #ps aux | grep python | grep -v "grep python" | awk '{print $2}' | xargs kill -9
- #echo "news-RGB-32x64.py (and any)python process KILLED! onto the next ticker board!"
- cd /home/pi/RPi-RGB-Matrix-Scrolling-Sign-master
- echo "changed to second dir and about to run text scrolling"
- python espn-RGB-32x64.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=50 --led-slowdown-gpio=2 & sleep 1200;
- #echo "this is from second scrolling text"
- ps aux | grep python | grep -v "grep python" | awk '{print $2}' | xargs kill -9
- echo "espn-RGB-32x64.py (and any)python process KILLED! onto the next ticker board!"
- cd /home/pi/nhl-led-scoreboard
- python3 /home/pi/nhl-led-scoreboard/src/main.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=40 --led-slowdown-gpio=2 & sleep 1200;
- #echo "changed to first board, ran and delayed 10 seconds..." & sleep 10;
- ps aux | grep python | grep -v "grep python" | awk '{print $2}' | xargs kill -9
- echo "nhl-led-scoreboard - main.py -- any -- python process KILLED! onto the next ticker board!"
- cd /home/pi/mlb-led-scoreboard
- python /home/pi/mlb-led-scoreboard/main.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=50 --led-cols=64 --led-rows=32 & sleep 1200;
- ps aux | grep python | grep -v "grep python" | awk '{print $2}' | xargs kill -9
- echo "mlb-led-scoreboard - main.py (and any)python process KILLED! onto the next ticker board!"
- cd /home/pi/crypto-ticker
- python3 /home/pi/crypto-ticker/ticker.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=35 --led-cols=64 --led-rows=32 & sleep 600;
- ps aux | grep python | grep -v "grep python" | awk '{print $2}' | xargs kill -9
- echo "crypto-ticker - ticker.py (and any) python processes KILLED! onto the next ticker board in cycle!"
- cd /home/pi/NBA-scoreboard
- python3 /home/pi/NBA-scoreboard/NBA_Data.py && python3 /home/pi/NBA-scoreboard/Spreads_New_Day.py && python3 /home/pi/NBA-scoreboard/Spreads_Update.py && python3 /home/pi/NBA-scoreboard/NBA_Re
- nder.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=35 --led-cols=64 --led-rows=32 & sleep 1000;
- ps aux | grep python | grep -v "grep python" | awk '{print $2}' | xargs kill -9
- echo "restarting the All ticker boards cycle!"
- pkill -f python
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement