kaszito / homebridge-eedomus

eedomus plugin for homebridge
Apache License 2.0
2 stars 6 forks source link

Plugin not load #1

Closed Cavas17 closed 8 years ago

Cavas17 commented 8 years ago

Hi,

I have an issue with this plugin.

capture d ecran 2016-03-17 a 19 53 44

I try to solve it in change '/home/pi/.homebridge/config.json' by the correct path : '/utilisateurs/Florent/.hombridge/config.json' because I work on Mac OS X but it didn't work...

capture d ecran 2016-03-17 a 20 14 04

Anyone have an idee please ? Thanks

PS : I'm a noob and sorry for my broken English, I'm a French user.

kaszito commented 8 years ago

You have to edit my index.js file and change this line (number 5):

eedomus_config = '/home/pi/.homebridge/config.json';

for this one:

eedomus_config = '/utilisateurs/Florent/.hombridge/config.json';

Try and let me know. I made this plugin and tested it only in Raspberry with Raspbian Jessie.

I'm a total n00b with js, so I don't know how can I do this automatically.

Cavas17 commented 8 years ago

Thanks for answer,

I try to change the line 5 by

eedomus_config = '/utilisateurs/Florent/.hombridge/config.json';

But I think there is an error at the word hombridge so I correct it by

eedomus_config = '/utilisateurs/Florent/.homebridge/config.json';

But It didn't work

capture d ecran 2016-03-18 a 17 40 08

However I'm sure this is the correct path. When I do that :

capture d ecran 2016-03-18 a 17 39 30

Finder open this window :

capture d ecran 2016-03-18 a 17 39 36

kaszito commented 8 years ago

What about permissions in config.json?

Your error log seems to be clear: "no such file or directory".

Could you try opening a Terminal in your Mac and typing: "ls -lrt /utilisateurs/Florent/.homebridge/config.json"?

Have you add this part in your config.json?

  "credentials": {
       "ip" : "your_local_eedomus_ip",
       "api_user" : "your_eedomus_api_user",
       "api_secret" : "your_eedomus_api_secret"
   },
Cavas17 commented 8 years ago

Okay I finally understood what's wrong. That was a translation issue. I had to change "utilisateurs" by "users". So the correct path is

/users/Florent/.homebridge/config.json

Sorry and thanks a lot for help.