iRoomba iRobot Plugin

Posted on
Wed Aug 04, 2021 3:07 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Hi

Sorry to hear has had slight hiccup.

The limited instructions needed to install paho-mqtt are in the first post in this thread. If you haven’t installed it you should see a big error message.

Check the first post and run the terminal command to install paho-mqtt.

Questions
1. Are you getting any logging/messaging from the plugin?? From Indigos event log. That is where any errors etc should be displayed.
2. May need to turn debug logging on within the plugin config settings to see other messages.


Finally if still issues please feel free to PM me the debug log file as will be quickest way to seeing what is going on.

Glenn


Sent from my iPad using Tapatalk

Posted on
Wed Aug 04, 2021 3:19 pm
Mark offline
User avatar
Posts: 263
Joined: Apr 21, 2005
Location: California

Re: iRoomba iRobot Plugin

Glenn, thank you so much for such a quick reply.

The plug-in is writing to the log. It's definitely indicating the library is missing:

Code: Select all
   iRobot-Roomba Error             Need to install module Mqtt for this plugin to work.  See Forum.


I ran the Terminal code as instructed. I get a missing file error, which is expected since I didn't provide any sort of file for it to install. That's what I'm missing, where to find the mqtt file.

I just tried it again, using Terminal and this command:

Code: Select all
<sudo> pip install paho-mqtt


I get this, from Terminal:

Code: Select all
-bash: sudo: No such file or directory


I didn't point Terminal at any particular directory. Would paho-mqtt be included on a Mac standard OS install, or do I need to download it from somewhere?

Posted on
Wed Aug 04, 2021 3:21 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

iRoomba iRobot Plugin

Just type: (no brackets)

sudo pip install paho-mqtt


Sent from my iPad using Tapatalk

Posted on
Wed Aug 04, 2021 3:22 pm
Mark offline
User avatar
Posts: 263
Joined: Apr 21, 2005
Location: California

Re: iRoomba iRobot Plugin

Shows ya how much I know about Terminal! :lol: Stand by, I'll give it a go...

Posted on
Wed Aug 04, 2021 3:25 pm
Mark offline
User avatar
Posts: 263
Joined: Apr 21, 2005
Location: California

Re: iRoomba iRobot Plugin

Now I get this from Terminal:

Code: Select all
sudo: pip: command not found


Am I missing any punctuation in the sudo command. This is what I tried:

Code: Select all
sudo pip install paho-mqtt

Posted on
Wed Aug 04, 2021 3:27 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

iRoomba iRobot Plugin

Ok
Your python is missing the pip command install

There are a few posts here about how to fix/install.

Could try

sudo easy_install pip


Then the one last post, to install paho-mqtt

https://stackoverflow.com/questions/172 ... os-or-os-x


Sent from my iPad using Tapatalk

Posted on
Wed Aug 04, 2021 3:30 pm
Mark offline
User avatar
Posts: 263
Joined: Apr 21, 2005
Location: California

Re: iRoomba iRobot Plugin

Now this:

Code: Select all
Back:~ mark$ sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')

Posted on
Wed Aug 04, 2021 3:49 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Hi

Could try

sudo easy_install paho-mqtt

But check the linked post as well as I’m running out of ‘live’ time.

Glenn


Sent from my iPad using Tapatalk

Posted on
Wed Aug 04, 2021 3:54 pm
Mark offline
User avatar
Posts: 263
Joined: Apr 21, 2005
Location: California

Re: iRoomba iRobot Plugin

Nope:

Code: Select all
Back:~ mark$ sudo easy_install paho-mqtt
Password:
Searching for paho-mqtt
Reading https://pypi.python.org/simple/paho-mqtt/
Couldn't find index page for 'paho-mqtt' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for paho-mqtt
error: Could not find suitable distribution for Requirement.parse('paho-mqtt')


I've made a mess now. I think I got a pip installed, but it is not compatible with Python 2.7 (I have 2.7.16). Apparently 2.7.18 will work? Uhg. Now I think I have to try to uninstall what I did, and then try to upgrade Python? I know just enough to end up tanking my OS... Or at least my Python... :(

Thanks for you help so far...

Posted on
Wed Aug 04, 2021 3:59 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

iRoomba iRobot Plugin

Mark wrote:
Nope:

Code: Select all
Back:~ mark$ sudo easy_install paho-mqtt
Password:
Searching for paho-mqtt
Reading https://pypi.python.org/simple/paho-mqtt/
Couldn't find index page for 'paho-mqtt' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for paho-mqtt
error: Could not find suitable distribution for Requirement.parse('paho-mqtt')


I've made a mess now. I think I got a pip installed, but it is not compatible with Python 2.7 (I have 2.7.16). Apparently 2.7.18 will work? Uhg. Now I think I have to try to uninstall what I did, and then try to upgrade Python? I know just enough to end up tanking my OS... Or at least my Python... :(

Thanks for you help so far...

Don’t fiddle with you default python install - it will cause major issues for indigo.

Hopefully someone else can take over as need to go offline

But check this forum, for pip install there are a few posts about how to solve.

How to install python modules in Indigo 7
https://r.tapatalk.com/shareLink/topic? ... source=app


Sent from my iPad using Tapatalk

Posted on
Wed Aug 04, 2021 4:37 pm
Mark offline
User avatar
Posts: 263
Joined: Apr 21, 2005
Location: California

Re: iRoomba iRobot Plugin

OK, got a pip to install and then your original Terminal instructions worked, ending in:

Code: Select all
Successfully installed paho-mqtt-1.5.1


Holding breath while I restart everything...

Posted on
Wed Aug 04, 2021 4:40 pm
Mark offline
User avatar
Posts: 263
Joined: Apr 21, 2005
Location: California

Re: iRoomba iRobot Plugin

Before I do, this is what worked on Mac Mojave:

Code: Select all
sudo curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py


and then:

Code: Select all
sudo python2.7 get-pip.py


and then:

Code: Select all
sudo pip install paho-mqtt

Posted on
Wed Aug 04, 2021 4:41 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Well done, you can use terminal after all!


Sent from my iPad using Tapatalk

Posted on
Wed Aug 04, 2021 4:47 pm
Mark offline
User avatar
Posts: 263
Joined: Apr 21, 2005
Location: California

Re: iRoomba iRobot Plugin

Ta da!

Looks like the plug-in loaded with no issues. No errors in log.

All Custom States are filled in now, except: SqFT, X and Y (perhaps because my Roomba is parked in the charger?).

I'll give it a good test and see what happens...

Thanks again for pointing me in the right direction.

Posted on
Wed Aug 04, 2021 4:49 pm
Mark offline
User avatar
Posts: 263
Joined: Apr 21, 2005
Location: California

Re: iRoomba iRobot Plugin

Use Terminal? Well, I can copy and paste! If it wasn't for stackoverflow.com none of my stuff would work!! :lol:

Page 13 of 18 1 ... 10, 11, 12, 13, 14, 15, 16 ... 18

Who is online

Users browsing this forum: No registered users and 2 guests