Access GPS data in Bash

Bash access to GPS
Hi, I want to access unprocessed current GPS data such as speed, heading, lat long from within a bash script, while not interfering with unit collecting data.

The basic goal is that I want to trigger a camera after travelling a certain distance (or after a certain time depending on the speed of travel).

Any suggestions on how to tackle this?

thanks

Matt :slight_smile:

Hi Matt,

You can configure position output to be a TCP server with LLH format on, say, port 3000 and access it using netcat like this:

nc 192.168.1.xx 3000 | your_script.sh