From 62ef47aa6707873a27894780ae56d1ff7e368df4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 26 Nov 2025 09:55:45 +0000 Subject: [PATCH] update --- boot_hotspot.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/boot_hotspot.sh b/boot_hotspot.sh index 0a8c6bf..fd00f17 100755 --- a/boot_hotspot.sh +++ b/boot_hotspot.sh @@ -16,7 +16,28 @@ echo "NebuleAir pro started at $(date)" chmod -R 777 /var/www/nebuleair_pro_4g/ # Blink GPIO 23 and 24 five times (starts OFF, stays OFF at end) -gpioset -c gpiochip0 -t 1s,1s,1s,1s,1s,1s,1s,1s,1s,1s,0 23=0 24=0 +#gpioset -c gpiochip0 -t 1s,1s,1s,1s,1s,1s,1s,1s,1s,1s,0 23=0 24=0 + +# Blink GPIO 23 and 24 five times (starts OFF, stays OFF at end) +python3 << 'EOF' +import RPi.GPIO as GPIO +import time + +GPIO.setmode(GPIO.BCM) +GPIO.setwarnings(False) +GPIO.setup(23, GPIO.OUT) +GPIO.setup(24, GPIO.OUT) + +for _ in range(5): + GPIO.output(23, GPIO.HIGH) + GPIO.output(24, GPIO.HIGH) + time.sleep(1) + GPIO.output(23, GPIO.LOW) + GPIO.output(24, GPIO.LOW) + time.sleep(1) + +GPIO.cleanup() +EOF echo "getting RPI serial number" # Get the last 8 characters of the serial number and write to text file