support public listing on rx.kiwisdr.com
This commit is contained in:
@ -244,6 +244,18 @@ class GeneralSettingsController(AdminController):
|
||||
infotext="This callsign will be used to send spots to pskreporter.info",
|
||||
),
|
||||
),
|
||||
Section(
|
||||
"rx.kiwisdr.com",
|
||||
TextInput(
|
||||
"listing_key",
|
||||
"rx.kiwisdr.com key",
|
||||
infotext='Please obtain your listing key via email from support@kiwisdr.com',
|
||||
),
|
||||
CheckboxInput(
|
||||
"public_listing", "List on rx.kiwisdr.com", "List my receiver publicly on rx.kiwisdr.com"
|
||||
),
|
||||
TextInput("server_hostname", "Hostname"),
|
||||
),
|
||||
]
|
||||
|
||||
def render_sections(self):
|
||||
|
@ -27,7 +27,7 @@ class StatusController(Controller):
|
||||
|
||||
def indexAction(self):
|
||||
pm = Config.get()
|
||||
|
||||
avatar_path = pkg_resources.resource_filename("htdocs", "gfx/openwebrx-avatar.png")
|
||||
status = {
|
||||
"receiver": {
|
||||
"name": pm["receiver_name"],
|
||||
@ -36,8 +36,10 @@ class StatusController(Controller):
|
||||
"asl": pm["receiver_asl"],
|
||||
"location": pm["receiver_location"],
|
||||
},
|
||||
"clients": ClientRegistry.getSharedInstance().clientCount(),
|
||||
"max_clients": pm["max_clients"],
|
||||
"version": openwebrx_version,
|
||||
"sw_version": openwebrx_version,
|
||||
"avatar_mtime": os.path.getmtime(avatar_path),
|
||||
"sdrs": [self.getReceiverStats(r) for r in SdrService.getSources().values()]
|
||||
}
|
||||
self.send_response(json.dumps(status), content_type="application/json")
|
||||
|
Reference in New Issue
Block a user