Skip to content

Retrieve coordinates from log output

Sascha edited this page Jul 10, 2022 · 6 revisions

CustomArea

  1. Install the library via GitHub and prepare the example apps

  2. Start the app for retrieving map related info:

cd example
node ./mapInfos.js | grep 'Last used area values' // For Ecovacs models
node ./mapInfosYeedi.js | grep 'Last used area values' // For yeedi models
  1. Start a custom cleaning from mobile app

  2. Then the coordinates are output in the log. For example:

Last used area values (x1,y1,x2,y2): -1895.000000,-479.000000,1351.000000,-1960.000000
  1. Repeat step 3 for more custom areas

Full log output of map related information

cd example
node ./mapInfos.js
...
Last used area values (x1,y1,x2,y2): -1895.000000,-479.000000,1351.000000,-1960.000000
Current map name: 1st floor
Current map ID: 1694983192
- Spot area 0 = Living room
- Spot area 1 = Corridor
- Spot area 8 = Study
- Spot area 3 = Bathroom
- Spot area 9 = Lounge

Requesting position data

Current spot area 0 = Living room
Position (x,y): 102,-735
Distance to charger (m): 1.1
Charging position (x,y): 104,385
Current spot area 0 = Living room
Position (x,y): 102,-735
Distance to charger (m): 1.1
...

If you want to retrieve all information you have to install the node-canvas library

Clone this wiki locally