changeset 137:7a70fc40f1b3

gpsd: add script
author Lewin Bormann <lbo@spheniscida.de>
date Thu, 06 May 2021 10:28:35 +0000
parents b276d33a364a
children 69be6afbd86a
files examples/gpsd/runwithgpsd.sh
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/gpsd/runwithgpsd.sh	Thu May 06 10:28:35 2021 +0000
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Example: start gpsd along the gpsd.py script, point the latter at the former,
+# and wait for NMEA data on UDP port 10001.
+
+PORT=2948
+
+UDPADDRESS=10.0.1.1
+UDPPORT=10001
+
+gpsd -N udp://${UDPADDRESS}:${UDPPORT} -P /tmp/gpsd${PORT}.pid -S ${PORT}  &
+
+python gpsd.py \
+    --geohub_host 127.0.0.80 \
+    --geohub_scheme http \
+    --client lbogpsd  \
+    --secret 29482948 \
+    --interval 0 \
+    --gpsdport ${PORT}