naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
318 stars 63 forks source link

plugin installed, but homebridge not recognizing it. #3

Closed ikonis closed 7 years ago

ikonis commented 7 years ago

I'm getting the plugin as not registered now, it is probably a stupid problem on my part, but I cannot for the life of me figure it out. Here is the log:

Sep 05 07:48:51 raspberrypi homebridge[2989]: /usr/local/lib/node_modules/homebridge/lib/api.js:64 Sep 05 07:48:51 raspberrypi homebridge[2989]: throw new Error("The requested accessory '" + name + "' was not registered by any plugin."); Sep 05 07:48:51 raspberrypi homebridge[2989]: ^ Sep 05 07:48:51 raspberrypi homebridge[2799]: Error: The requested accessory 'WUWeatherStationExtended' was not registered by any plugin. Sep 05 07:48:51 raspberrypi homebridge[2799]: at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13) Sep 05 07:48:51 raspberrypi homebridge[2799]: at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:254:42) Sep 05 07:48:51 raspberrypi homebridge[2799]: at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:81:38) Sep 05 07:48:51 raspberrypi homebridge[2799]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10) Sep 05 07:48:51 raspberrypi homebridge[2799]: at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) Sep 05 07:48:51 raspberrypi homebridge[2799]: at Module._compile (module.js:571:32) Sep 05 07:48:51 raspberrypi homebridge[2799]: at Object.Module._extensions..js (module.js:580:10) Sep 05 07:48:51 raspberrypi homebridge[2799]: at Module.load (module.js:488:32) Sep 05 07:48:51 raspberrypi homebridge[2799]: at tryModuleLoad (module.js:447:12) Sep 05 07:48:51 raspberrypi homebridge[2799]: at Function.Module._load (module.js:439:3) Sep 05 07:48:51 raspberrypi homebridge[2799]: at Module.runMain (module.js:605:10) Sep 05 07:48:51 raspberrypi homebridge[2799]: at run (bootstrap_node.js:425:7) Sep 05 07:48:51 raspberrypi homebridge[2799]: at startup (bootstrap_node.js:146:9) Sep 05 07:48:51 raspberrypi homebridge[2799]: at bootstrap_node.js:540:3 Sep 05 07:48:51 raspberrypi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE Sep 05 07:48:51 raspberrypi systemd[1]: Unit homebridge.service entered failed state.

and requisite part of the config

{ "accessory": "WUWeatherStationExtended", "name": "Weather Station", "interval": "4", "key": "xxxxxxxxxxxxxxx", "location": "pws:KTXTYLER51", "forecast": "today" }

naofireblade commented 7 years ago

I'm sorry, I made a mistake in the config part of the readme. I already published a new version with the correct readme.

Your config should look like this and must be in the platforms part. The parameters for interval and forecast are optional, you can delete them if you want. With your config you would get the forecast only for today.

Here is an example for your city:

{ "platform": "WeatherStation", "name": "Weather Station", "key": "xxxxxxxxxxxxxxx", "location": "pws:KTXTYLER51" }

Please tell me if it's working for you now.

ikonis commented 7 years ago

Finally had a chance to do the change. Works perfectly. Cheers to an excellent update.

naofireblade commented 7 years ago

Thanks for your feedback.