add button event and screeens

This commit is contained in:
Your Name
2025-06-20 11:03:50 +02:00
parent 2be04b6950
commit 5a2426becb
10 changed files with 936 additions and 41 deletions

View File

@@ -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"