How to install npm dorita980 on HASOS?

I’m running HAOS on a NUC and trying to install GitHub - koalazak/dorita980: Unofficial iRobot Roomba and Braava (i7/i7+, 980, 960, 900, e5, 690, 675, m6, etc) node.js library (SDK) to control your robot. When I try to run $ npm install dorita980 --save via terminal, it just says bash: command not found

Any ideas?

1 Like

I am having this exact same issue, did you manage to work out how to sort it out?

a year later still no news? wtf

As far as I can tell, the code being used has been deprecated:

root@Regina:/mnt/user/appdata/homeassistant# docker run -it node sh -c "npm install -g dorita980 && get-roomba-password-cloud username password"
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

added 126 packages in 4s

4 packages are looking for funding
  run `npm fund` for details
npm notice 
npm notice New patch version of npm available! 10.2.4 -> 10.2.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5
npm notice Run npm install -g [email protected] to update!
npm notice 
(node:81) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Authentication error. Please check your credentials.
{
  callId: 'dd777f60af2245c287902b25ac43e3d7',
  errorCode: 403042,
  errorDetails: 'invalid loginID or password',
  errorMessage: 'Invalid LoginID',
  apiVersion: 2,
  statusCode: 403,
  statusReason: 'Forbidden',
  time: '2023-12-29T15:29:09.968Z'
}

I am running HomeAssistant version 2023.12.4, and it looks like the code was last updated Feb. 2022:

Weirdly, it claims my login is incorrect, but when I copied and pasted both the username and password into a private browsing window for iRobot, I was able to login successfully.