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

Command "map" and "raw_command" - what do they do? #19

Closed
alexdom opened this issue Jun 22, 2017 · 5 comments
Closed

Command "map" and "raw_command" - what do they do? #19

alexdom opened this issue Jun 22, 2017 · 5 comments

Comments

@alexdom
Copy link

alexdom commented Jun 22, 2017

What do these command do? I hoped this return a JPEG of cleaning map, like iPad Mi app does, but it s not:

-> # mirobo map

['retry']

Any detailed information about how to use this command:

-> # mirobo raw_command

Usage: mirobo raw_command [OPTIONS] CMD [PARAMETERS]

Error: Missing argument "cmd".
@rytilahti
Copy link
Owner

raw_command does as explained in the README and/or in --help, namely allows one to give direct commands to the device without implementing them first. That can be used to test out implementations for other types of devices / new commands without directly implementing them.

The map gives the token which is used by the mobile app to fetch the map from the remote server, it is of no use currrently. When it says retry, it just means that your robot cannot fetch the token (meaning that it is probably not connected to the internet). As this is not a bug, I'm closing it. If there's something to be fixed in the documentation related to these features (and others), PRs are very welcome.

@otbe
Copy link

otbe commented Jun 26, 2017

Sorry for jumping into this issue.

If I get the map token via mirobo map how can I pull the map down the wire? A sample (http?) request would be nice. Thank you very much!

@rytilahti
Copy link
Owner

Not a problem. One gets some sort of token by calling this, that's why I left it in place if/when someone figures out how it can used. Personally I haven't looked at all into the communications between the robot and the servers of xiaomi, besides that it's using an encrypted connection.

@otbe
Copy link

otbe commented Jun 27, 2017

I understand. I hoped it would be easy, so I can inline the map into openHAB :)

Thank you very much.

@marcelrv
Copy link

@otbe for Openhab you may be interested in pulling this: https://marketplace.eclipse.org/content/openhab-xiaomi-vacuum-binding
No support for pulling the maps either though :( but does give you easy way for openhab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants