Thanks!
The fencing and other stuff is good. The program mqtt_pub produces that.
I would like to listen to /dev/ttyUSB1 though and produce above mentioned data on MQTT.
The GPS return a lot of data and I know how to use it:
$GPGGA,222916.00,5934.824099,N,01730.324840,E,1,10,0.6,44.6,M,27.0,M,,*5D
$GPVTG,108.0,T,105.1,M,0.0,N,0.0,K,A*2F
$GPRMC,222916.00,A,5934.824099,N,01730.324840,E,0.0,108.0,261018,2.9,E,A*3E
$GPGSA,A,2,01,06,10,12,14,15,17,19,24,25,,,0.9,0.6,0.7*30
$GPGSV,4,1,15,01,07,007,32,06,11,109,36,10,06,278,27,12,55,237,30*7A
$GPGSV,4,2,15,15,14,194,35,17,36,056,45,19,52,092,40,22,02,015,33*77
$GPGSV,4,3,15,24,69,174,34,25,17,248,26,14,09,327,,32,25,313,*70
$GPGSV,4,4,15,39,,,36,40,,,34,49,,,34*7B
$GPGGA,222917.00,5934.824137,N,01730.324778,E,1,10,0.6,44.5,M,27.0,M,,*5E
$GPVTG,108.0,T,105.1,M,0.0,N,0.0,K,A*2F
$GPRMC,222917.00,A,5934.824137,N,01730.324778,E,0.0,108.0,261018,2.9,E,A*3E
$GPGSA,A,2,01,06,10,12,14,15,17,19,24,25,,,0.9,0.6,0.7*30
$GPGSV,4,1,15,01,07,007,32,06,11,109,35,10,06,278,29,12,55,237,32*75
$GPGSV,4,2,15,15,14,194,34,17,36,056,45,19,52,092,41,22,02,015,34*70
$GPGSV,4,3,15,24,69,174,33,25,17,248,26,32,25,313,27,14,09,327,*72
$GPGSV,4,4,15,39,,,36,40,,,33,49,,,35*7D
$GPGGA,222918.00,5934.824158,N,01730.324748,E,1,11,0.6,44.5,M,27.0,M,,*5A
$GPVTG,108.0,T,105.1,M,0.0,N,0.0,K,A*2F
$GPRMC,222918.00,A,5934.824158,N,01730.324748,E,0.0,108.0,261018,2.9,E,A*3B
$GPGSA,A,2,01,06,10,12,14,15,17,19,24,25,32,,0.9,0.6,0.7*31