add button event and screeens
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
#!/bin/bash
|
||||
# Simple boot script - run animation then sensor display
|
||||
# Boot script with button-controlled screen cycling
|
||||
# sudo chmod +x /var/www/moduleair_pro_4g/services/matrix_boot.sh
|
||||
# sudo /var/www/moduleair_pro_4g/services/matrix_boot.sh
|
||||
|
||||
# to stop the service
|
||||
# sudo systemctl stop moduleair-boot.service
|
||||
|
||||
echo "$(date) - Starting boot animation..."
|
||||
sudo /var/www/moduleair_pro_4g/matrix/imageScreen/image_split_boot /var/www/moduleair_pro_4g/matrix/imageScreen/ModuleAir128x64.png
|
||||
|
||||
#0echo "$(date) - Boot animation done, starting sensor display..."
|
||||
#sudo /var/www/moduleair_pro_4g/matrix/screenSensors/displayAll4_v2
|
||||
echo "$(date) - Boot animation done, starting button-controlled display..."
|
||||
echo "$(date) - Press button on GPIO6 to cycle: Network -> All Sensors -> CO2+PM+Network -> Blank"
|
||||
sudo python3 /var/www/moduleair_pro_4g/matrix/button_screen_controller.py
|
||||
|
||||
echo "$(date) - Boot animation done, starting network display..."
|
||||
sudo /var/www/moduleair_pro_4g/matrix/screenNetwork/network_status
|
||||
|
||||
echo "$(date) - Both programs started"
|
||||
echo "$(date) - Button controller started"
|
||||
Reference in New Issue
Block a user