-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[boschindego] Plot location on map #13179
[boschindego] Plot location on map #13179
Conversation
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Back to draft until I have performed field tests. I just noticed in logs while mowing today:
It was running for almost an hour, and constantly having One explanation might be that the coordinates are of course useless without the correct map. So this might be server logic simplifying the logic in the app which could simply load the map when requested to do so, and then also start receiving corresponding coordinates hereafter. |
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Today I was able to confirm that a new map must be requested when |
Ready for review. There might be more iterations, at least I hope so, as I learn more, but currently I'm blocked by the API not being documented (and hard to intercept as communication is HTTPS). Still, although the location is not always updated "live", having the position plotted on the map is still better than just having the raw map, and the optimizations of the request handling is also a step in the right direction. |
Update: Today I decompiled the Android APK and found a class with this list of methods:
POST_REQUEST_POSITION seemed interesting, knowing that the app is able to activate almost real-time position updates:
So I tried making a POST request for Using the same parameters I was able to succeed with this request: Sadly I will not be able to verify results before Friday, but I suspect this could be the API call used by the app to trigger the frequent position updates while looking at the map. In the meantime I'm working on some API call reductions as I reached out to the boschindego adapter for ioBroker author today and learned that the In other words: Please review this pull request as is, and I will be able to proceed with many more improvements. :-) |
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Created #13182 for the next steps, which should also explain why it should be kept separate from this PR. |
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.
Just one comment about the i18n file.
bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/i18n/boschindego.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
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.
LGTM
@lolodomo - thanks for quick review. |
Now confirmed, follow #13182 (comment). |
* Plot location on map * Invalidate map when requested by service * Optimize update of raw map Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Plot location on map * Invalidate map when requested by service * Optimize update of raw map Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Plot location on map * Invalidate map when requested by service * Optimize update of raw map Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* Plot location on map * Invalidate map when requested by service * Optimize update of raw map Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Plot location on map * Invalidate map when requested by service * Optimize update of raw map Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Location is now plotted on the received map:
Location is received as coordinates on the map with the state response, which is the most frequent and least expensive call. With default configuration coordinates are therefore received every three minutes.
The map itself is now only requested:
As a result we now have more usable data (current location plotted on map) with fewer calls.
Configuration parameter cuttingTimeMapRefresh has been renamed back to cuttingTimeRefresh as it no longer has any influence on map refresh. This is a change to #13040 which is also for 3.4.
Completes #13017