From 327e039b31c745bc0068a3ea202a00e4233dd3c7 Mon Sep 17 00:00:00 2001 From: fliegerjohn Date: Mon, 18 Dec 2023 21:11:55 +0100 Subject: [PATCH] Initial commit. Added script and Readme. --- README.md | 13 +++++++++++++ gpshelper.sh | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 README.md create mode 100755 gpshelper.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..023f0f8 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +### Enable gps + +On my shift6mq gps isn't working out of the box wit postmarketos. +This script enables gps nmea output. Don't know if it need to be nmea, but it works for me. + +It will also drop the output of the gps every second at the end. Just kill it with *Ctrl + C* + +To start gps just execute the script: + +```./gpshelper.sh``` + +After you think the nmea messages doesn't look weird anymore kill it and open for example puremaps or osmin. +Enoy it! diff --git a/gpshelper.sh b/gpshelper.sh new file mode 100755 index 0000000..4ae8f78 --- /dev/null +++ b/gpshelper.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Enable nmea mode +mmcli -m any --location-enable-gps-nmea + +# Show the status of gps +while true; do + + mmcli -m any --location-get + sleep 1 + +done