small adjustments to schedule and explorer

This commit is contained in:
DJ2LS 2024-05-11 13:14:59 +02:00
parent 8ab4bab3dd
commit d0182cb1af
2 changed files with 3 additions and 4 deletions

View file

@ -39,7 +39,7 @@ class explorer():
away_from_key = str(self.states.is_away_from_key) away_from_key = str(self.states.is_away_from_key)
# stop pushing if default callsign # stop pushing if default callsign
if callsign in ['XX1XXX-6']: if callsign in ['AA1AAA-1', 'XX1XXX-6']:
return return
# disabled this one # disabled this one
@ -65,6 +65,5 @@ class explorer():
station_data = json.dumps(station_data) station_data = json.dumps(station_data)
try: try:
response = requests.post(self.explorer_url, json=station_data, headers=headers) response = requests.post(self.explorer_url, json=station_data, headers=headers)
except Exception as e: except Exception as e:
log.warning("[EXPLORER] connection lost") log.warning("[EXPLORER] connection lost")

View file

@ -19,8 +19,8 @@ class ScheduleManager:
self.scheduler = sched.scheduler(time.time, time.sleep) self.scheduler = sched.scheduler(time.time, time.sleep)
self.events = { self.events = {
'check_for_queued_messages': {'function': self.check_for_queued_messages, 'interval': 10}, 'check_for_queued_messages': {'function': self.check_for_queued_messages, 'interval': 5},
'explorer_publishing': {'function': self.push_to_explorer, 'interval': 60}, 'explorer_publishing': {'function': self.push_to_explorer, 'interval': 6},
'transmitting_beacon': {'function': self.transmit_beacon, 'interval': 600}, 'transmitting_beacon': {'function': self.transmit_beacon, 'interval': 600},
'beacon_cleanup': {'function': self.delete_beacons, 'interval': 600}, 'beacon_cleanup': {'function': self.delete_beacons, 'interval': 600},
} }