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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user