koalazak / rest980

REST interface to control your iRobot Roomba 980 via local server on your lan.
MIT License
293 stars 62 forks source link

Added support for FW 3 and Braava robots. #46

Open peci1 opened 4 years ago

peci1 commented 4 years ago

Added map support for firmware version 3 and Braava m6 robots.

Depends on https://github.com/koalazak/dorita980/pull/103 .

The change in bin/www was needed on my computer to force the server to listen on IPv4 addresses, otherwise it only listened on IPv6. That might be one of the causes for https://github.com/koalazak/rest980/issues/44 .

mike9011 commented 4 years ago

My map isn't working atm with my Braava 6, probably since the coordinates are in; http://192.168.178.3:2000/api/local/info/state "pose": { "theta": 0, "point": { "x": 0, "y": 0 }

When i check the map.js, i see he requests the coordinates from a different endpoint; $.get('/api/local/info/mission', function (data) { The 'mission' endpoint isn't working with my Braava M6.

Thanks! Michael

peci1 commented 4 years ago

For me, the mission endpoint only works in case the robot is actually cleaning. Did you try that?

mike9011 commented 4 years ago

Yes I've tried that.. i will try it again tomorrow and let you know.

Thanks!

mike9011 commented 4 years ago

Tried it again, unfortunately im keep getting a timeout, even when it's cleaning.

peci1 commented 4 years ago

@mike9011 Do you also run dorita with https://github.com/koalazak/dorita980/pull/103 ?

mike9011 commented 4 years ago

Ah I have missed that one! Unfortunately I'm running rest980 in docker so I cannot test this PR separate without rebuilding the image myself.

peci1 commented 4 years ago

Well, without that change, this PR won't work. You'll have to find a way. You can create a docker image off of an existing one, can't you?

sohsatoh commented 4 years ago

I have confirmed the mission endpoint is working (only while the braava is cleaning) with koalazak/dorita980#103.

Update: The endpoint is sometimes working and sometimes not...