Split out third-party traffic #43

Merged
W1CDN merged 6 commits from add-party into main 2024-01-15 10:04:35 -06:00
3 changed files with 3 additions and 2 deletions
Showing only changes of commit 31fb381063 - Show all commits

View File

@ -33,6 +33,7 @@ db_frames_fields = ("id",
"posambiguity",
"raw",
"raw_timestamp",
"rng",
"speed",
"station_call",
"station_lat",

View File

@ -73,6 +73,7 @@ def main():
a['station_lat'] = config['Settings']['station_lat']
a['station_lon'] = config['Settings']['station_lon']
a['created_unix'] = int(time.time())
a['party'] = 1
# Make this a string and deal with it later (probably a mistake)
a['path'] = str(a['path'])
@ -87,8 +88,6 @@ def main():
b['station_lat'] = config['Settings']['station_lat']
b['station_lon'] = config['Settings']['station_lon']
b['created_unix'] = int(time.time())
else:
a['party'] = 1
#logging.debug(a['path'])
# Store true/false as 1/0
if 'alive' in a:

View File

@ -35,6 +35,7 @@ CREATE TABLE frames (
posambiguity INT,
raw TEXT,
raw_timestamp TEXT,
rng REAL,
speed REAL,
station_call TEXT,
station_lat REAL,