-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storing data without GPS #1033
Storing data without GPS #1033
Conversation
One simple option:
|
Alternative with longer storage intervals was mentioned here: #500 (comment) |
@pstorch This PR affects OSMDashboard. An alternative would be to introduce a new type like |
What should the OSMDashboard do with those trackpoints? Ignore? I assume that trackpoints with coordinates 0/0 will be displayed at the favourite NULL position in the ocean. I've not tested it. |
That's what happens and how I discovered that we need to talk about this :) Anyhow, it is a breaking change so we need to upgrade the protocol version. |
@ChristophWurst Did a test run today and it works :) |
Is it an option to filter out those beforehand on OT side? I mean trackpoints without coordinates are not that useful on a map. |
3366a06
to
c13c092
Compare
@pstorch I introduced a new TrackPoint type (SENSORPOINT, 2), but that requires a change in OSMDashboard:
I see two options:
Anyhow, the new type is a breaking change (for the current OSMDashboard release), so we need to upgrade the API version. |
As long as we cannot do anything useful on the map with those trackpoints I would prefer the first option to add it to the where clause, then they are not even transferred. |
c13c092
to
0f370a4
Compare
This code is ready for review and testing. One problem.
@pstorch Due to the introduction of SENSORPOINT, a new release of OSMDashboard is required to ignore those. @rgmf Let's merge+release the profile changes first as it provides more value :) |
I don't think an increase in protocol version is necessary. The |
0f370a4
to
8945a66
Compare
Anything else to change in OSMDashboard? I think I should release a new version soon, because of the sensor delay bug. |
@pstorch To the best of my knowledge OSMDashboard is prepared for this PR. |
@pstorch one thought about the statistics for the share pic functionality of OSMDashboard: SENSORPOINTs contain cumulative sensor data (i.e., distance); is this a problem for OSMDashboard if those are ignored? [don't know how the stats are computed... |
@dennisguse OSMDashboard reads the statistic provided by OpenTracks and displays them as is, no computation. So the question is how OpenTracks calculates them 😉 |
@pstorch Perfect :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works like a charm. Fantastic feature!!!
I've read the code and I've tried to understand. The first thing very well, the second one not as well 🙄 Maybe, I've should been read it with more attention 🤣
Seriously now, great job ;)
@rgmf Sounds great! |
d32d7c0
to
bb1f3b7
Compare
Found and fixed a regression: for creating a marker, the lastStoredTrackPointWithLocation should be used as markers require a valid location. |
bb1f3b7
to
017af93
Compare
3d7a02f
to
3f049f4
Compare
3f049f4
to
7d0d87e
Compare
OpenTracks now tries to create TrackPoints from BLE sensors (i.e., the ones that provide distance) every second.
It is a really naive implementation and works nicely if GPS is not used.
The current implementation has a preference of sensor-based TrackPoints as those will be triggered more often.
This will very likely result in ignoring useful GPS locations (which are expansive to get from an energy perspective).
For this, we need some more magic (aka don't try to store sensor data every second).
Fixed #500.
SENSORPOINT
Upgrade OSMDashboard protocol version ORwait for new OSMDashboard release: https://github.com/OpenTracksApp/OSMDashboard/releases/tag/v2.13