Skip to content
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

Viomi minor bugfixes #820

Merged
merged 7 commits into from
Apr 29, 2021
Merged

Viomi minor bugfixes #820

merged 7 commits into from
Apr 29, 2021

Conversation

depau
Copy link
Contributor

@depau depau commented Apr 10, 2021

  • Timezone adjustment is moved to the status parsing so that we don't get any race conditions on cloud connection
  • Fix a regression in map parsing which causes it to loop forever if the end of the not-well-understood room data structure cannot be found
  • Makes map "presigned URL" payload consistent with how the OEM cloud currently sends it moved to feat(miio): Unify map presigned URL responses #873

@@ -458,6 +488,11 @@ class ViomiMapParser {
//Repeated for every room there is
this.take(unkLength * 2, "room data");

if (this.mapId === 0) {
// Sometimes the map is truncated here, when that happens the second word is zeroes
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could these be incremental map updates or do those still contain a full map image etc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, it contains everything except the "extended" room data + room outlines.

For some reason this is sent as soon as the robot touches the dock and in no other circumstance.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe thats when room splitting stuff is recalculated or something like that 🤔

Copy link
Contributor Author

@depau depau Apr 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed I just noticed it wants the same map ID for editing segments. It probably returns map ID set to 0 so that segment editing won't work until it's done.

@depau
Copy link
Contributor Author

depau commented Apr 29, 2021

Since the presigned URL stuff was moved to #873, this can now be reviewed. I dropped the presigned URL stuff from this history.

@depau depau force-pushed the viomi-map-refresh branch from 74aacdd to 3605d9b Compare April 29, 2021 00:37
@Hypfer Hypfer merged commit 4742214 into Hypfer:master Apr 29, 2021
@depau depau deleted the viomi-map-refresh branch April 29, 2021 15:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants