BlaT2512 / homebridge-cast

Control volume and media streaming status of Google Cast devices with Homebridge, and use iOS remote with Android/Google TVs
https://www.npmjs.com/package/homebridge-cast
Apache License 2.0
15 stars 1 forks source link

Supporting Node.js Version v20.10.0 #3

Open lirbar opened 11 months ago

lirbar commented 11 months ago

When using Node.js Version v20.10.0 the plugin doesn't load and the following error is received.

ERROR LOADING PLUGIN homebridge-cast:
Error: The module '/var/lib/homebridge/node_modules/homebridge-cast/node_modules/mdns/build/Release/dns_sd_bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 108. This version of Node.js requires
NODE_MODULE_VERSION 115. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1473:18)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/var/lib/homebridge/node_modules/homebridge-cast/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1023:12)

P.S. is the following note showing in the end of the readme still planned ? "A custom settings UI for the Homebridge web interface will be coming soon to automatically configure TV accessories when added"

BlaT2512 commented 10 months ago

Apologies about this, will push update soon with fix. For now you can try rebuilding yourself with nom install as it suggests through command line.

I haven't made much progress with the custom settings UI but definitely really want to get it working to make setup process very simple. Feel free to contribute if you want, I have not made a plugin before with a custom UI.

lirbar commented 10 months ago

Apologies about this, will push update soon with fix. For now you can try rebuilding yourself with nom install as it suggests through command line.

I haven't made much progress with the custom settings UI but definitely really want to get it working to make setup process very simple. Feel free to contribute if you want, I have not made a plugin before with a custom UI.

Thank you! Hope you will find time for the custom UI (I don't have any experience with coding plugins) and fixing the Raspberry Pi issue/s/. I use Raspberry Pi 5 (I don't use homebridge elsewhere), so I can test if you need.