Skip to content

CustomArea

Sascha edited this page Sep 5, 2021 · 17 revisions

Usage

Shortcut commands

const boundaryCoordinates = "-3975,2280,-1930,4575"; // Example values
const numberOfCleanings = 1;
vacbot.run("CustomArea", "start", boundaryCoordinates, numberOfCleanings);
vacbot.customArea(boundaryCoordinates, numberOfCleanings); // version >= 0.6.2

Retrieve coordinates from log output

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

  2. Start the app for retrieving map related info:

node ./mapInfos.js | grep 'Last used area values'
  1. Start a custom cleaning from mobile app

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

LastUsedAreaValues: -4498.000000,-1935.000000,-2814.000000,-3412.000000
  1. Repeat step 3 for more custom areas

Full log output for map related information

node ./mapInfos.js

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

Clone this wiki locally