Drop this stuff into config.ini
:
MYCALL = os.environ.get("MYCALL", "W1CDN")
KISS_HOST = os.environ.get("KISS_HOST", "192.168.0.30")
KISS_PORT = os.environ.get("KISS_PORT", "8001")
Progress on #20 means that one KISS connection is always active for receive. Need to think about how to best use the connection so we don't go over the maximum of three KISS clients (default…
I thought I had the db entry set up right, but running overnight didn't yield new entries...
The above issues fixed with with code changes, but things aren't working using waitress on the production machine. Flask dev server works fine.
Getting 502 Bad Gateway
with waitress.
- fix this issue
$ python kiss_and_db.py
File "kiss_and_db.py", line 93
attrib_names = ', '.join(f'"{w}"' for w in a.keys())
```
On production ^, Python 3.7.3.
But…
I think it was the DB Browser--I made a manual edit to the structure and didn't save it.
Copied new code over to kiss_and_db.py
and it seems to run.
- pull packets from db instead of files
Added a more complete list of fields that may come out of aprslib.parse()
to the database schema.
How to insert the results of that function into the database without having all the columns…
Subprocess was running all night and doesn't seem to have broken anything.
Now need to know all the possible fields that might come up, so they can be added to the db (or maybe write a function to add new fields on the fly?).
Are fields listed in the spec? I think…
Just barely working now (packet into database), but I don't understand the structure of the APRSFrame object, so it's going in as a string right now.
> repl(frame)
APRSFrame(destination=Ad…
I think I should be using https://github.com/python-aprs/aprs3.
For versions of the KISS transports which do NOT automatically encode/decode APRS data, see kiss3.
Oh, very nice. This works. https://github.com/python-aprs/kiss3/blob/main/examples/tcp_send_recv.py
It sends the raw packet back,…