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:
2021-04-07 17:39:53 -04:00
commit ccc68b64a5
3 changed files with 204 additions and 0 deletions

41
databaseSetup Normal file
View 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
);