Addon/API for Dashboard to display custom data
Let's they you want to have cool things on your dashboard which are not supported by locus. There would be 2 solutions:
- Add an overlay and check if somebody did close the dashboard by check UI content
- New dashboard components which are updateable over API
Why do I request it?
Well, I like my elevation change calculation (http://help.locusmap.eu/topic/threshold-for-altitude-changes) so much that I want to keep it because the amount of customization on your own pressure value analytic software can never be implemented in locus without losing some features of it.
And now I would like to include the calculation result into my dashboard.
For me it's easy to do this as a overlay because I do only need to support my own dashboard. This is my todo list for this solution
- place an overlay on top of the locus elevation
- close the overlay if I use my hardware button dashboard toogle
- close the overlay if you touch it in case that I close the dashboard without my hardware button
- listen for elevation changes from locus to add them as offset to my own elevation change overlay value because it is to expensive to calculate it every time:sensordata line offset is to complicated becase there is more then one sensor output file.read all files untill offset is reached is not an option because skipping 300.000 lines is still an expensive IO operation
- full recalculation of the overlay every 2 hours because difference between my advance calculation and the basic locus altitude calculation isn't that much after 1 hour.
I do just ask about this because I want to know if an API support of Dashboard updates would be usefull for 2018. Because if this will not be implemented this year, I will create the overlay solution.
A second topic is this one:
I still have 1 Problem with reading data from locus: I do have problems to get locus elevation calculation result values into tasker to use them as offset for my full calculation which is triggered every 2 hours.
Are there some other ideas? In worst case I have to think about a solution for getting the latest lines of sensor data without reading 300.000 lines of sensordata
A second topic is this one:
I still have 1 Problem with reading data from locus: I do have problems to get locus elevation calculation result values into tasker to use them as offset for my full calculation which is triggered every 2 hours.
Are there some other ideas? In worst case I have to think about a solution for getting the latest lines of sensor data without reading 300.000 lines of sensordata
I maybe need this "overlay vs a new set dashboard field intent" for another workarround: http://help.locusmap.eu/topic/elevation-to-target#comment-61138 because this field is maybe not importend enoght. I guess we could solve alot of non importand dashboard requests with dashboard addon fields.
I maybe need this "overlay vs a new set dashboard field intent" for another workarround: http://help.locusmap.eu/topic/elevation-to-target#comment-61138 because this field is maybe not importend enoght. I guess we could solve alot of non importand dashboard requests with dashboard addon fields.
Not able to help with this, but I would surely use your solution if you get it done. Good luck!
Not able to help with this, but I would surely use your solution if you get it done. Good luck!
Good day Falco,
I did no every imagined such specific requirement :).
API itself is partially wrapper, but offer also many features that are not possible over simple Intent>Intent communication. You already found it. Because it was made during maybe 5-6 years, it is little inconsistent and missing huge amount of documentation, sorry for that. I just rather write code and docs/wiki :).
---
Anyway, back to the original idea. This whole story is because you want to get improved altitude values in the app. I still fight with some stupid Huawei/GPS/License troubles and had not yet free evening time to read more carefully your post about the improved filter. Option to insert custom dashboard values is interesting, but definitely not possible during this year. Anyway, I believe that altitude system in app has a lot of space for improvement, so best should be to optimize the existing algorithm in the app from my point of view.
Otherwise, hope I gave you all the necessary answers for your interesting experiment. Feel free to ask if something won't be clear.
Good day Falco,
I did no every imagined such specific requirement :).
API itself is partially wrapper, but offer also many features that are not possible over simple Intent>Intent communication. You already found it. Because it was made during maybe 5-6 years, it is little inconsistent and missing huge amount of documentation, sorry for that. I just rather write code and docs/wiki :).
---
Anyway, back to the original idea. This whole story is because you want to get improved altitude values in the app. I still fight with some stupid Huawei/GPS/License troubles and had not yet free evening time to read more carefully your post about the improved filter. Option to insert custom dashboard values is interesting, but definitely not possible during this year. Anyway, I believe that altitude system in app has a lot of space for improvement, so best should be to optimize the existing algorithm in the app from my point of view.
Otherwise, hope I gave you all the necessary answers for your interesting experiment. Feel free to ask if something won't be clear.
Replies have been locked on this page!