hcarter333 / pico-w-mem-keyer

Uses the PicoW as a ham radio memory keyer
Apache License 2.0
0 stars 1 forks source link

Add HRWB 225 inspired POTA SW features #25

Open hcarter333 opened 3 months ago

hcarter333 commented 3 months ago

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.

hcarter333 commented 3 months ago

Moving the command line options for UTC time and location into the app as configuration commands -H and -L respectively.

hcarter333 commented 3 months ago

Time offset setup

from datetime import datetime, timedelta

Create a datetime object

now = datetime.now()

Add 8 hours

eight_hours_from_now = now + timedelta(hours=8)

print("Current time:", now) print("Time after adding 8 hours:", eight_hours_from_now)

hcarter333 commented 3 months ago

import datetime

now = datetime.datetime.now() formatteddate = now.strftime("#%Y%m_%d") print(formatted_date)