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)
# 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")

View file

@ -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},
}