diff --git a/scripts/advanced.php b/scripts/advanced.php index 892fead..852d211 100644 --- a/scripts/advanced.php +++ b/scripts/advanced.php @@ -166,9 +166,7 @@ if (file_exists('/home/pi/BirdNET-Pi/thisrun.txt')) { ?>

Advanced Settings

-
-
-
+

Defaults

-

Custom URLs

When you update any of the URL settings below, the web server will reload, so be sure to wait at least 30 seconds and then reload the page.

@@ -236,24 +232,18 @@ foreach($formats as $format){

Min=0.5, Max=1.5



- +?>
- -
- -
-
-
- -
-
-
+ +
+ +
diff --git a/scripts/config.php b/scripts/config.php index 4b950fe..52501e5 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -66,18 +66,20 @@ if (file_exists('/home/pi/BirdNET-Pi/thisrun.txt')) {

- - -
- -
+?> + + +
+ +
- diff --git a/scripts/write_config.php b/scripts/write_config.php index ed5aa19..c509183 100644 --- a/scripts/write_config.php +++ b/scripts/write_config.php @@ -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`; } +} ?>