From 5b7de91d503536fb10804ffa78db41714cea9c13 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 20 Mar 2025 10:54:41 +0100 Subject: [PATCH] update --- boot_hotspot.sh | 2 ++ loop/SARA_send_data_v2.py | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/boot_hotspot.sh b/boot_hotspot.sh index 8dac2f8..a9a4311 100755 --- a/boot_hotspot.sh +++ b/boot_hotspot.sh @@ -12,6 +12,8 @@ echo "-------------------" echo "NebuleAir pro started at $(date)" +chmod -R 777 /var/www/nebuleair_pro_4g/ + # Blink GPIO 23 and 24 five times for i in {1..5}; do # Turn GPIO 23 and 24 ON diff --git a/loop/SARA_send_data_v2.py b/loop/SARA_send_data_v2.py index b5a5a19..e6ae4e5 100755 --- a/loop/SARA_send_data_v2.py +++ b/loop/SARA_send_data_v2.py @@ -613,19 +613,13 @@ try: # Send notification try: - # Format the URL with the device_id alert_url = f'http://data.nebuleair.fr/pro_4G/alert.php?capteur_id={device_id}&error_type=serial_error' - - # Send POST request with short timeout response = requests.post(alert_url, timeout=3) - if response.status_code == 200: print(f"Alert notification sent successfully") else: print(f"Alert notification failed with status code: {response.status_code}") - except Exception as e: - # Catch any exception and continue print(f"Alert notification failed: {e}") #end loop