Grpcurl stralink location

Hello,
I am trying to retrieve the GPS position of a Starlink antenna in a file using this type of command.
I am looking for an alternative to JQ to retrieve the response in a file. Could you help me?
Thank you for your help.

grpcurl -plaintext -d {\“get_location\”:{}} 192.168.100.1:9200 SpaceX.API.Device.Device/Handle | jq -r . > “/usr/local/response_$(date +‘%Y%m%d_%H%M%S’).json”

Response gprc:

{
“status”: {},
“apiVersion”: “40”,
“getLocation”: {
“lla”: {
“lat”: 48.38045822626718,
“lon”: -4.486677788247141,
“alt”: 49.86233211577027
},
“source”: “GNC_FUSED”
}
}

Hello,

Could you please specify which device model you are using with your Starlink antenna?

Best regards,

Hello,

we use a Statlink Mini.

Do you have a solution for using the Starlink position instead of the RutX12 GPS antenna?

Thank you,

Antoine

Hello,

We can only assist with questions related to Teltonika devices.

Best regards,

Hi,

Is pretty print needed? If no then you can directly output grpcurl to file

grpcurl -plaintext -d {\"get_location\":{}} 192.168.100.1:9200 SpaceX.API.Device.Device/Handle > "/usr/local/response_$(date +'%Y%m%d_%H%M%S').json"

If you want to prepossess json (no petty print tho) you can use bult-in jsonfilter command

This topic was automatically closed after 60 days. New replies are no longer allowed.