BangleApps/apps/gipy/README.md

180 lines
7.4 KiB
Markdown
Raw Normal View History

2022-07-11 14:51:03 +00:00
# Gipy
2022-11-05 16:17:49 +00:00
Gipy allows you to follow gpx traces on your watch.
2022-12-31 10:28:07 +00:00
![Screenshot](splash.png)
2022-11-06 09:08:47 +00:00
2022-12-31 11:33:36 +00:00
It is mainly meant for bicycling but hiking might be fine.
2022-11-06 09:08:47 +00:00
It is untested on Banglejs1. If you can try it, you would be welcome.
This software is not perfect but surprisingly useful.
## Features
2022-11-05 16:17:49 +00:00
It provides the following features :
- display the path with current position from gps
- display a local map around you, downloaded from openstreetmap
2022-11-05 16:17:49 +00:00
- detects and buzzes if you leave the path
2023-09-13 07:18:53 +00:00
- (optional) buzzes before waypoints
2022-11-05 16:17:49 +00:00
(for example when you need to turn in https://mapstogpx.com/)
- display instant / average speed
2022-12-30 15:06:18 +00:00
- display distance to next point
2022-11-05 16:17:49 +00:00
- display additional data from openstreetmap :
- water points
- toilets
- artwork
- bakeries
2023-08-22 12:37:44 +00:00
- display elevation data if available in the trace
2022-11-05 16:17:49 +00:00
2022-07-11 14:51:03 +00:00
## Usage
2022-11-06 09:08:47 +00:00
### Preparing the file
You first need to have a trace file in *gpx* format.
Usually I download from [komoot](https://www.komoot.com/) or I export
from google maps using [mapstogpx](https://mapstogpx.com/). [Brouter](https://brouter.damsy.net) is
also a nice open source option.
2022-11-06 09:08:47 +00:00
2022-11-06 09:18:33 +00:00
Note that *mapstogpx* has a super nice feature in its advanced settings.
You can turn on 'next turn info' and be warned by the watch when you need to turn.
2022-11-06 09:08:47 +00:00
2023-08-31 07:32:55 +00:00
Once you have your gpx file you need to convert it to *gps* which is my custom file format.
2022-11-06 09:08:47 +00:00
They are smaller than gpx and reduce the number of computations left to be done on the watch.
2022-11-09 07:45:44 +00:00
Just click the disk icon and select your gpx file.
This will request additional information from openstreetmap.
Your path will be displayed in svg.
2022-11-06 09:08:47 +00:00
### Starting Gipy
2022-07-11 14:51:03 +00:00
2022-12-31 11:33:36 +00:00
At start you will have a menu for selecting your trace (if more than one).
2023-07-08 09:46:38 +00:00
Choose the one you want and you will reach the splash screen where you'll wait for the map.
Once the map is loaded you will reach the main screen:
2022-11-06 09:08:47 +00:00
2022-12-30 15:06:18 +00:00
![Screenshot](legend.png)
2022-11-06 09:08:47 +00:00
The screen is oriented so that the top of the image is in front of you.
It will rotate as you turn.
2022-12-31 11:33:36 +00:00
On your screen you can see:
2022-11-06 09:08:47 +00:00
- yourself (the big black dot)
- the path (thick red line)
- a green arrow telling you which way is forward
2022-11-06 09:08:47 +00:00
- if needed a projection of yourself on the path (small black dot)
- waypoints as large white dots
2022-12-31 11:33:36 +00:00
- some text on the left (from top to bottom):
2022-11-06 09:08:47 +00:00
* current time
2022-12-30 15:06:18 +00:00
* time to reach end point at current average speed
2022-11-06 09:08:47 +00:00
* left distance till end of current segment
2022-12-30 15:06:18 +00:00
* remaining distance / path length
2022-11-06 09:08:47 +00:00
* average speed / instant speed
2022-11-09 07:45:44 +00:00
- interest points from openstreetmap as color dots :
2022-12-31 11:33:36 +00:00
* red: bakery
* deep blue: water point
* cyan: toilets (often doubles as water point)
* green: artwork
2022-11-06 09:08:47 +00:00
- a *turn* indicator on the top right when you reach a turning point
- a *gps* indicator (blinking) on the top right if you lose gps signal
2022-12-30 15:06:18 +00:00
2022-12-31 10:28:07 +00:00
### Lost
2023-08-31 07:32:55 +00:00
If you stray away from path we will display the direction to follow as a purple segment. Your main position will also turn to purple.
2022-12-30 15:06:18 +00:00
2022-12-31 10:28:07 +00:00
Note that while lost, the app will slow down a lot since it will start scanning all possible points to figure out where you
are. On path it just needed to scan a few points ahead and behind.
2023-08-22 14:52:28 +00:00
The distance to next point displayed corresponds to the length of the purple segment.
2022-12-31 10:28:07 +00:00
### Menu
If you click the button you'll reach a menu where you can currently zoom out to see more of the map
2023-07-11 09:18:30 +00:00
(with a slower refresh rate), reverse the path direction and disable power saving (keeping backlight on).
2023-08-22 12:37:44 +00:00
### Elevation
If you touch the screen you will switch between display modes.
The first one displays the map, the second one the nearby elevation and the last one the elevation
for the whole path.
2023-08-23 06:29:21 +00:00
![Screenshot](heights.png)
Colors correspond to slopes.
2023-08-31 08:36:02 +00:00
Above 15% will be red, above 8% orange, above 3% yellow, between 3% and -3% is green and shades of blue
2023-08-31 07:32:55 +00:00
are for descents.
You should note that the precision is not very good. The input data is not very precise and you only get the
slopes between path points. Don't expect to see small bumps on the road.
2023-08-23 06:29:21 +00:00
2022-11-06 09:08:47 +00:00
### Settings
Few settings for now (feel free to suggest me more) :
2023-07-08 09:46:38 +00:00
- buzz on turns : should the watch buzz when reaching a waypoint ?
2023-09-13 07:18:53 +00:00
- disable bluetooth : turn bluetooth off completely to try to save some power.
- lost distance : at which distance from path are you considered to be lost ?
- wake-up speed : if you drive below this speed powersaving will disable itself
- active-time : how long (in seconds) the screen should be turned on if activated before going back to sleep.
2023-07-11 09:18:30 +00:00
- brightness : how bright should screen be ? (by default 0.5, again saving power)
2023-07-18 06:59:37 +00:00
- power lcd off (disabled by default): turn lcd off when inactive to save power. the watch will wake up when reaching points,
when you touch the screen and when speed is below 13km/h.
- powersave by default: when gipy starts is powersaving activated ? (see below)
2023-10-05 12:52:18 +00:00
- sleep between waypoints: instead of powersaving between points save power between waypoints (crossroads). this way you can save more. waypoints autodetection is WIP.
2022-11-06 09:08:47 +00:00
2023-08-31 07:32:55 +00:00
### Powersaving
Starting with release 0.20 we experiment with power saving.
By default, powersaving is **disabled**. You can turn it on in the menu by checking the powersaving box.
You can also change the default choice in the app settings (*powersave by default* setting).
2023-08-31 07:32:55 +00:00
There are now two display modes :
- active : the screen is lit back (default at 50% light but can be configured with the *brightness* setting)
- inactive : by default the screen is not lit but you can also power it off completely (with the *power lcd off* setting)
The algorithm works in the following ways :
2023-09-13 07:18:53 +00:00
- some events will *activate* : the display will turn *active*
2023-08-31 07:32:55 +00:00
- if no activation event occur for at least 10 seconds (or *active-time* setting) we switch back to *inactive*
Activation events are the following :
2023-10-05 12:52:18 +00:00
- you are near (< 100m) the next point (only waypoints of *sleep between waypoints* is on) on path
2023-08-31 07:32:55 +00:00
- you are slow (< *wake-up speed* setting (13 km/h by default))
- you are lost
2023-08-31 07:32:55 +00:00
- you press the button / touch the screen
Power saving has been tested on a very long trip with several benefits
- longer battery life
- waking up near path points will attract your attention more easily when needed
2022-11-06 09:08:47 +00:00
### Caveats
It is good to use but you should know :
2022-11-06 09:33:53 +00:00
- the gps might take a long time to start initially (see the assisted gps update app).
2022-11-06 09:08:47 +00:00
- gps signal is noisy : there is therefore a small delay for instant speed. sometimes you may jump somewhere else.
2023-07-11 09:18:30 +00:00
- if you adventure in gorges the gps signal will become garbage.
2022-11-06 09:08:47 +00:00
- your gpx trace has been decimated and approximated : the **REAL PATH** might be **A FEW METERS AWAY**
- sometimes the watch will tell you that you are lost but you are in fact on the path. It usually figures again
the real gps position after a few minutes. It usually happens when the signal is acquired very fast.
2022-11-06 09:08:47 +00:00
- buzzing does not always work: when there is a high load on the watch, the buzzes might just never happen :-(.
- buzzes are not strong enough to be always easily noticed.
- be careful when **GOING DOWNHILL AT VERY HIGH SPEED**. I already missed a few turning points and by the time I realized it,
I had to go back uphill by quite a distance.
2022-07-11 14:51:03 +00:00
## Creator
2022-11-06 09:08:47 +00:00
Feel free to give me feedback : is it useful for you ? what other features would you like ?
2023-09-13 07:18:53 +00:00
If you want to raise issues the main repository is [here](https://github.com/wagnerf42/BangleApps) and
the rust code doing the actual map computations is located [here](https://github.com/wagnerf42/gps).
2023-07-08 09:46:38 +00:00
You can try the cutting edge version at [https://wagnerf42.github.io/BangleApps/](https://wagnerf42.github.io/BangleApps/)
2023-07-05 13:46:45 +00:00
2022-07-11 14:51:03 +00:00
frederic.wagner@imag.fr