Answer to myself:
I made a perl script that connects to Direwolf kiss tcp port and reads KISS/NMEA lines that Direwolf sends.
[0.3 08:51:47] AIS>APDW16:{DA!AIVDM,1,1,,A,15N4cJ`000rrjq@H@0i2hbuN0L0U,0*31
As it is a kiss frame the beginning of line is "garbage" and at the end of line there is byte 0xC0
Perl script cuts this line using "{DA" as delimiter. The tail part is then cleaned to remove 0xC0 to get clean NMEA line and after that the line is pushed as UDP datagram to MarineTraffic address and two ports of localhost address for ais_json script and local monitoring. I.E. three UDP frames are generated from one NMEA line.
It is a Python script that can read an UDP datagram that has ais-NMEA line and push it to
aprs.fi using jsonAIS format.
Before this ais_json.py works one must install libais with "pip install libais"
Ais_json may have some kind of bug. That could be seen from
aprs.fi with ship name and/or destination sometimes having tails filled with "@". How ever this can also be wrong configured AIS transmitter of ship because it does not happen with all ships. That's why small modification was added to replace all "@"s with " "s in ship name and destination strings.
This setup seems to work now as expected.
Received NMEA frames count increased from around 15 messages/minute to value around 75 messages/minute !