diff --git a/README.md b/README.md index cc2a570..b656b76 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,6 @@ You can use screen to detach the session. - Default URL is http://127.0.0.1:5000 3. Access the API from whatever other system you want. - - ## Endpoints: -`/packets` - gives the most recent packets, with the fields from the Dire Wolf User Guide. @@ -45,3 +43,7 @@ Example of an object packet sent by W1CDN-1 and digipeated by K0UND-2: "comment": " https://www.wa0jxt.org/" }, ``` + +# Contributing +If you want to contribute, please get in touch with me on Mastodon at +https://mastodon.radio/@W1CDN. diff --git a/app.py b/app.py index 2ef9426..9374a32 100644 --- a/app.py +++ b/app.py @@ -17,7 +17,6 @@ def read_config(): def read_logs(log_folder): # Read some log files # UTC time, so let's look at tomorrow, today, and yesterday. - # TODO Load new files into a database on a schedule? today = date.today() yesterday = today - timedelta(days = 1) tomorrow = today + timedelta(days = 1) @@ -43,19 +42,8 @@ def read_logs(log_folder): return(json_array) -# TODO need a function that adds the most recent location for any 'name' -# into a simple database. Then if it needs to be mapped, it can be, even -# if it hasn't been recently heard directly. - class Packets(Resource): def get(self): - # TODO neither path nor actual path taken are included here--how to - # include them? I am not sure whether multiple stations would be listed - # in 'source' or not; - # "source": "KF4ME-7", - # "heard": "K0UND-2", - # TODO need to be able to pass arguments in URL to filter - return {'data': data}, 200 # return data and 200 OK code # Read config