mirror of
https://amiok.net/gitea/W1CDN/aprs_tool.git
synced 2025-07-18 02:00:27 +00:00
Snapshot.
This commit is contained in:
@ -33,7 +33,12 @@ def main():
|
||||
ki.read(callback=print_frame, min_frames=None)
|
||||
|
||||
# put some database stuff here
|
||||
|
||||
print(Frame.from_bytes(frame))
|
||||
conn = get_db_connection()
|
||||
conn.execute('INSERT INTO frames (frame) VALUES (?)',
|
||||
(Frame.from_bytes(frame)))
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Reference in New Issue
Block a user