This commit is contained in:
Your Name
2025-11-05 14:44:30 +01:00
parent 26ee893a96
commit 65beead82b
3 changed files with 94 additions and 47 deletions

View File

@@ -343,6 +343,13 @@ if ($type == "sara_ping") {
echo $output;
}
if ($type == "sara_psd_setup") {
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/SARA/R5/setPDP.py';
$output = shell_exec($command);
echo $output;
}
if ($type == "git_pull") {
$command = 'sudo git pull';
$output = shell_exec($command);
@@ -656,6 +663,20 @@ if ($type == "sara_connectNetwork") {
echo $output;
}
#Setup Hostnmae
if ($type == "sara_setupHostname") {
$port=$_GET['port'];
$server_hostname=$_GET['networkID'];
$profileID=$_GET['profileID'];
//echo "connecting to network... please wait...";
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/SARA/sara_setURL.py ' . $port . ' ' . $server_hostname . ' ' . $profileID;
$output = shell_exec($command);
echo $output;
}
#SET THE URL for messaging (profile id 2)