can't find any other easy solution
maybe it helps somebody some day
You will need
opkg update && opkg install gpsd gpsd-clients jq
- USB GPS with working drivers
#!/bin/sh
traccar= **Your traccar Server adress**
port=5055
id=
gpspipe=$( gpspipe -w |grep -m 1 TPV )
time=$( echo "$gpspipe" | jq -r '"\(.time)"') # date/time in UTC
lat=$( echo "$gpspipe" | jq -r '"\(.lat)"') # latitude
lon=$( echo "$gpspipe" | jq -r '"\(.lon)"') # longitude
alt=$( echo "$gpspipe" | jq -r '"\(.alt)"') # altitude (metres)
speed=$( echo "$gpspipe" | jq -r '"\(.speed)"') # rate of movement (metres/sec)
hdop=$( gpspipe -w |grep -m 1 SKY |jq -r '"\(.hdop)"' ) # Dilution of Precision (meters)
curl -X POST http://$traccar:$port/?id=$id\&lat=$lat\&lon=$lon\×tamp=$time\&altitude=$alt\&speed=$speed\&hdop=$hdop