homebridge-plugins / homebridge-roomba2

Homebridge plugin to connect iRobot Roomba devices with Homebridge/HomeKit.
MIT License
146 stars 17 forks source link

Mission Cleaning Configuration Problem. Can't find 'getlastcommand' file. #140

Open mrfatboy opened 1 year ago

mrfatboy commented 1 year ago

I'm on Windows 10. I have tried both the 1.4 plugin as well as the 1.5 beta 2 plugin. Node 18.

How do I setup the Mission configuration. When I follow the instructions it gives me an error - 'getlastcommand' not found. I went to the folder and it's not there. However, getpassword command is there.

Any help would be appreciated.

Exuviax commented 1 year ago

Can confirm, I'm having the same issue. When I run npm run I get the following output

Lifecycle scripts included in homebridge-roomba2@1.4.0:
  test
    node dist/index.js

available via `npm run-script`:
  build
    tsc
  clean
    rimraf dist
  getrobotpwd
    get-roomba-password
  getpassword
    get-roomba-password
  lint
    eslint src/*.ts
  watch
    tsc --watch
mrfatboy commented 1 year ago

I have not tried it yet but i just noticed the “lastcommand” script is in the src directory of the plug-in. Try navigating there first then running the script.

On a side note, for now at least I stopped using this plugin and setup rest980 (dorita980). In conjunction with the http switch plug-in. I now have clean by room working in Homebridge for my i7+ roomba.

djendacott commented 1 year ago

Same issue here. Anyone found a solution?

mrfatboy commented 1 year ago

Same issue here. Anyone found a solution?

See my solution above. Also try including full path to the lastcommand file

djendacott commented 1 year ago

Same issue here. Anyone found a solution?

See my solution above. Also try including full path to the lastcommand file

Thanks for the reply.

I tried from src however I have no “src” folder included in my homebridge install. I’ve tried with multiple versions of roomba2, and for whatever reason it’s not there.

Can you confirm you have a “src” folder included on your homebridge? (If you still have it)

mrfatboy commented 1 year ago

I’m not using that plugin so I can’t confirm. I only happened to see the lastcommand.ts file in the src directory of this repo. I never used it.

However, the work around would be to install the rest980 repo and use Postman to interact with the API and get the lastcommand. That’s what I did.

djhaley commented 1 year ago

I just ran into the same issue. getlastcommand is available in the beta version. Run the command npm install -g homebridge-roomba2@beta and then you should have access to it.

Nautiluus commented 1 year ago

Is there already a solution ? It doesn't work with the beta version either. Is there any other way to read the maps?