From ceba1fdc27ae1b19d6bb04e00cdf6e54484d1b69 Mon Sep 17 00:00:00 2001 From: Patrik Winroth Date: Wed, 29 Mar 2023 10:38:48 +0200 Subject: [PATCH 1/3] Update server.py --- scripts/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/server.py b/scripts/server.py index 7e478df..2225f0d 100755 --- a/scripts/server.py +++ b/scripts/server.py @@ -12,6 +12,7 @@ import operator import socket import threading import os +import gzip from utils.notifications import sendAppriseNotifications from utils.parse_settings import config_to_settings @@ -534,7 +535,9 @@ def handle_client(conn, addr): with open(args.i, 'rb') as f: wav_data = f.read() - response = requests.post(url=soundscape_url, data=wav_data, headers={'Content-Type': 'application/octet-stream'}) + gzip_wav_data = gzip.compress(wav_data) + response = requests.post(url=soundscape_url, data=gzip_wav_data, headers={'Content-Type': 'application/octet-stream', + 'Content-Encoding': 'gzip'}) print("Soundscape POST Response Status - ", response.status_code) sdata = response.json() soundscape_id = sdata['soundscape']['id'] From c5938e5d7f23a1cacafd97a7639ec58a2d58db62 Mon Sep 17 00:00:00 2001 From: coldclimate Date: Sun, 9 Apr 2023 14:10:35 +0100 Subject: [PATCH 2/3] Kick out super early if it's not a suitable system Untested, but raised after a frustrating morning :D --- newinstaller.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/newinstaller.sh b/newinstaller.sh index 4dab014..ddb6462 100755 --- a/newinstaller.sh +++ b/newinstaller.sh @@ -5,6 +5,15 @@ if [ "$EUID" == 0 ] exit fi +if [ "$(uname -m)" != "aarch64" ];then + echo "BirdNET-Pi requires a 64-bit OS. +It looks like your operating system is using $(uname -m), +but would need to be aarch64. +Please take a look at https://birdnetwiki.pmcgui.xyz for more +information" + exit 1 +fi + # Simple new installer HOME=$HOME USER=$USER From 35b5c64927921771f1d0b54d5466120d8f131589 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Tue, 11 Apr 2023 10:59:28 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f51cea1..ffbb343 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Check out birds from around the world - [BirdWeather](https://app.birdweather.com)
- [Johannesburg, South Africa](https://joburg.birdnetpi.com)
- [Öringe, Tyresö, Sweden](https://tyreso.birdnetpi.com)
-- [Berowra, New South Wales, Australia](https://berowra.birdnetpi.com) +- [Berowra, New South Wales, Australia](https://birds.lloydsplace.au/) - [Dundas, Ontario, Canada](https://dundasontario.birdnetpi.com) - [Bungendore, New South Wales, Australia](https://bungendorensw.birdnetpi.com) - [Rivers Bend, Ohio, United States](https://riversbendoh.birdnetpi.com)