cleanup: thisrun.txt is not used anymore
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user