Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.5 KB

map_v1.md

File metadata and controls

44 lines (31 loc) · 1.5 KB

Map V1

Gets part of the URL to fetch the map from the Xiaomi cloud. With the proper cloud decoding it can be retreived from the cloud independently of the Mi Home app File can be retreived from the Xiaomi cloud https://[country server].api.io.mi.com/app/home/getmapfileurl while passing the response from below get_map_v1 as parameter. The response from this is a URL which the RR enconded map can be downloaded.

For decoding of the mapfile see RR Map File

Get Map V1

Command

Key Value Comment
method "get_map_v1"
id id Random integer which is returned in the response used to link request and response.

Example

{
    "method": "get_map_v1",
    "id": 2475
}

Response

Key Example Description
- "roboroommap%2255512245%2F1" Pointer to map data

Returns ["retry"] without internet.

Note: this URLdecodes to roboroommap"2255512245/1 where 2255512245 is the decimal representation of the deviceId, the digit after / appears to be a sequencial number

Example

{
    "result": ["roboroommap%2255512245%2F1"],
    "id": 2475
}