Move code comment todos to forgejo issues

This commit is contained in:
Ian Renton
2025-09-28 19:38:36 +01:00
parent e71ec1b72a
commit 4681b2b74c
5 changed files with 0 additions and 28 deletions

View File

@@ -40,7 +40,3 @@ Suggested names so far:
* On the Air * On the Air
* DX Muster * DX Muster
* UST (Unnamed Spotting Tool) * UST (Unnamed Spotting Tool)
### TODO - Setup instructions - checkout, config.yml, pip
### TODO - systemd
### TODO - nginx

12
main.py
View File

@@ -34,8 +34,6 @@ def shutdown(sig, frame):
cleanup_timer.stop() cleanup_timer.stop()
# Utility method to get a data provider based on its config entry. # Utility method to get a data provider based on its config entry.
# TODO we could probably find a way to do this more neatly by iterating through classes in "providers" and getting their
# names, if Python allows that sort of thing
def get_provider_from_config(config_providers_entry): def get_provider_from_config(config_providers_entry):
match config_providers_entry["type"]: match config_providers_entry["type"]:
case "POTA": case "POTA":
@@ -99,13 +97,3 @@ if __name__ == '__main__':
for p in providers: status_data[p.name()] = {"status": p.status, "last_updated": p.last_update_time, "last_spot": p.last_spot_time} for p in providers: status_data[p.name()] = {"status": p.status, "last_updated": p.last_update_time, "last_spot": p.last_spot_time}
status_data["Cleanup Timer"] = {"status": cleanup_timer.status, "last_ran": cleanup_timer.last_cleanup_time} status_data["Cleanup Timer"] = {"status": cleanup_timer.status, "last_ran": cleanup_timer.last_cleanup_time}
status_data["Web Server"] = {"status": web_server.status, "last_api_access": web_server.last_api_access_time, "last_page_access": web_server.last_page_access_time} status_data["Web Server"] = {"status": web_server.status, "last_api_access": web_server.last_api_access_time, "last_page_access": web_server.last_page_access_time}
# TODO NOTES FOR NGINX REVERSE PROXY
# local cache time of 15 sec to avoid over burdening python?
# TODO NOTES FOR FIELD SPOTTER
# Still need to de-dupe spots
# Still need to do QSY checking in FS because we can enable/disable showing them and don't want to re-query the API.
# Filter comments, still do in FS or move that here?

View File

@@ -5,7 +5,6 @@ from providers.http_provider import HTTPProvider
# Provider for Worldwide Bunkers on the Air # Provider for Worldwide Bunkers on the Air
# todo switch to event source API as per Steve change to Field Spotter, if Python supports it
class WWBOTA(HTTPProvider): class WWBOTA(HTTPProvider):
POLL_INTERVAL_SEC = 120 POLL_INTERVAL_SEC = 120
SPOTS_URL = "https://api.wwbota.org/spots/" SPOTS_URL = "https://api.wwbota.org/spots/"

View File

@@ -107,9 +107,3 @@ class WebServer:
if "limit" in query.keys(): if "limit" in query.keys():
spots = spots[:int(query.get("limit"))] spots = spots[:int(query.get("limit"))]
return spots return spots
# Todo serve Server-Sent Events to frontend? - see https://medium.com/@tdenton8772/streaming-api-design-using-python-and-javascript-1b0ce8adb703
# Todo serve apidocs
# Todo push spot API (to start with only to this server)
# Todo current todos to fit issues

View File

@@ -1,8 +1,3 @@
// TODO get all data into JS on first load
// TODO populate table more nicely
// TODO filtering & limit (applied via new request to server)
// TODO look and feel
$.getJSON('/api/spots', function(jsonData) { $.getJSON('/api/spots', function(jsonData) {
let headers = Object.keys(jsonData[0]); let headers = Object.keys(jsonData[0]);
let table = $('<table>').append('<thead><tr></tr></thead><tbody></tbody>'); let table = $('<table>').append('<thead><tr></tr></thead><tbody></tbody>');