eu-evops / homebridge-hikvision

28 stars 21 forks source link

issue with installing hap-nodejs #7

Open jamesngob opened 3 years ago

jamesngob commented 3 years ago

Hey everyone So I was able to setup the Homebridge server using the Qnap Docker. All is good I want to add HIKVISION NVR so I followed the instruction in the homebridge hikvision setting and homebridge camera ffmpeg I also installed the hap-nodejs using this command npm install -g hap-nodejs

Restart the homebridge, it said it could not find the module hap-nodejs (But I already did install hap-nodejs before the restart) Anyway, I ignore that message and went ahead and config the HIKVISION module. Restart the homebridge and it goes into the start-restart loop without exiting. I have to shut it down using the docker interface. The error was the "...hikvision module was not registered with any plugins." I have a feeling that this error somehow related to the fact that the hap-nodejs was missing earlier... But I could not figure out how to fix this problem

Am I missing anything in the process? All ideas are welcome and appreciated Cheers

sponte commented 3 years ago

Hi, firstly apologies for not responding earlier, but all github emails were going into my spam folder :(

Secondly, can you post your config.json (remove your credentials first :)) and docker logs?

jamesngob commented 3 years ago

Hi Sponte, So this is my sanitized config.json And the problem are:

sponte commented 3 years ago

Your config does not configure HikVision platform, only Camera FFmpeg. You need something like this to use HikVision:

{
  "platforms": [
    {
      "platform": "Hikvision",
      "host": "nvr-host",
      "port": 443,
      "username": "admin",
      "password": "very-secure-password"
    }
  ]
}