Initial commit. Added script and Readme.

This commit is contained in:
Fliegerjohn 2023-12-18 21:11:55 +01:00
commit 327e039b31
Signed by: fliegerjohn
GPG key ID: E2221D5FE4656B6A
2 changed files with 25 additions and 0 deletions

13
README.md Normal file
View file

@ -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!

12
gpshelper.sh Executable file
View file

@ -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