configs are updating

This commit is contained in:
mcguirepr89
2022-02-24 14:11:54 -05:00
parent 10090f9411
commit 9d16d0245c
3 changed files with 21 additions and 27 deletions
+2
View File
@@ -2,6 +2,7 @@
error_reporting(E_ALL);
ini_set('display_errors',1);
if(isset($_POST["latitude"])){
$latitude = $_POST["latitude"];
$longitude = $_POST["longitude"];
$birdweather_id = $_POST["birdweather_id"];
@@ -32,5 +33,6 @@ if ($language != "none"){
$command = "sudo -upi mv /home/pi/BirdNET-Pi/model/labels.txt /home/pi/BirdNET-Pi/model/labels.txt.old && sudo -upi unzip /home/pi/BirdNET-Pi/model/labels_l18n.zip $language -d /home/pi/BirdNET-Pi/model && sudo -upi mv /home/pi/BirdNET-Pi/model/$language /home/pi/BirdNET-Pi/model/labels.txt";
$command_output = `$command`;
}
}
?>