ebaauw / homebridge-nb

Homebridge plugin for Nuki Bridge
Apache License 2.0
51 stars 3 forks source link

NB CLI Command Fail #112

Closed cerahmed closed 1 year ago

cerahmed commented 1 year ago

Hi there,

I'm trying to use the cli utility to get some information about the connected Nuki Bridge. Assuming that I don't know anything about the Nuki bridge (IP, port, etc..), I tried to first run nb info, which failed with the following error: nb: fatal: Missing host. Set NB_HOST or specify -H.

So I assumed I might have to supply the command with some more information, so I ran nb info -h to get the command's required information, however I still get the same error when adding the help flag: nb: fatal: Missing host. Set NB_HOST or specify -H.

Am I missing something?

ebaauw commented 1 year ago

Run nb -h to see the generic options for nb, like -H. Use nb discover to find the Nuki bridge.

cerahmed commented 1 year ago

Indeed, nb discover works. However what I'm after is get information about the Bridge (token to be specific). I tried nb info with and without the host ip and it gives the same error. Then tried nb info -h for useful information on how to use the command and it gave the same error mentioned above.

Appreciate your help.

cerahmed commented 1 year ago

Ok nevermind. After some trials it seems that I have to do the following:

1) Run nb discover to get the bridge IP Address. 2) Run nb -H <IP_ADDRESS> auth to get the token. 3) Perform nb -H <IP_ADDRESS> -T <Token> info to get bridge info.