v1.9.10: Self Test - check sous-tension (vcgencmd get_throttled)

Ajoute un test 'Power Supply' au Self Test pour détecter une
sous-tension du Pi (cause fréquente de capteurs USB instables,
corruptions SD, reboots). Endpoint launcher.php?type=throttled
+ script power/get_throttled.py (lancé via sudo python3, déjà
whitelisté — pas de modif sudoers). Affiché en tête des résultats
et dans le rapport copiable.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
PaulVua
2026-05-28 09:25:18 +02:00
parent de8c22092d
commit 6c0318ba6e
6 changed files with 172 additions and 1 deletions

View File

@@ -990,6 +990,13 @@ if ($type == "noise") {
echo $output;
}
if ($type == "throttled") {
header('Content-Type: application/json');
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/power/get_throttled.py';
$output = shell_exec($command);
echo $output;
}
if ($type == "BME280") {
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/BME280/read.py';
$output = shell_exec($command);