cleanup: thisrun.txt is not used anymore

This commit is contained in:
frederik
2024-05-30 11:57:22 +02:00
parent a76f85269b
commit 6717e5fde0
2 changed files with 1 additions and 11 deletions
-9
View File
@@ -12,7 +12,6 @@ from tzlocal import get_localzone
_settings = None
DB_PATH = os.path.expanduser('~/BirdNET-Pi/scripts/birds.db')
THISRUN = os.path.expanduser('~/BirdNET-Pi/scripts/thisrun.txt')
ANALYZING_NOW = os.path.expanduser('~/BirdSongs/StreamData/analyzing_now.txt')
@@ -43,14 +42,6 @@ def get_settings(settings_path='/etc/birdnet/birdnet.conf', force_reload=False):
return settings
def write_settings(file_name=THISRUN):
settings = _load_settings()
with open(file_name, 'w') as configfile:
for key in settings.keys():
configfile.write(f'{key}={settings.get(key, raw=True)}\n')
os.chmod(file_name, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP)
class Detection:
def __init__(self, start_time, stop_time, species, confidence):
self.start = float(start_time)