Initial commit. Added script and Readme.
This commit is contained in:
commit
327e039b31
2 changed files with 25 additions and 0 deletions
13
README.md
Normal file
13
README.md
Normal 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
12
gpshelper.sh
Executable 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
|
Loading…
Reference in a new issue