Code Monkey home page Code Monkey logo

Comments (10)

michaelkuzmin avatar michaelkuzmin commented on June 8, 2024 1

There is indeed no direct way to access the map data.
The 2 known solutions: 1) root your device 2) pull the files from the cloud.
For the latter, the way to access cloud files is not fully clear yet.

thanks. I ended up taking screenshots and stitching them together. like a caveman.

from xiaomirobotvacuumprotocol.

marcelrv avatar marcelrv commented on June 8, 2024

There is indeed no direct way to access the map data.
The 2 known solutions: 1) root your device 2) pull the files from the cloud.
For the latter, the way to access cloud files is not fully clear yet.

from xiaomirobotvacuumprotocol.

cryptomilk avatar cryptomilk commented on June 8, 2024

How are maps uploaded? Can you tell it with an URL where to upload the map?

from xiaomirobotvacuumprotocol.

FeatureExpert avatar FeatureExpert commented on June 8, 2024

Yes you can. Roborock asks Xiaomi Cloud for pre-signed URL:

{'id': ##MESSAGE_ID##, 'method': '_sync.gen_presigned_url', 'params': {}}

Xiaomi response with URL. It will be used for upload map file:

{'id': ##MESSAGE_ID##, 'result': {'': {'url': 'http://awsde0.fds.api.xiaomi.com/robomap/2019/02/06/##SOME_UNKNOWN_NUMBERS_1##/##DEVICE_ID##_##SOME_UNKNOWN_NUMBERS_2##?Expires=1549420683543&GalaxyAccessKeyId=xxxxx&Signature=yyyyy', 'obj_name': '2019/02/06/##SAME_AS_UNKNOWN_NUMBERS_1##/##DEVICE_ID##_##SAME_AS_UNKNOWN_NUMBERS_2##', 'method': 'PUT', 'expires_time': 1549420656, 'ok': True, 'pwd': 'zzzzz'}, 'ok': True}}

from xiaomirobotvacuumprotocol.

cryptomilk avatar cryptomilk commented on June 8, 2024

Ok, so we could implement in valtudo a service and tell the robot to drop the map there :-)

from xiaomirobotvacuumprotocol.

FeatureExpert avatar FeatureExpert commented on June 8, 2024

Basicaly yes, I'm using this method to store map files on my server for later usage. But I can intercept any message sent from/to roborock and even replace it or part of it on-the-fly. Not sure Valetudo can do similar tricks, as I don't know this software. Keep in mind, this is not an pure image file. Some info about file format can be found here.

from xiaomirobotvacuumprotocol.

FeatureExpert avatar FeatureExpert commented on June 8, 2024

I think so, but I'm not 100% sure. File format has been slightly changed couple of weeks ago probably due to 'software barrier' feature in roborock firmware.

from xiaomirobotvacuumprotocol.

cryptomilk avatar cryptomilk commented on June 8, 2024

FYI: Valetudo has now a map upload feature. The robot uploads map to valetudo.

from xiaomirobotvacuumprotocol.

snueffel88 avatar snueffel88 commented on June 8, 2024

Hi, it seems to be possible to download the map from the xiaomi server now. However, unfortunately I did not manage to download the map with the xiaomi api URL and the roboroommap url. Can you please provide some details how this works?

from xiaomirobotvacuumprotocol.

mwargan avatar mwargan commented on June 8, 2024

I've run into "object not found" on the "awsde0.fds.api.xiaomi.com" server - it seems to be the same when using the DE version of the url suggested in map_v1. Am I using the correct url? The path I'm using looks like "/app/home/roboroommap/xxx/0"

from xiaomirobotvacuumprotocol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.