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:
@ -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__':
|
||||
|
Reference in New Issue
Block a user