Initial Commit

This commit is contained in:
2025-06-05 08:52:31 +02:00
parent 6451705773
commit 3920faf465
30 changed files with 2936 additions and 0 deletions

13
wifi_list.php Normal file
View File

@ -0,0 +1,13 @@
<?php
header('Content-Type: application/json');
// Run nmcli to list Wi-Fi networks
$output = shell_exec("nmcli -t -f SSID device wifi list");
$lines = explode("\n", trim($output));
// Remove empty or duplicate SSIDs
$ssids = array_unique(array_filter($lines));
// Return as JSON
echo json_encode(array_values($ssids));
?>