mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
added beacon state to explorer
This commit is contained in:
parent
3c0e0b150d
commit
77bfe28e2d
1 changed files with 2 additions and 1 deletions
|
@ -42,11 +42,12 @@ class explorer():
|
||||||
gridsquare = str(static.MYGRID, "utf-8")
|
gridsquare = str(static.MYGRID, "utf-8")
|
||||||
version = str(static.VERSION)
|
version = str(static.VERSION)
|
||||||
bandwidth = str(static.LOW_BANDWIDTH_MODE)
|
bandwidth = str(static.LOW_BANDWIDTH_MODE)
|
||||||
|
beacon = str(static.BEACON_STATE)
|
||||||
|
|
||||||
log.info("[EXPLORER] publish", frequency=frequency, band=band, callsign=callsign, gridsquare=gridsquare, version=version, bandwidth=bandwidth)
|
log.info("[EXPLORER] publish", frequency=frequency, band=band, callsign=callsign, gridsquare=gridsquare, version=version, bandwidth=bandwidth)
|
||||||
|
|
||||||
headers = {"Content-Type": "application/json"}
|
headers = {"Content-Type": "application/json"}
|
||||||
station_data = {'callsign': callsign, 'gridsquare': gridsquare, 'frequency': frequency, 'band': band, 'version': version, 'bandwidth': bandwidth}
|
station_data = {'callsign': callsign, 'gridsquare': gridsquare, 'frequency': frequency, 'band': band, 'version': version, 'bandwidth': bandwidth, 'beacon': beacon}
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue