Use stations table on index.html.

This commit is contained in:
2023-07-09 11:22:23 -05:00
parent c0ff61063f
commit 40513cc488
3 changed files with 18 additions and 7 deletions

View File

@@ -29,6 +29,7 @@ def main():
ki = aprs.TCPKISS(host=config['Settings']['kiss_host'], port=int(config['Settings']['kiss_port']))
ki.start()
# Make a simple frame and send it
frame = aprs.APRSFrame.ui(
destination="APZ001",
@@ -72,6 +73,7 @@ def main():
# It's not immediately needed, so I'm skipping it.
# Build query
# "from" is wrappedin [] because it is a reserved word and using '' doesn't work.
# https://www.sqlite.org/lang_keywords.html
try:
station_update = "'"+a['from'] +"', '"+ str(a['created_unix']) +"', '1'"
query3 = "INSERT INTO stations ([from], last_heard_unix, count) \