Initial Commit. Downloads latest wsprnet log, unzips the csv loads the records into pandas, filters sent and received by callsign, checks if record already exists and adds it to correct table if it doesn't. Also working on adding some post processing cleanup and logging. Also has bat file that activates correct venv and then runs the script.
This commit is contained in:
41
databaseSetup
Normal file
41
databaseSetup
Normal file
@@ -0,0 +1,41 @@
|
||||
create table Receive
|
||||
(
|
||||
SpotID int
|
||||
constraint Receive_pk
|
||||
primary key,
|
||||
Timestamp TEXT,
|
||||
Reporter TEXT,
|
||||
reporterGrid TEXT,
|
||||
SNR int,
|
||||
Freq float,
|
||||
CallSign TEXT,
|
||||
Power int,
|
||||
Grid TEXT,
|
||||
Drift int,
|
||||
Distance int,
|
||||
Azimuth int,
|
||||
Band int,
|
||||
Version float,
|
||||
Code int
|
||||
);
|
||||
|
||||
create table Sent
|
||||
(
|
||||
SpotID int
|
||||
constraint Receive_pk
|
||||
primary key,
|
||||
Timestamp TEXT,
|
||||
Reporter TEXT,
|
||||
reporterGrid TEXT,
|
||||
SNR int,
|
||||
Freq float,
|
||||
CallSign TEXT,
|
||||
Power int,
|
||||
Grid TEXT,
|
||||
Drift int,
|
||||
Distance int,
|
||||
Azimuth int,
|
||||
Band int,
|
||||
Version float,
|
||||
Code int
|
||||
);
|
||||
Reference in New Issue
Block a user