iRoomba iRobot Plugin

User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Post by GlennNZ »

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
User avatar
Mark
Posts: 281
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: iRoomba iRobot Plugin

Post by Mark »

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?
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

iRoomba iRobot Plugin

Post by GlennNZ »

Just type: (no brackets)

sudo pip install paho-mqtt


Sent from my iPad using Tapatalk
User avatar
Mark
Posts: 281
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: iRoomba iRobot Plugin

Post by Mark »

Shows ya how much I know about Terminal! :lol: Stand by, I'll give it a go...
User avatar
Mark
Posts: 281
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: iRoomba iRobot Plugin

Post by Mark »

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
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

iRoomba iRobot Plugin

Post by GlennNZ »

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
User avatar
Mark
Posts: 281
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: iRoomba iRobot Plugin

Post by Mark »

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')
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Post by GlennNZ »

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
User avatar
Mark
Posts: 281
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: iRoomba iRobot Plugin

Post by Mark »

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...
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

iRoomba iRobot Plugin

Post by GlennNZ »

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
User avatar
Mark
Posts: 281
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: iRoomba iRobot Plugin

Post by Mark »

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...
User avatar
Mark
Posts: 281
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: iRoomba iRobot Plugin

Post by Mark »

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
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Post by GlennNZ »

Well done, you can use terminal after all!


Sent from my iPad using Tapatalk
User avatar
Mark
Posts: 281
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: iRoomba iRobot Plugin

Post by Mark »

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.
User avatar
Mark
Posts: 281
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: iRoomba iRobot Plugin

Post by Mark »

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

Return to “iRoomba iRobot Plugin”