-
Notifications
You must be signed in to change notification settings - Fork 37
Retrieve coordinates from log output
Sascha edited this page Jul 10, 2022
·
6 revisions
-
Install the library via GitHub and prepare the example apps
-
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
-
Start a custom cleaning from mobile app
-
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
- Repeat step 3 for more custom areas
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
Table of contents