Skip to content

Latest commit

 

History

History
79 lines (60 loc) · 2.78 KB

clean_summary+record.md

File metadata and controls

79 lines (60 loc) · 2.78 KB

Clean Summary

These commands retreive the cleaning history from the vacuum.

Get Clean Summary

Command

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

Example

{
    "method": "get_clean_summary",
    "id": 2
}

Response

Key Example Description
- 16414 Total cleaning time in sec
- 252165000 Total area (in cm2)
- 9 Total # cleanups
- [1497139200, 1496966400, 1496620800, 1496534400, 1496448000, 1496361600] Array of cleaning records ID's

Example

{
    "result": [16414, 252165000, 9, [1497139200, 1496966400, 1496620800, 1496534400, 1496448000, 1496361600]],
    "id": 2
}

Get Clean Record

Command

Key Value Comment
method "get_clean_record"
params [cleaning_id] cleaning_id can be taken from the array of get_clean_summary.
id id Random integer which is returned in the response used to link request and response.

Example

{
    "method": "get_clean_record",
    "params": [1497139200],
    "id": 263
}

Response

Key Example Description
- 1497163727 Start time (unix timestamp)
- 1497165195 End time (unix timestamp)
- 1468 Cleaning duration (in s)
- 22902500 Area (in cm²)
- 0 Errors??
- 1 Completed (0=no, 1=yes)

Example

{
    "result": [[1497163727, 1497165195, 1468, 22902500, 0, 1]],
    "id": 263
}