mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixed explorer publishing
This commit is contained in:
parent
a5259bd463
commit
237318b268
2 changed files with 14 additions and 5 deletions
|
@ -32,6 +32,16 @@ export function stateDispatcher(data) {
|
||||||
stateStore.channel_busy = data["channel_busy"];
|
stateStore.channel_busy = data["channel_busy"];
|
||||||
stateStore.is_codec2_traffic = data["is_codec2_traffic"];
|
stateStore.is_codec2_traffic = data["is_codec2_traffic"];
|
||||||
stateStore.is_modem_running = data["is_modem_running"];
|
stateStore.is_modem_running = data["is_modem_running"];
|
||||||
|
stateStore.dbfs_level = data["audio_dbfs"];
|
||||||
|
stateStore.channel_busy_slot = data["channel_busy_slot"];
|
||||||
|
stateStore.beacon_state = data["is_beacon_running"];
|
||||||
|
|
||||||
|
/*
|
||||||
|
self.is_arq_state = False
|
||||||
|
self.is_arq_session = False
|
||||||
|
self.arq_session_state = 'disconnected'
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
@ -66,11 +76,9 @@ export function stateDispatcher(data) {
|
||||||
setRxAudioLevel(settings.rx_audio_level);
|
setRxAudioLevel(settings.rx_audio_level);
|
||||||
}
|
}
|
||||||
|
|
||||||
stateStore.dbfs_level = data["audio_dbfs"];
|
|
||||||
stateStore.ptt_state = data["ptt_state"];
|
stateStore.ptt_state = data["ptt_state"];
|
||||||
stateStore.speed_level = data["speed_level"];
|
stateStore.speed_level = data["speed_level"];
|
||||||
stateStore.fft = JSON.parse(data["fft"]);
|
stateStore.fft = JSON.parse(data["fft"]);
|
||||||
stateStore.channel_busy_slot = data["channel_busy_slot"];
|
|
||||||
|
|
||||||
addDataToWaterfall(JSON.parse(data["fft"]));
|
addDataToWaterfall(JSON.parse(data["fft"]));
|
||||||
|
|
||||||
|
@ -100,7 +108,6 @@ export function stateDispatcher(data) {
|
||||||
);
|
);
|
||||||
stateStore.dxcallsign = data["dxcallsign"];
|
stateStore.dxcallsign = data["dxcallsign"];
|
||||||
|
|
||||||
stateStore.beacon_state = data["beacon_state"];
|
|
||||||
stateStore.audio_recording = data["audio_recording"];
|
stateStore.audio_recording = data["audio_recording"];
|
||||||
|
|
||||||
stateStore.hamlib_status = data["hamlib_status"];
|
stateStore.hamlib_status = data["hamlib_status"];
|
||||||
|
|
|
@ -21,9 +21,11 @@ class explorer():
|
||||||
self.states = states
|
self.states = states
|
||||||
self.explorer_url = "https://api.freedata.app/explorer.php"
|
self.explorer_url = "https://api.freedata.app/explorer.php"
|
||||||
self.publish_interval = 120
|
self.publish_interval = 120
|
||||||
|
self.enable_explorer = config["STATION"]["enable_explorer"]
|
||||||
|
|
||||||
self.interval_thread = threading.Thread(target=self.interval, name="interval", daemon=True)
|
if self.enable_explorer:
|
||||||
self.interval_thread.start()
|
self.interval_thread = threading.Thread(target=self.interval, name="interval", daemon=True)
|
||||||
|
self.interval_thread.start()
|
||||||
|
|
||||||
def interval(self):
|
def interval(self):
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue