Skip to content

Instantly share code, notes, and snippets.

@DmitriyKorchemkin
Created August 24, 2020 09:11
Show Gist options
  • Save DmitriyKorchemkin/17eae72a974c3bbca158aa08ec4eaa31 to your computer and use it in GitHub Desktop.
Save DmitriyKorchemkin/17eae72a974c3bbca158aa08ec4eaa31 to your computer and use it in GitHub Desktop.
Simple recording of rinex & raw data using gpsd
#!/bin/bash
interval=1
hours=24
seconds=$(( ${hours} * 3600 ))
n=$(( ${seconds} / ${interval} ))
tag=$( date +%Y-%m-%d_%H-%M-%S )
gpsrinex -i ${interval} -n ${n} -f ${tag}.obs &
rinex_pid=$!
gpspipe -R | pv > ${tag}.ubx &
pipe_pid=$!
wait ${rinex_pid}
kill -SIGINT ${pipe_pid}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment