From d0182cb1afab7ac2ac3afedadba8004d08d998ec Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sat, 11 May 2024 13:14:59 +0200 Subject: [PATCH] small adjustments to schedule and explorer --- freedata_server/explorer.py | 3 +-- freedata_server/schedule_manager.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/freedata_server/explorer.py b/freedata_server/explorer.py index 6655752e..a98eabc5 100644 --- a/freedata_server/explorer.py +++ b/freedata_server/explorer.py @@ -39,7 +39,7 @@ class explorer(): away_from_key = str(self.states.is_away_from_key) # stop pushing if default callsign - if callsign in ['XX1XXX-6']: + if callsign in ['AA1AAA-1', 'XX1XXX-6']: return # disabled this one @@ -65,6 +65,5 @@ class explorer(): station_data = json.dumps(station_data) try: response = requests.post(self.explorer_url, json=station_data, headers=headers) - except Exception as e: log.warning("[EXPLORER] connection lost") diff --git a/freedata_server/schedule_manager.py b/freedata_server/schedule_manager.py index 3bfb9196..94b03d74 100644 --- a/freedata_server/schedule_manager.py +++ b/freedata_server/schedule_manager.py @@ -19,8 +19,8 @@ class ScheduleManager: self.scheduler = sched.scheduler(time.time, time.sleep) self.events = { - 'check_for_queued_messages': {'function': self.check_for_queued_messages, 'interval': 10}, - 'explorer_publishing': {'function': self.push_to_explorer, 'interval': 60}, + 'check_for_queued_messages': {'function': self.check_for_queued_messages, 'interval': 5}, + 'explorer_publishing': {'function': self.push_to_explorer, 'interval': 6}, 'transmitting_beacon': {'function': self.transmit_beacon, 'interval': 600}, 'beacon_cleanup': {'function': self.delete_beacons, 'interval': 600}, }