Closed onkelfarmor closed 4 years ago
@trympet Thanks for your work. I understand that your plugin is not available via npm? Is there a reason for this? npm would be more practical, of course, since it can be installed via config-ui-x, among others.
@onkelfarmor At the moment you have to use terminal and
sudo npm install -g git+https://github.com/trympet/homebridge-volvo.git
At least this was the way I tried.
But then I get this error in the log and homebridge crashed
Jul 07 10:34:20 raspberrypi-3BPlus homebridge[15701]: [2020-7-7 10:34:20] ERROR LOADING PLUGIN homebridge-volvo:
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: [2020-7-7 10:34:21] Error: Cannot find module '/usr/local/lib/node_modules/homebridge-volvo/dist/index.js'
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: Require stack:
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: - /usr/local/lib/node_modules/homebridge/lib/plugin.js
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: - /usr/local/lib/node_modules/homebridge/lib/pluginManager.js
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: - /usr/local/lib/node_modules/homebridge/lib/api.js
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: - /usr/local/lib/node_modules/homebridge/lib/server.js
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: - /usr/local/lib/node_modules/homebridge/lib/cli.js
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: - /usr/local/lib/node_modules/homebridge/bin/homebridge
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Function.Module._load (internal/modules/cjs/loader.js:842:27)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Module.require (internal/modules/cjs/loader.js:1026:19)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at require (internal/modules/cjs/helpers.js:72:18)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Plugin.load (/usr/local/lib/node_modules/homebridge/src/plugin.ts:181:27)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at /usr/local/lib/node_modules/homebridge/src/pluginManager.ts:120:16
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Map.forEach (<anonymous>)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at PluginManager.initializeInstalledPlugins (/usr/local/lib/node_modules/homebridge/src/pluginManager.ts:118:18)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:150:24)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: [2020-7-7 10:34:21] Error loading accessory requested in your config.json at position 3
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: [2020-7-7 10:34:21] Error: The requested accessory 'Volvo' was not registered by any plugin.
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at PluginManager.getPluginForAccessory (/usr/local/lib/node_modules/homebridge/src/pluginManager.ts:198:15)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at /usr/local/lib/node_modules/homebridge/src/server.ts:347:37
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Array.forEach (<anonymous>)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/src/server.ts:330:29)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:156:12)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Module._compile (internal/modules/cjs/loader.js:1138:30)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: at Module.load (internal/modules/cjs/loader.js:986:32)
Jul 07 10:34:21 raspberrypi-3BPlus homebridge[15701]: [2020-7-7 10:34:21] Got SIGTERM, shutting down Homebridge...
I'm using a homebridge-2nd-Instance. I added homebridge-volvo on top of the config.json to load.
},
"plugins": [
"homebridge-volvo"
],
But this is not working, maybe because the plugin was not installed by config-ui-x or npm?
You have a fanbase already @trympet 😉👍 I hope you can help to get your plugin a wider audience. Thanks a lot.
@DJay-X tried the same and got the same error. @trympet we really want to try homebridge-volvo!
Hey guys. I published to npm just now. Will update readme and config example by the end of the day, as well as create a schema for config-ui-x 😎. You can install using: npm install -g homebridge-volvo
. Please keep me posted if any issues arise.
How do I install this in Homebridge?