gpstrek - Remove obsolete script

pull/2768/head
Martin Boonk 2023-06-10 16:19:39 +02:00
parent 13393cc1b7
commit 40324e2be2
2 changed files with 1 additions and 19 deletions

View File

@ -24,13 +24,9 @@ If they are on display, the source is the magnetometer and you should keep the b
### Route
Routes can be created from .gpx files containing "trkpt" elements with this script: [createRoute.sh](createRoute.sh)
The resulting file needs to be uploaded to the watch and will be shown in the file selection menu.
The route can be mirrored to switch start and destination.
If the GPS position is closer than 30m to the next waypoint, the route is automatically advanced to the next waypoint.
If the GPS position is close enough to the next waypoint, the route is automatically advanced to the next waypoint.
### Waypoints

View File

@ -1,14 +0,0 @@
#!/bin/bash
[ -z "$1" ] && echo Give gpx file name
xmlstarlet select -t -m '//_:trkpt' \
--if '_:name and _:ele' -o D \
--elif '_:ele and not(_:name)' -o C \
--elif 'not(_:ele) and _:name' -o B \
--else -o A -b \
-v 'format-number(@lat,"+00.0000000;-00.0000000")' \
-v 'format-number(@lon,"+000.0000000;-000.0000000")' \
--if '_:ele' -v 'format-number(_:ele,"+00000;-00000")' -b \
--if _:name -v 'format-number(string-length(_:name),"00")' -v '_:name' -b \
-n "$1" | iconv -f utf8 -t iso8859-1 > "$(basename "$1" | sed -e "s|.gpx||").trf"