I wanted a simple way to send data to the APRS network. After hunting
around the www I found a 'ham' (s55ma) but others have documented
similar work, like the aprs_cron_injector on github and KW6V among others.

The basic syntax is printf "%s\n" "user yourHAMSIGN pass passcode"
"yourHAMSIGN>APN100,TCPIP*:=latitude/longtitude-comment" | ncat
poland.aprs2.net 14580

I have a number of scripts that cut and manipulate the data from my
Pi BME280 and cheap wireless weather station (I extract the data from
this using rtl_433), and put the required values in to the bash
script below.

The sending part of my script is as follows (all one line no CR/LF);
printf "%s\n" "user G4ABC pass 1234"
"G4ABC-2>APN100,TCPIP*:=0000.00N/00000.00W_.../...t${t
emp}h${humid}b${pres}<Weather Stn Details>" | nc -w 2 cwop.aprs.net 14580

Have fun ;)

73's