Page 1 of 1

How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 6:31 am
by thedon
I can't figure out to configure this.... The plugin option is just disable and reload.

Thanks

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 6:32 am
by FlyingDiver
You need to create a device to represent the Harmony Hub. You'll need to know the IP address of the Hub to do that.

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 7:13 am
by thedon
I'm not getting the option to create a device....

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 7:17 am
by FlyingDiver
Restart the plugin and then post that section of the event log.

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 3:12 pm
by thedon
Aug 18, 2017, 5:11:50 PM
Reloading plugin "Harmony Hub 7.1.2"
Starting plugin "Harmony Hub 7.1.2" (pid 208)
Harmony Hub Error Error in plugin execution InitializeMain:

Traceback (most recent call last):
File "plugin.py", line 9, in <module>
ImportError: No module named sleekxmpp

Stopping plugin "Harmony Hub 7.1.2" (pid 208)
Stopped plugin "Harmony Hub 7.1.2"

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 3:33 pm
by FlyingDiver
You need to install sleekxmpp. Read the ReadMe file.

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 3:47 pm
by thedon
Oh this might be a little advanced for me

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 4:16 pm
by jay (support)
FlyingDiver wrote:
You need to install sleekxmpp. Read the ReadMe file.


Out of curiosity, why don't you include it? It looks to be pure python and is licensed MIT so those shouldn't be an issue...

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 4:18 pm
by FlyingDiver
jay (support) wrote:
FlyingDiver wrote:
You need to install sleekxmpp. Read the ReadMe file.


Out of curiosity, why don't you include it? It looks to be pure python and is licensed MIT so those shouldn't be an issue...


Dunno. Maybe I should. Running a pip command line didn't seem to be all that big a deal. Maybe I'm wrong.

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 5:08 pm
by jay (support)
FlyingDiver wrote:
jay (support) wrote:
FlyingDiver wrote:
You need to install sleekxmpp. Read the ReadMe file.


Out of curiosity, why don't you include it? It looks to be pure python and is licensed MIT so those shouldn't be an issue...


Dunno. Maybe I should. Running a pip command line didn't seem to be all that big a deal. Maybe I'm wrong.


Well, remember, pip may not (probably not?) be installed. So then you have to install pip, then install sleekxmpp, etc. I really wish Apple installed pip - it would make things somewhat more predictable. For instance, consider the following AppleScript:

Code: Select all
do shell script "sudo /usr/local/bin/pip install sleekxmpp" with administrator privileges


That works nicely, and prompts the user for the admin password (I'm pretty sure this is how PyCharm installs packages). That script presupposes that pip is installed, but a more complex script could detect if it was, and if not it could install pip first, then install the module.

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 6:04 pm
by FlyingDiver
jay (support) wrote:

Well, remember, pip may not (probably not?) be installed. So then you have to install pip, then install sleekxmpp, etc. I really wish Apple installed pip - it would make things somewhat more predictable. For instance, consider the following AppleScript:

Code: Select all
do shell script "sudo /usr/local/bin/pip install sleekxmpp" with administrator privileges


That works nicely, and prompts the user for the admin password (I'm pretty sure this is how PyCharm installs packages). That script presupposes that pip is installed, but a more complex script could detect if it was, and if not it could install pip first, then install the module.


Is that really any easier than cutting and pasting a command into Terminal? The ReadMe says:

Use pip to install sleekxmpp:

Code: Select all
sudo pip install sleekxmpp
If you get an error not finding the pip command, do:

Code: Select all
sudo easy_install pip


Now, maybe I should just include the package. I really don't think this is all that complicated. But I guess you know the user base better than I do.

Re: How to configure Harmony Hub Plugin

PostPosted: Fri Aug 18, 2017 6:51 pm
by Different Computers
Just to give a bit of perspective as someone who is barely comfortable on the command line:

I can easily understand how someone who has lived in the Mac ecosystem for their entire life would be turned off by having to fire up the terminal. I've learned how to get through most hitches the hard way, and it has been very frustrating--quite similar to the experience I've had with trying to run Linux, but just barely enough better for me to have persevered with the former and not with the latter.

I've got just enough skill to realize that when
Code: Select all
$command
doesn't run, maybe I should try
Code: Select all
$sudo command
before I ask how to fix the problem. But I'm by no means someone who understands the response that comes back when I try to install pillow with sudo and get a paragraph telling me maybe I should do it some other way.

Having all appropriately licensed dependencies for a plugin (not just HH, any plugin) install or check for installation when you run the plugin would be super awesome. And would go a long way toward making Indigo more accessible for more people.

Re: How to configure Harmony Hub Plugin

PostPosted: Sat Aug 19, 2017 6:57 pm
by thedon
Received this error

Re: How to configure Harmony Hub Plugin

PostPosted: Sat Aug 19, 2017 7:04 pm
by FlyingDiver
Upgrade to version 7.2.0 of the plugin. I added sleekxmpp to the plugin bundle.

Re: How to configure Harmony Hub Plugin

PostPosted: Sat Aug 19, 2017 8:17 pm
by thedon
THANKS that worked