Open hcarter333 opened 3 months ago
Moving the command line options for UTC time and location into the app as configuration commands -H and -L respectively.
Time offset setup
from datetime import datetime, timedelta
now = datetime.now()
eight_hours_from_now = now + timedelta(hours=8)
print("Current time:", now) print("Time after adding 8 hours:", eight_hours_from_now)
import datetime
now = datetime.datetime.now() formatteddate = now.strftime("#%Y%m_%d") print(formatted_date)
Add the following input arguments to mancw.py:
-H -L <two character location (state in the US) abbreviation>
Add a T and an R command to the software as defined below.
When T is the first character of the line, then the python script expects the following: T call rst where call is the lower case callsign and rst is the 3 digit RST strength.
The ocmmand will use that information to send the following string
call tnx gm|ga|ge u r rst rst L *L bk
where call is the call sent to the T command, rst is the rst sent to the command and *L is the location of the station as specified in the comand line.
When R rst ll is the first character of an input line, then the python script will interpret rst as the received rst and ll is the location received from the QSO station. It will then use the previously sent call to send
tnx agn 72 k e e
It will then append the following line to a file named 2024_12_18_qso_update.csv
call,2024/12/18 00:08:23,txRST,rxRST,ll
where the date and time will be calculated by adding -H hours to the local time.
The next big idea after this is to have two wifi cards in a laptop, one to connect to the PIco-W and another to connect to a hotspot and use it for automatically mapping including call lookup and geocoding.