richierockskool / homebridge-inkbird-wifi-gateway

homebridge Inkbird wifi gateway
https://github.com/richierockskool/homebridge-inkbird-wifi-gateway
Apache License 2.0
7 stars 6 forks source link

Plugin not installing #8

Open Gooliga opened 1 year ago

Gooliga commented 1 year ago

While installing following NPM error is produced- npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -2 npm ERR! enoent An unknown git error occurred npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /home/homebridge/.npm/_logs/2022-07-21T13_00_26_460Z-debug-0.log

Operation failed. Please review log for details.

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

richierockskool commented 1 year ago

"platforms": [ { "platform" : "HomebridgeInkbirdWifiGateway", "plugin_map" : { "plugin_name": "homebridge-inkbird-wifi-gateway", "index": 0 }, "name" : "Homebridge Inkbird Wifi Gateway Platform", "model" : "IBS-M1S", "mac_address" : "e8:db:84:b6:9c:e6", "update_interval" : 600, "storage" : "filesystem", "loglevel" : 3 } ]

richierockskool commented 1 year ago

We are looking for help to resolve this.

Gooliga commented 1 year ago

Hi, still same issue - 1) Added required lines to config file - "platforms": [ { "platform": "HomebridgeInkbirdWifiGateway", "plugin_map": { "plugin_name": "homebridge-inkbird-wifi-gateway", "index": 0 }, "name": "Homebridge Inkbird Wifi Gateway Platform", "model": "IBS-M1S", "mac_address": "e8:db:84:ba:27:33", "update_interval": 600, "storage": "filesystem", "loglevel": 3 },

2) After updating config file, quick restart on Homebridge 3) Try to install via Homebridge web -> plugins page Following error is generated - USER: homebridge DIR: /usr CMD: sudo -E -n npm install -g homebridge-inkbird-wifi-gateway@1.0.2

npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -2 npm ERR! enoent An unknown git error occurred npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /home/homebridge/.npm/_logs/2022-07-21T19_01_55_466Z-debug-0.log

Operation failed. Please review log for details.

richierockskool commented 1 year ago

We have not been able to figure out why Homebridge can not ind the plugin. Stay tuned.

RegisCorbet commented 1 year ago

Exact same issue here

richierockskool commented 1 year ago

We need someone from GitHub to review and let us know which piece of the puzzle we are missing.

RegisCorbet commented 1 year ago

No news? tried to install the plugin once again, and nothing new: Logs from homebidge:

[1/9/2023, 8:12:34 AM] ==================== [1/9/2023, 8:12:34 AM] ERROR LOADING PLUGIN homebridge-inkbird-wifi-gateway: [1/9/2023, 8:12:35 AM] Error: Cannot find module '/volume1/homebridge/node_modules/homebridge-inkbird-wifi-gateway/src/index.js' Require stack:

richierockskool commented 1 year ago

I need another pair of eyes on the coding, I have asked for help, no one is assisting

RegisCorbet commented 1 year ago

Too bad, because this plugin would be useful for many people as there is obviously no alternative. Thank you for your answer.

cjhdc commented 1 year ago

Install succeeded for me:

npm install -g https://github.com/dwimberger/homebridge-inkbird

jlborggreve commented 1 year ago

Not working! Really looking forward to this being solved

sebaslag commented 1 year ago

No news? tried to install the plugin once again, and nothing new: Logs from homebidge:

[1/9/2023, 8:12:34 AM] ==================== [1/9/2023, 8:12:34 AM] ERROR LOADING PLUGIN homebridge-inkbird-wifi-gateway: [1/9/2023, 8:12:35 AM] Error: Cannot find module '/volume1/homebridge/node_modules/homebridge-inkbird-wifi-gateway/src/index.js' Require stack:

  • /volume1/homebridge/node_modules/homebridge/lib/plugin.js
  • /volume1/homebridge/node_modules/homebridge/lib/pluginManager.js
  • /volume1/homebridge/node_modules/homebridge/lib/server.js
  • /volume1/homebridge/node_modules/homebridge/lib/cli.js
  • /volume1/homebridge/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 Plugin.load (/volume1/homebridge/node_modules/homebridge/src/plugin.ts:227:93) at PluginManager.initializeInstalledPlugins (/volume1/homebridge/node_modules/homebridge/src/pluginManager.ts:141:22) at Server.start (/volume1/homebridge/node_modules/homebridge/src/server.ts:173:30) [1/9/2023, 8:12:35 AM] ====================

Same problem here

sebaslag commented 1 year ago

Error changed:

npm ERR! code ENOENT npm ERR! path /usr/lib/node_modules/homebridge-inkbird-wifi-gateway/node_modules/homebridge-inkbird-wifi-gateway npm ERR! enoent ENOENT: Cannot cd into '/usr/lib/node_modules/homebridge-inkbird-wifi-gateway/node_modules/homebridge-inkbird-wifi-gateway' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

richierockskool commented 1 year ago

We are getting closer to solve this mystery! hang tight!

RegisCorbet commented 1 year ago

Really!

richierockskool commented 1 year ago

I hope so, we have homebridge looking at it.

It still has the same errors if you install it globally though

sebaslag commented 1 year ago

No news?

richierockskool commented 1 year ago

It's getting closer, it now installs without errors [but is not doing anything?], the Wifi Gateway is not showing up in the accessories on Homebridge or HomeKit.

richierockskool commented 1 year ago

Starting a new Issue, please follow

Inkbird Wifi Gateway is not showing up in the accessories on Homebridge or HomeKit

sebaslag commented 1 year ago

I got the same error: CMD: sudo -E -n npm install -g homebridge-inkbird-wifi-gateway@1.0.7

npm ERR! code ENOENT npm ERR! path /usr/lib/node_modules/homebridge-inkbird-wifi-gateway/node_modules/homebridge-inkbird-wifi-gateway npm ERR! enoent ENOENT: Cannot cd into '/usr/lib/node_modules/homebridge-inkbird-wifi-gateway/node_modules/homebridge-inkbird-wifi-gateway' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

RegisCorbet commented 11 months ago

Hi, it looks like you're working hard on the project, but I don't see a new version of the installation after June 18th in the HomeBridge installation console. Is this normal? Thanks your work.