Stub out a KISS connection.

It seems to simultaneously run the API and keep the KISS connection open 
in the background.
This commit is contained in:
W1CDN
2023-04-13 17:16:16 -05:00
parent fb027194e8
commit 5e86b40f38
3 changed files with 43 additions and 2 deletions

View File

@ -53,6 +53,10 @@ log_folder = config['Settings']['log_folder']
# Load logs first (just to check for errors before page loads)
data = read_logs(log_folder)
# Start subprocess to watch KISS connection
import subprocess
subprocess.Popen(["python3","kiss_and_db.py"])
api.add_resource(Packets, '/packets') # and '/locations' is our entry point for Locations
if __name__ == '__main__':