added spectrogram view for currently analyzing file

Needs to be refreshed, but works
This commit is contained in:
Patrick McGuire
2021-10-07 15:56:44 -04:00
parent b428a278f2
commit b67c7fdf58
5 changed files with 33 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Make sox spectrogram
source /etc/birdnet/birdnet.conf
analyzing_now="$(cat /home/pi/BirdNET-Lite/analyzing_now.txt)"
spectrogram_png=${EXTRACTED}/spectrogram.png
sudo -u pi sox "${analyzing_now}" -n spectrogram -o "${spectrogram_png}"