Skip to content

Commit

Permalink
Merge pull request #3549 from pavelmachek/m_31_trail
Browse files Browse the repository at this point in the history
trail: initial import
  • Loading branch information
bobrippling authored Sep 2, 2024
2 parents 54326e6 + e876804 commit 48d077e
Show file tree
Hide file tree
Showing 7 changed files with 687 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/trail/ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0.01: New App!

18 changes: 18 additions & 0 deletions apps/trail/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Trail Rail ![](app.png)

Simple app to follow GPX track

Written by: [Pavel Machek](https://github.com/pavelmachek)

After GPS fix is acquired, it displays familiar arrow with road in
front of you. It never stores whole track in memory, so it should work
with fairly large files.

GPX files can be obtained from various services, www.mapy.cz is one of
them (actually uses openstreetmap data for most of the world).

## Preparing data

"gpx2egt.sh < file.gpx > t.name.egt" can be used to prepare data, then
upload it to watch.

1 change: 1 addition & 0 deletions apps/trail/app-icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("heatshrink").decompress(atob("mEwhHXAH4AHgAqpvownEQ4wEMEYw8YMgw4F84wwMH4woeQQvlEwwvCGFgvqE4gvDGFAvHAFQv/AH74YElYvjF3Je/FzV9F8wuLF8QhHL34u/RqSOjFxYvpF2gvlRQwuoAAIvqFoQvJFsoupF9wtFF+CNuX34xfF1YwDF9oA/AH4AyA=="))
Binary file added apps/trail/app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions apps/trail/gpx2egt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
grep "trkpt lat" | sed 's/.*trkpt.lat=.//' | sed 's/. lon=./ /' | sed 's/".$//'
13 changes: 13 additions & 0 deletions apps/trail/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ "id": "trail",
"name": "Trail Rail",
"version":"0.01",
"description": "Follow a GPX track in car or on bike",
"icon": "app.png",
"readme": "README.md",
"supports" : ["BANGLEJS2"],
"tags": "outdoors,gps,osm",
"storage": [
{"name":"trail.app.js","url":"trail.app.js"},
{"name":"trail.img","url":"app-icon.js","evaluate":true}
]
}
Loading

0 comments on commit 48d077e

Please sign in to comment.