skrollme / homebridge-eveatmo

Homebridge plugin which adds a Netatmo weatherstation as HomeKit device and tries to act like Elgato Eve Room/Weather
Apache License 2.0
69 stars 7 forks source link

Homebridge does not start #60

Closed frontendschlampe closed 2 years ago

frontendschlampe commented 2 years ago

Describe the bug restart of Homebridge fails, with deactivated plugin it works without any problems

Version you use

To Reproduce Steps to reproduce the behavior:

  1. Installing Eveatmo v0.6.5
  2. add login data for Netatmo
  3. restart Homebridge
  4. Homebridge tries to restart but break off and tries to restart again, and again, and again …
[37m[20/04/2022, 13:39:15] [39m[31mError: Cannot find module 'googleapis'[39m
[31mRequire stack:[39m
[31m- /usr/local/lib/node_modules/homebridge-eveatmo/node_modules/fakegato-history/lib/googleDrive.js[39m
[31m- /usr/local/lib/node_modules/homebridge-eveatmo/node_modules/fakegato-history/fakegato-storage.js[39m
[31m- /usr/local/lib/node_modules/homebridge-eveatmo/node_modules/fakegato-history/fakegato-history.js[39m
[31m- /usr/local/lib/node_modules/homebridge-eveatmo/accessory/eveatmo-room-accessory.js[39m
[31m- /usr/local/lib/node_modules/homebridge-eveatmo/device/weatherstation-device.js[39m
[31m- /usr/local/lib/node_modules/homebridge-eveatmo/index.js[39m
[31m- /usr/local/lib/node_modules/homebridge/lib/plugin.js[39m
[31m- /usr/local/lib/node_modules/homebridge/lib/pluginManager.js[39m
[31m- /usr/local/lib/node_modules/homebridge/lib/server.js[39m
[31m- /usr/local/lib/node_modules/homebridge/lib/cli.js[39m
[31m- /usr/local/lib/node_modules/homebridge/bin/homebridge[39m
[31m    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)[39m
[31m    at Function.Module._load (node:internal/modules/cjs/loader:778:27)[39m
[31m    at Module.require (node:internal/modules/cjs/loader:1005:19)[39m
[31m    at require (node:internal/modules/cjs/helpers:102:18)[39m
[31m    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-eveatmo/node_modules/fakegato-history/lib/googleDrive.js:7:18)[39m
[31m    at Module._compile (node:internal/modules/cjs/loader:1103:14)[39m
[31m    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)[39m
[31m    at Module.load (node:internal/modules/cjs/loader:981:32)[39m
[31m    at Function.Module._load (node:internal/modules/cjs/loader:822:12)[39m
[31m    at Module.require (node:internal/modules/cjs/loader:1005:19)[39m
[37m[20/04/2022, 13:39:15] [39mGot SIGTERM, shutting down Homebridge...
skrollme commented 2 years ago

Hey @frontendschlampe , from your log I would suggest, that the problem is related to a non-complete install of the plugin. As it states, the "googleapis" package is missing. But to be precise, this is not required directly be homebridge-eveatmo. It is a sub-dependency from the fakegato-history package, which then triggers the error:

/usr/local/lib/node_modules/homebridge-eveatmo/node_modules/**fakegato-history**/lib/googleDrive.js

Could you please check if all of it's dependencies were installed? You should find them in: /usr/local/lib/node_modules/homebridge-eveatmo/node_modules/fakegato-history/node_modules

EDIT: Could also be "next to" the fakegato-package in /usr/local/lib/node_modules/homebridge-eveatmo/node_modules or in your global node_modules directory. Depends on how you installed it

frontendschlampe commented 2 years ago

Thx for the hint. You're right. Reinstall solved the problem. Maybe there was a problem after first install.