werthdavid / homebridge-website-to-camera

Homebridge plugin that displays a Website as virtual camera (intended for Google Maps Traffic)
MIT License
54 stars 7 forks source link

Version 2 is missing hap-nodejs #38

Closed palasinio closed 2 years ago

palasinio commented 2 years ago

big thx for this new version. unfortunately it’s missing hap-nodes as a separate installed npm module (additional to the one coming with Homebridge) - which should not be necessary.

[5.12.2021, 22:23:51] [Config-Website-Camera] Initializing config platform...
[5.12.2021, 22:23:51] [Config-Website-Camera] Running in Service Mode
[5.12.2021, 22:23:51] [website-camera] Initializing website-camera platform...
[5.12.2021, 22:23:51] Error: Cannot find module 'hap-nodejs'
Require stack:
- /usr/local/lib/node_modules/homebridge-website-to-camera/CameraAccessory.js
- /usr/local/lib/node_modules/homebridge-website-to-camera/index.js
- /usr/local/lib/node_modules/homebridge/lib/plugin.js
- /usr/local/lib/node_modules/homebridge/lib/pluginManager.js
- /usr/local/lib/node_modules/homebridge/lib/server.js
- /usr/local/lib/node_modules/homebridge/lib/cli.js
- /usr/local/lib/node_modules/homebridge/bin/homebridge
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-website-to-camera/CameraAccessory.js:5:47)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
[5.12.2021, 22:23:51] Got SIGTERM, shutting down Homebridge...

After adding the additional hap-nodejs it will work again. I will try the new live feature next weekend. Can I just use existing cameras or do I have to readd them?

werthdavid commented 2 years ago

Oops, sorry! Please try v2.0.1