Merge branch 'main' into offline-time-testy
This commit is contained in:
@@ -33,8 +33,8 @@ if(isset($_GET['submit'])) {
|
||||
if(isset($_GET["caddy_pwd"])) {
|
||||
$caddy_pwd = $_GET["caddy_pwd"];
|
||||
if(strcmp($caddy_pwd,$config['CADDY_PWD']) !== 0) {
|
||||
$contents = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=$caddy_pwd", $contents);
|
||||
$contents2 = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=$caddy_pwd", $contents2);
|
||||
$contents = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=\"$caddy_pwd\"", $contents);
|
||||
$contents2 = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=\"$caddy_pwd\"", $contents2);
|
||||
$fh = fopen('/etc/birdnet/birdnet.conf', "w");
|
||||
$fh2 = fopen("./scripts/thisrun.txt", "w");
|
||||
fwrite($fh, $contents);
|
||||
|
||||
+1
-1
@@ -178,7 +178,7 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}
|
||||
<option value="labels_th.txt">Thai</option>
|
||||
<option value="labels_uk.txt">Ukrainian</option>
|
||||
</select>
|
||||
<br>
|
||||
<br><br>
|
||||
<script>
|
||||
function handleChange(checkbox) {
|
||||
// this disables the input of manual date and time if the user wants to use the internet time
|
||||
|
||||
@@ -117,7 +117,7 @@ for h in "${SCAN_DIRS[@]}";do
|
||||
fi
|
||||
|
||||
sox "${h}/${OLDFILE}" "${NEWSPECIES_BYDATE}/${NEWFILE}" \
|
||||
trim "${START}" "${END}"
|
||||
trim ="${START}" ="${END}"
|
||||
|
||||
# Create spectrogram for extraction
|
||||
sox "${NEWSPECIES_BYDATE}/${NEWFILE}" -n remix 1 rate 24k spectrogram \
|
||||
|
||||
@@ -212,7 +212,7 @@ http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
|
||||
handle /Charts/* {
|
||||
file_server browse
|
||||
}
|
||||
basicauth views.php?view=File* {
|
||||
basicauth /views.php?view=File* {
|
||||
birdnet ${HASHWORD}
|
||||
}
|
||||
basicauth /Processed* {
|
||||
|
||||
@@ -6,6 +6,7 @@ USER=$(awk -F: '/1000/ {print $1}' /etc/passwd)
|
||||
HOME=$(awk -F: '/1000/ {print $6}' /etc/passwd)
|
||||
my_dir=$HOME/BirdNET-Pi/scripts
|
||||
|
||||
sudo -u$USER git -C $my_dir rm privacy_server.py
|
||||
sudo -u${USER} git -C $my_dir stash
|
||||
sudo -u${USER} git -C $my_dir pull -f
|
||||
sudo systemctl daemon-reload
|
||||
@@ -14,4 +15,4 @@ sudo ln -sf $my_dir/* /usr/local/bin/
|
||||
|
||||
# The script below handles changes to the host system
|
||||
# Any additions to the updater should be placed in that file.
|
||||
sudo $my_dir/update_birdnet_snippets.sh
|
||||
sudo $my_dir/update_birdnet_snippets.sh
|
||||
|
||||
@@ -18,7 +18,7 @@ http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
|
||||
handle /Charts/* {
|
||||
file_server browse
|
||||
}
|
||||
basicauth views.php?view=File* {
|
||||
basicauth /views.php?view=File* {
|
||||
birdnet ${HASHWORD}
|
||||
}
|
||||
basicauth /Processed* {
|
||||
|
||||
Reference in New Issue
Block a user