Add "Contributing" to readme, move TODOs to Gitea issues.

This commit is contained in:
W1CDN 2023-04-08 16:54:45 -05:00
parent 796c666f4d
commit 939e96ad7e
2 changed files with 4 additions and 14 deletions

View File

@ -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.

12
app.py
View File

@ -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