constlawn=Lawn.schedule(your_script);lawn.on('change',(evt)=>{console.log(evt.mower);// you can get curent positionconsole.log(evt.mower.getPosition());console.log(evt.data);});lawn.on('warn',(evt)=>{console.log(evt.warning);console.log(evt.mower);});lawn.run();