Coder Social home page Coder Social logo

Comments (4)

marcelrv avatar marcelrv commented on June 5, 2024

yes, it is possible, but you need to make sure the request is properly signed with the security keys
In the response you get the right (temporary) URL where the robotmap can be downloaded. It is to simplistic to just try to try to download the roboroommap%2FXXXXXXXX%2FX file directly from the server, without the required cookies/signatures.
You can look into openHAB source to get idea of the request to make.

from xiaomirobotvacuumprotocol.

messimm avatar messimm commented on June 5, 2024

Thank you for reply! Sorry, one more question. How do obstacles recognition work? Do it depend on vacuum cleaner model? Or it is result of processing by Xiaomi servers?

from xiaomirobotvacuumprotocol.

dsbabkov avatar dsbabkov commented on June 5, 2024

Help me please. How should I concatenate urls?

I have roborock S6 and got in get_map_v1 response rubysc1%2FXXXXXXXXX%2FX

My region server in MI Home is Russian. Vacuum was removed and added again to MI Home after setting the region. Seems my url is https://ru.api.io.mi.com/app/home/getmapfileurl

I have no experience of requests... I have tryed to input to adress line of chrome https://ru.api.io.mi.com/app/home/getmapfileurl/rubysc1/XXXXXXXXX/X and https://ru.api.io.mi.com/app/home/getmapfileurl/rubysc1%2FXXXXXXXXX%2FX but server responses "404 not found" ...

from xiaomirobotvacuumprotocol.

gjuhasz86 avatar gjuhasz86 commented on June 5, 2024

I have been experimenting with this recently, and created a gist that can help downloading the map.
The basic underlying mechanism is that you first send the requests to log into the Xiaomi account and obtain the service token as well as other security keys and cookies, then make a POST request to getmapfileurl with the map name and some other parameters encoded in the url, then that service will reply with the actual url that you can use to get the map data.
If you start with the gist mentioned above, you can find out all the details by following the calls (it uses a python api).

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.