Page modem: reset hardware GPIO 16 + alerte mode configuration + reset au boot

- Bouton Reset Hardware (GPIO 16) avec verification ATI apres redemarrage
- Bandeau d'alerte rouge quand mode configuration actif (transmission desactivee)
- Reset automatique de modem_config_mode a 0 au boot (SARA/reboot/start.py)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
PaulVua
2026-03-19 13:43:45 +01:00
parent 3f7d0c0816
commit cf10d20db5
4 changed files with 155 additions and 4 deletions

View File

@@ -880,6 +880,13 @@ if ($type == "sara") {
echo $output;
}
# SARA HARDWARE REBOOT (GPIO 16)
if ($type == "sara_hardware_reboot") {
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/SARA/reboot/hardware_reboot.py';
$output = shell_exec($command);
echo $output;
}
# SARA R4 COMMANDS (MQTT)
if ($type == "sara_getMQTT_config") {
$port=$_GET['port'];