mlamoure / Alfred-Indigo-Workflow

An Alfred workflow to control your Indigo devices, actions, variables
4 stars 1 forks source link

is there a way to support password-protected indigo servers? #2

Open yamanote1138 opened 11 years ago

yamanote1138 commented 11 years ago

I tried with a url like this: http://username:password@exampledomain.com:1234 (obviously not my real server, port, user and pass) no luck so far... are user/pass supported at all?

mlamoure commented 11 years ago

Yep, I had one user report that it was working fine. I personally do not password-protect so I admit there could be bugs.

The best way to get it working is to edit the config file to enter your proper indigo information. Head to your workflow directory and edit indigo.config. You should not embed your login and password into the URL, instead provide them in the separate variables I listed.

I may modify this behavior in the future to support what you tried to do with embedding the L/P in the URL.

Let me know if it works, feel free to post here as well: http://www.alfredforum.com/topic/2351-indigo-home-automation-workflow/

yamanote1138 commented 11 years ago

Thanks for the quick reply! I tried your suggestion of manually editing the config file, but still was unable to connect. I can see the access attempts in the logs on my indigo server, so I know the server name is correct and that no ports are blocked. I also checked out the workflow logs and it looks like my password is getting truncated. I'm pretty sure it is because my password contains special characters, specifically a '$'. I have forked your repo and if I can solve the problem, I will submit a pull request :)

yamanote1138 commented 11 years ago

just a quick update: I changed my indigo password to only contain alphanumeric characters and that resolved the issue. That will get me by for now, but may be something you might want to look into in the future.