This commit is contained in:
Your Name
2025-07-02 08:25:29 +01:00
parent 98115ab22b
commit 0539cb67af

View File

@@ -853,6 +853,8 @@ try:
# si c'est le cas on essaie de se reconnecter # si c'est le cas on essaie de se reconnecter
if signal_quality == 99: if signal_quality == 99:
print('<span style="color: red;font-weight: bold;">⚠ATTENTION: Signal Quality indicates no signal (99)⚠️</span>') print('<span style="color: red;font-weight: bold;">⚠ATTENTION: Signal Quality indicates no signal (99)⚠️</span>')
#Pas besoin d'essayer de se reconnecter car reconnection automatique
print("TRY TO RECONNECT:") print("TRY TO RECONNECT:")
command = f'AT+COPS=1,2,{selected_networkID}\r' command = f'AT+COPS=1,2,{selected_networkID}\r'
#command = f'AT+COPS=0\r' #command = f'AT+COPS=0\r'
@@ -1004,7 +1006,7 @@ try:
print('<p class="text-success">No error detected</p>') print('<p class="text-success">No error detected</p>')
# INVALID SERVER HOSTNAME # INVALID SERVER HOSTNAME
elif error_code == 4: elif error_code == 4:
print('<p class="text-danger">Error 4: Invalid server Hostname</p>') print('<p class="text-danger">Error 4: AirCarto - Invalid server Hostname</p>')
send_error_notification(device_id, "UHTTPER (error n°4) -> AirCarto Invalid Server Hostname") send_error_notification(device_id, "UHTTPER (error n°4) -> AirCarto Invalid Server Hostname")
server_hostname_resets = reset_server_hostname(aircarto_profile_id) server_hostname_resets = reset_server_hostname(aircarto_profile_id)
if server_hostname_resets: if server_hostname_resets:
@@ -1304,7 +1306,7 @@ try:
print('<p class="text-success">No error detected</p>') print('<p class="text-success">No error detected</p>')
# INVALID SERVER HOSTNAME # INVALID SERVER HOSTNAME
elif error_code == 4: elif error_code == 4:
print('<p class="text-danger">Error 4: Invalid server Hostname</p>', end="") print('<p class="text-danger">Error 4: uSpot - Invalid server Hostname</p>', end="")
send_error_notification(device_id, "UHTTPER (4) uSpot Invalid server Hostname") send_error_notification(device_id, "UHTTPER (4) uSpot Invalid server Hostname")
server_hostname_resets = reset_server_hostname_https(uSpot_profile_id) server_hostname_resets = reset_server_hostname_https(uSpot_profile_id)
if server_hostname_resets: if server_hostname_resets: