feat(ui): add NextPM firmware version button on sensors page

Add a "Firmware Version" button next to "Get Data" in the NextPM card
that calls firmware_version.py and displays the result as a badge.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
PaulVua
2026-02-10 17:05:10 +01:00
parent 6bdaef8c24
commit 544eebd715
3 changed files with 50 additions and 13 deletions

View File

@@ -608,6 +608,13 @@ if ($type == "npm") {
echo $output;
}
if ($type == "npm_firmware") {
$port=$_GET['port'];
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/NPM/firmware_version.py ' . $port;
$output = shell_exec($command);
echo $output;
}
if ($type == "envea") {
$port=$_GET['port'];
$name=$_GET['name'];