Removed Habitat chase car position uploader

master
Mark Jessop 2022-09-17 11:30:55 +09:30
rodzic 1d446ef41d
commit 17ffc42749
3 zmienionych plików z 8 dodań i 17 usunięć

Wyświetl plik

@ -49,8 +49,6 @@ car_source_port = 12345
# sondehubamateur = SondeHub Amateur Database, for viewing on the SondeHub-Amateur Tracker (https://amateur.sondehub.org) # sondehubamateur = SondeHub Amateur Database, for viewing on the SondeHub-Amateur Tracker (https://amateur.sondehub.org)
# Use this when chasing your own flights, and you want to show up on the sondehub-amateur tracker. # Use this when chasing your own flights, and you want to show up on the sondehub-amateur tracker.
# #
# habitat = Habitat Database, for viewing on the HabHub tracker (https://tracker.habhub.org)
# Use this when chasing your own flights, and you want to show up on the HabHub tracker.
online_tracker = sondehub online_tracker = sondehub
# Other profiles can be defined in sections like the following: # Other profiles can be defined in sections like the following:
@ -72,8 +70,6 @@ car_source_port = 55672
# Where to upload chase-car positions and balloon recovery notifications to. # Where to upload chase-car positions and balloon recovery notifications to.
# sondehub = Sondehub v2 Database, for viewing on the SondeHub tracker (https://tracker.sondehub.org) # sondehub = Sondehub v2 Database, for viewing on the SondeHub tracker (https://tracker.sondehub.org)
# sondehubamateur = SondeHub Amateur Database, for viewing on the SondeHub-Amateur Tracker (https://amateur.sondehub.org) # sondehubamateur = SondeHub Amateur Database, for viewing on the SondeHub-Amateur Tracker (https://amateur.sondehub.org)
# Use this when chasing your own flights, and you want to show up on the sondehub-amateur tracker.
# habitat = Habitat Database, for viewing on the HabHub tracker (https://tracker.habhub.org)
online_tracker = sondehubamateur online_tracker = sondehubamateur
# If you want add more profiles, you can do so here, e.g. # If you want add more profiles, you can do so here, e.g.

Wyświetl plik

@ -192,9 +192,8 @@ def client_settings_update(data):
chasemapper_config["selected_profile"] chasemapper_config["selected_profile"]
]["online_tracker"] ]["online_tracker"]
if _tracker == "habitat": if _tracker == "habitat":
online_uploader = HabitatChaseUploader( logging.error(
update_rate=chasemapper_config["habitat_update_rate"], "Habitat uploader now deprecated due to Habitat retirement, not starting uploader."
callsign=chasemapper_config["habitat_call"],
) )
elif _tracker == "sondehub": elif _tracker == "sondehub":
online_uploader = SondehubChaseUploader( online_uploader = SondehubChaseUploader(
@ -962,7 +961,7 @@ def start_listeners(profile):
'telemetry_source_port' (int): Data source port 'telemetry_source_port' (int): Data source port
'car_source_type' (str): Car Position source type (none, horus_udp, gpsd, or station) 'car_source_type' (str): Car Position source type (none, horus_udp, gpsd, or station)
'car_source_port' (int): Car Position source port 'car_source_port' (int): Car Position source port
'online_tracker' (str): Which online tracker to upload chase-car info to ('habitat' or 'sondehub' or 'sondehubamateur') 'online_tracker' (str): Which online tracker to upload chase-car info to ('sondehub' or 'sondehubamateur')
""" """
global data_listeners, current_profile, online_uploader, chasemapper_config global data_listeners, current_profile, online_uploader, chasemapper_config
@ -986,9 +985,8 @@ def start_listeners(profile):
# Start up a new online uploader immediately if uploading is already enabled. # Start up a new online uploader immediately if uploading is already enabled.
if chasemapper_config["habitat_upload_enabled"] == True: if chasemapper_config["habitat_upload_enabled"] == True:
if profile["online_tracker"] == "habitat": if profile["online_tracker"] == "habitat":
online_uploader = HabitatChaseUploader( logging.error(
update_rate=chasemapper_config["habitat_update_rate"], "Habitat uploader now deprecated due to Habitat retirement, not starting uploader."
callsign=chasemapper_config["habitat_call"],
) )
elif profile["online_tracker"] == "sondehub": elif profile["online_tracker"] == "sondehub":
online_uploader = SondehubChaseUploader( online_uploader = SondehubChaseUploader(

Wyświetl plik

@ -680,10 +680,7 @@
var habitat_update_rate = 20000; var habitat_update_rate = 20000;
window.setInterval(function(){ window.setInterval(function(){
if(document.getElementById("showOtherCars").checked){ if(document.getElementById("showOtherCars").checked){
if (chase_config.profiles[chase_config.selected_profile].online_tracker === "habitat"){ if (chase_config.profiles[chase_config.selected_profile].online_tracker === "sondehub"){
get_habitat_vehicles();
}
else if (chase_config.profiles[chase_config.selected_profile].online_tracker === "sondehub"){
get_sondehub_vehicles(); get_sondehub_vehicles();
} }
else if (chase_config.profiles[chase_config.selected_profile].online_tracker === "sondehubamateur"){ else if (chase_config.profiles[chase_config.selected_profile].online_tracker === "sondehubamateur"){
@ -850,7 +847,7 @@
</div> </div>
--> -->
<h3>Habitat Chase Car</h3> <h3>Chase Car Upload</h3>
<div class="paramRow"> <div class="paramRow">
<b>Show Nearby Chase-Cars:</b> <input type="checkbox" class="paramSelector" id="showOtherCars" onclick="show_habitat_vehicles();"> <b>Show Nearby Chase-Cars:</b> <input type="checkbox" class="paramSelector" id="showOtherCars" onclick="show_habitat_vehicles();">
</div> </div>
@ -858,7 +855,7 @@
<b>Enable Chase-Car Position Upload</b> <input type="checkbox" class="paramSelector" id="habitatUploadEnabled" onclick='clientSettingsUpdate();'> <b>Enable Chase-Car Position Upload</b> <input type="checkbox" class="paramSelector" id="habitatUploadEnabled" onclick='clientSettingsUpdate();'>
</div> </div>
<div class="paramRow"> <div class="paramRow">
<b>Habitat Call:</b><input type="text" class="paramEntry" id="habitatCall"><br/> <b>Online Tracker Callsign:</b><input type="text" class="paramEntry" id="habitatCall"><br/>
</div> </div>
<div class="paramRow"> <div class="paramRow">
<b>Update Rate (seconds):</b><input type="text" class="paramEntry" id="habitatUpdateRate"><br/> <b>Update Rate (seconds):</b><input type="text" class="paramEntry" id="habitatUpdateRate"><br/>