During installation of the plugin I get a warning about 2 vulnerability and then when I try and follow the steps on the Roomba I get the following error:
pi@raspberrypi:/usr/lib/node_modules/homebridge-roomba-stv $ sudo npm run getrobotpwd 192.16.xx.xx
> homebridge-roomba-stv@1.2.0 getrobotpwd /usr/lib/node_modules/homebridge-roomba-stv
> cd node_modules/dorita980 && npm install && node ./bin/getpassword.js "192.16.xx.xx"
added 300 packages from 646 contributors and audited 1264 packages in 25.861s
found 2 vulnerabilities (1 low, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
Make sure your robot is on the Home Base and powered on (green lights on). Then press and hold the HOME button on your robot until it plays a series of tones (about 2 seconds). Release the button and your robot will flash WIFI light.
Then press any key here...
events.js:183
throw er; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND 192.16.xx.xx 192.16.xx.xx:8883
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! homebridge-roomba-stv@1.2.0 getrobotpwd: `cd node_modules/dorita980 && npm install && node ./bin/getpassword.js "192.16.xx.xx"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the homebridge-roomba-stv@1.2.0 getrobotpwd script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-01-06T19_08_53_922Z-debug.log
Here's the error log file:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'run',
1 verbose cli 'getrobotpwd',
1 verbose cli '192.16.xx.xx' ]
2 info using npm@6.4.1
3 info using node@v8.15.0
4 verbose run-script [ 'pregetrobotpwd', 'getrobotpwd', 'postgetrobotpwd' ]
5 info lifecycle homebridge-roomba-stv@1.2.0~pregetrobotpwd: homebridge-roomba-stv@1.2.0
6 info lifecycle homebridge-roomba-stv@1.2.0~getrobotpwd: homebridge-roomba-stv@1.2.0
7 verbose lifecycle homebridge-roomba-stv@1.2.0~getrobotpwd: unsafe-perm in lifecycle true
8 verbose lifecycle homebridge-roomba-stv@1.2.0~getrobotpwd: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/lib/node_modules/homebridge-roomba-stv/node_mod$
9 verbose lifecycle homebridge-roomba-stv@1.2.0~getrobotpwd: CWD: /usr/lib/node_modules/homebridge-roomba-stv
10 silly lifecycle homebridge-roomba-stv@1.2.0~getrobotpwd: Args: [ '-c',
10 silly lifecycle 'cd node_modules/dorita980 && npm install && node ./bin/getpassword.js "192.16.xx.xx"' ]
11 silly lifecycle homebridge-roomba-stv@1.2.0~getrobotpwd: Returned: code: 1 signal: null
12 info lifecycle homebridge-roomba-stv@1.2.0~getrobotpwd: Failed to exec getrobotpwd script
13 verbose stack Error: homebridge-roomba-stv@1.2.0 getrobotpwd: `cd node_modules/dorita980 && npm install && node ./bin/getpassword.js "192.16.xx.xx"`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:915:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid homebridge-roomba-stv@1.2.0
15 verbose cwd /usr/lib/node_modules/homebridge-roomba-stv
16 verbose Linux 4.14.79-v7+
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "getrobotpwd" "192.16.xx.xx"
18 verbose node v8.15.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error homebridge-roomba-stv@1.2.0 getrobotpwd: `cd node_modules/dorita980 && npm install && node ./bin/getpassword.js "192.16.xx.xx"`
22 error Exit status 1
23 error Failed at the homebridge-roomba-stv@1.2.0 getrobotpwd script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
My bad.
I didn't understand that I was supposed to find the IP address of the Roomba in the app and use it in place of 192.16.xx.xx in the npm run getrobotpwd 192.16.xx.xx command
During installation of the plugin I get a warning about 2 vulnerability and then when I try and follow the steps on the Roomba I get the following error:
Here's the error log file:
Versions
Raspbian GNU/Linux 9.6
0.4.32
8.15.0
6.4.1
1.2.0