move analyzing_now.txt to StreamData to centralise transient files
This commit is contained in:
@@ -16,11 +16,11 @@ next=0
|
|||||||
looptime=$(( RECORDING_LENGTH * 2 / 3 ))
|
looptime=$(( RECORDING_LENGTH * 2 / 3 ))
|
||||||
|
|
||||||
# Continuously loop generating a spectrogram
|
# Continuously loop generating a spectrogram
|
||||||
inotifywait -m -e close_write "$HOME/BirdNET-Pi/analyzing_now.txt" |
|
inotifywait -m -e close_write "$HOME/BirdSongs/StreamData/analyzing_now.txt" |
|
||||||
while read; do
|
while read; do
|
||||||
now=$(date +%s)
|
now=$(date +%s)
|
||||||
if (( now > next )); then
|
if (( now > next )); then
|
||||||
analyzing_now="$(<$HOME/BirdNET-Pi/analyzing_now.txt)"
|
analyzing_now="$(<$HOME/BirdSongs/StreamData/analyzing_now.txt)"
|
||||||
|
|
||||||
if [ -n "${analyzing_now}" ] && [ -f "${analyzing_now}" ]; then
|
if [ -n "${analyzing_now}" ] && [ -f "${analyzing_now}" ]; then
|
||||||
spectrogram_png=${EXTRACTED}/spectrogram.png
|
spectrogram_png=${EXTRACTED}/spectrogram.png
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ _settings = None
|
|||||||
|
|
||||||
DB_PATH = os.path.expanduser('~/BirdNET-Pi/scripts/birds.db')
|
DB_PATH = os.path.expanduser('~/BirdNET-Pi/scripts/birds.db')
|
||||||
THISRUN = os.path.expanduser('~/BirdNET-Pi/scripts/thisrun.txt')
|
THISRUN = os.path.expanduser('~/BirdNET-Pi/scripts/thisrun.txt')
|
||||||
ANALYZING_NOW = os.path.expanduser('~/BirdNET-Pi/analyzing_now.txt')
|
ANALYZING_NOW = os.path.expanduser('~/BirdSongs/StreamData/analyzing_now.txt')
|
||||||
|
|
||||||
|
|
||||||
class PHPConfigParser(ConfigParser):
|
class PHPConfigParser(ConfigParser):
|
||||||
|
|||||||
Reference in New Issue
Block a user