Mise à jour capteur bruit: ancien I2C → NSRT MK4 USB

- Nouveau script sound_meter/read.py pour lecture à la demande (JSON)
- launcher.php: appel du script Python au lieu de l'ancien binaire C
- sensors.html: carte USB, suppression boutons start/stop, affichage JSON
- Traductions fr/en: I2C → USB, NSRT MK4

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
PaulVua
2026-03-12 15:23:54 +01:00
parent 98b5b43190
commit 7479344df7
5 changed files with 72 additions and 33 deletions

View File

@@ -832,7 +832,7 @@ if ($type == "envea_debug") {
}
if ($type == "noise") {
$command = '/var/www/nebuleair_pro_4g/sound_meter/sound_meter';
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/sound_meter/read.py';
$output = shell_exec($command);
echo $output;
}