Add "Contributing" to readme, move TODOs to Gitea issues.
This commit is contained in:
parent
796c666f4d
commit
939e96ad7e
|
@ -12,8 +12,6 @@ You can use screen to detach the session.
|
||||||
- Default URL is http://127.0.0.1:5000
|
- Default URL is http://127.0.0.1:5000
|
||||||
3. Access the API from whatever other system you want.
|
3. Access the API from whatever other system you want.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Endpoints:
|
## Endpoints:
|
||||||
-`/packets` - gives the most recent packets, with the fields from the Dire Wolf
|
-`/packets` - gives the most recent packets, with the fields from the Dire Wolf
|
||||||
User Guide.
|
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/"
|
"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
12
app.py
|
@ -17,7 +17,6 @@ def read_config():
|
||||||
def read_logs(log_folder):
|
def read_logs(log_folder):
|
||||||
# Read some log files
|
# Read some log files
|
||||||
# UTC time, so let's look at tomorrow, today, and yesterday.
|
# UTC time, so let's look at tomorrow, today, and yesterday.
|
||||||
# TODO Load new files into a database on a schedule?
|
|
||||||
today = date.today()
|
today = date.today()
|
||||||
yesterday = today - timedelta(days = 1)
|
yesterday = today - timedelta(days = 1)
|
||||||
tomorrow = today + timedelta(days = 1)
|
tomorrow = today + timedelta(days = 1)
|
||||||
|
@ -43,19 +42,8 @@ def read_logs(log_folder):
|
||||||
|
|
||||||
return(json_array)
|
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):
|
class Packets(Resource):
|
||||||
def get(self):
|
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
|
return {'data': data}, 200 # return data and 200 OK code
|
||||||
|
|
||||||
# Read config
|
# Read config
|
||||||
|
|
Loading…
Reference in New Issue
Block a user