update config settings directly in the frontend

This commit is contained in:
Jakob Ketterl 2020-03-26 23:34:25 +01:00
parent 7efe254a66
commit c5a5d25320

View File

@ -98,18 +98,21 @@ class OpenWebRxReceiverClient(Client):
self.setSdr() self.setSdr()
# send receiver info receiver_details = pm.filter(
receiver_keys = [
"receiver_name", "receiver_name",
"receiver_location", "receiver_location",
"receiver_asl", "receiver_asl",
"receiver_gps", "receiver_gps",
"photo_title", "photo_title",
"photo_desc", "photo_desc",
] )
receiver_details = dict((key, pm[key]) for key in receiver_keys)
receiver_details["locator"] = Locator.fromCoordinates(receiver_details["receiver_gps"]) def send_receiver_info(*args):
self.write_receiver_details(receiver_details) receiver_info = receiver_details.__dict__()
receiver_info["locator"] = Locator.fromCoordinates(receiver_info["receiver_gps"])
self.write_receiver_details(receiver_info)
receiver_details.wire(send_receiver_info)
self.__sendProfiles() self.__sendProfiles()