mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
small adjustments to schedule and explorer
This commit is contained in:
parent
8ab4bab3dd
commit
d0182cb1af
2 changed files with 3 additions and 4 deletions
|
@ -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")
|
||||
|
|
|
@ -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},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue