ebaauw / homebridge-ws

Homebridege plugin for virtual weather station
Apache License 2.0
108 stars 4 forks source link

Plugin showing 0ºC #43

Closed FranciRoosters closed 2 years ago

FranciRoosters commented 2 years ago

Hello, today I had to reinstall the plugin due to a power outage and when I did and re-enabled all my related automations, it showed 0 degrees Celsius on my Home app homepage. It still does. Do I have to wait for the API key to do its work? Why can’t I see the correct number of degrees? Thank you.

ebaauw commented 2 years ago

Please attach a debug log file, see https://github.com/ebaauw/homebridge-hue/wiki/FAQ#homebridge

FranciRoosters commented 2 years ago

USER: pi DIR: /usr/local CMD: sudo -E -n pm install -g @switchb ot/homebridge-switchbot@latest pm WARN EBADENGINE Unsupported engine { pm WARN EBADENGINE package: "@switch bot/homebridge-switchbot@1.3.0 pm WARN EBADENGINE required: { homeb ridge: ^1.3.8' , node: '^14.18.1 ^16 . 13.0 } pm WARN EBADENGINE current: { node: 'V14.16.0 npm: nom WARN EBADENGINE '7.6.3'

Don’t mind the plugin name. I get the same error with yours.

ebaauw commented 2 years ago

EBADENGINE is a warning by npm that you're running a version of NodeJS (v14.16.0, by the looks of it), that's not supported by the package you're installing. It's just a warning, though, the package would still install. Why aren't you using the latest LTS version (v16.13.1) of NodeJS?

FranciRoosters commented 2 years ago

Honestly, because it’s confusing. First off, I run HB on Raspbian (Raspberry PI 4) but I own Macs, so I’m not sure which command to run going by HB’s dev. See here: https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js Additionally, I’m afraid to lose part of of my HB setup. The HomeBridge dev himself says that’s “not a risk-free exercise”. And finally, anytime I’ve restarted my Raspberry server, my HomeKit setup would go to a previous state without some plugins I have installed later. And if I understood correctly, restarting the server after a new node is required.

Now, if you tell me that the plugins will still work even if I don’t necessarily update the node, I’ll think about think when .14 will stop receiving support before April 2023.

Thank you for your support.

On 3 Dec 2021, at 17:38, Erik Baauw @.***> wrote:  EBADENGINE is a warning by npm that you're running a version of NodeJS (v14.16.0, by the looks of it), that's not supported by the package you're installing. It's just a warning, though, the package would still install. Why aren't you using the latest LTS version (v16.13.1) of NodeJS?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

ebaauw commented 2 years ago

And finally, anytime I’ve restarted my Raspberry server, my HomeKit setup would go to a previous state without some plugins I have installed later

That sounds like a broken (worn out) µSD card. Somehow it switches to read-only mode (to protect your data?), but Raspberry Pi OS happily continues to write to the file system cache, giving you no clue that something is really badly wrong, until you reboot (and the cache is lost).

FranciRoosters commented 2 years ago

I installed Node.JS to the latest version. Everything went surprisingly smoothly. No resetting HomeKit devices or automations whatsoever. Phew!

Thank you for your support. 🙂

On 3 Dec 2021, at 17:50, Erik Baauw @.***> wrote:

And finally, anytime I’ve restarted my Raspberry server, my HomeKit setup would go to a previous state without some plugins I have installed later

That sounds like a broken µSD card.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ebaauw/homebridge-ws/issues/43#issuecomment-985672448, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATQII4JCRXDAUTTC2JIMBP3UPDYPHANCNFSM5JJY764Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.