Comments (17)
How do you run your homebridge instance? What’s the OS/platform?
from homebridge-automation-chromecast.
Welll, i didn't think you would answer today, of all days. I run it on a raspberry pi through docker (alpine).
from homebridge-automation-chromecast.
Docker is not currently supported. This plugins uses mDNS/Bonjour to detect the Chromecast device. mDNS requires multicast support. I suspect a different code is required for running into docker. I would suggest you run it directly on the Raspberry host. There's no benefit in running it into Docker.
from homebridge-automation-chromecast.
@zabaya what plugins do you have installed on your homebridge instance? I'm looking for clues on what code is required.
from homebridge-automation-chromecast.
Quite some actually, but they mostly connect to the api from the original webapps.
Homebridge Tuya Web
Homebridge Broadlink Rm Tv
Homebridge Config UI X
Homebridge Ewelink Max
Homebridge Away Mode
Homebridge Alexa
Homebridge Automation Switches
Homebridge Cmdswitch2
Homebridge Dacp
I also tried reinstalling homebridge in a clean install of buster without any other plugins but now i get different errors.
npm i -g homebridge-automation-chromecast --unsafeperm
> [email protected] install /usr/local/lib/node_modules/homebridge-automation-chromecast/node_modules/mdns
> node-gyp rebuild
make: Entering directory '/usr/local/lib/node_modules/homebridge-automation-chromecast/node_modules/mdns/build'
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
In file included from ../src/dns_sd.cpp:1:
../src/mdns.hpp:32:10: fatal error: dns_sd.h: No such file or directory
#include <dns_sd.h>
^~~~~~~~~~
compilation terminated.
make: *** [dns_sd_bindings.target.mk:174: Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-automation-chromecast/node_modules/mdns/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.75-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-automation-chromecast/node_modules/mdns
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-01-03T14_02_00_955Z-debug.log
from homebridge-automation-chromecast.
@zabaya what plugins do you have installed on your homebridge instance? I'm looking for clues on what code is required.
This could help though I am not sure. I have the same issue with mdns. Running on Synology Docker.
https://github.com/oznu/mdns-resolver
from homebridge-automation-chromecast.
Same issue here. Also running homebridge in docker. I've already tried that:
moby/moby#32106
from homebridge-automation-chromecast.
Has anyone managed to run any other bonjour/mdns plugins on docker? So I can have a look on how they've solved this issue as I can't reproduce at the mo :|
from homebridge-automation-chromecast.
Well,
I tried to install this plugin directly to the raspian homebridge but the result was the same. Installation was failure.
sudo npm i -g homebridge-control-chromecast
Node.js: v12.16.1
Npm: v6.14.3
1893 silly install [email protected]
1894 info lifecycle [email protected]~install: [email protected]
1895 silly install [email protected]
1896 info lifecycle [email protected]~install: [email protected]
1897 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
1898 verbose lifecycle [email protected]~install: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/lib/node_modules/homebridge-automation-chromecast/node_modules/mdns/node_modules/.bin:/usr/lib/node_modules/homebridge-automation-chromecast/node_modules/.bin:/usr/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
1899 verbose lifecycle [email protected]~install: CWD: /usr/lib/node_modules/homebridge-automation-chromecast/node_modules/mdns
1900 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp rebuild' ]
1901 silly lifecycle [email protected]~install: Returned: code: 1 signal: null
1902 info lifecycle [email protected]~install: Failed to exec install script
1903 timing action:install Completed in 1507ms
1904 verbose unlock done using /home/homebridge/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
1905 timing stage:rollbackFailedOptional Completed in 467ms
1906 timing stage:runTopLevelLifecycles Completed in 13028ms
1907 verbose stack Error: [email protected] install: `node-gyp rebuild`
1907 verbose stack Exit status 1
1907 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
1907 verbose stack at EventEmitter.emit (events.js:311:20)
1907 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
1907 verbose stack at ChildProcess.emit (events.js:311:20)
1907 verbose stack at maybeClose (internal/child_process.js:1021:16)
1907 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
1908 verbose pkgid [email protected]
1909 verbose cwd /usr/lib
1910 verbose Linux 4.19.97-v7l+
1911 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "homebridge-automation-chromecast@latest"
1912 verbose node v12.16.1
1913 verbose npm v6.14.3
1914 error code ELIFECYCLE
1915 error errno 1
1916 error [email protected] install: `node-gyp rebuild`
1916 error Exit status 1
1917 error Failed at the [email protected] install script.
1917 error This is probably not a problem with npm. There is likely additional logging output above.
1918 verbose exit [ 1, true ]
Btw, I've run this command to install libdnssd. It didn't help.
sudo apt-get install libavahi-compat-libdnssd-dev
trying to install mdns package was also failure.
sudo npm install -g mdns
from homebridge-automation-chromecast.
I've reinstalled homebridge without docker and it works fine. So for me this issue is closed.
from homebridge-automation-chromecast.
Brilliant. Docker is a known issue
from homebridge-automation-chromecast.
I experienced the same issue as @Salvora when attempting to install directly on Raspbian on a Raspberry Pi. Is there any workaround for running this on a Pi?
from homebridge-automation-chromecast.
I experienced the same issue as @Salvora when attempting to install directly on Raspbian on a Raspberry Pi. Is there any workaround for running this on a Pi?
What command are you using to install the plugin?
from homebridge-automation-chromecast.
I ran sudo -E -n npm install homebridge-automation-chromecast@latest
from homebridge-automation-chromecast.
I ran
sudo -E -n npm install homebridge-automation-chromecast@latest
Try sudo -E -n npm install https://github.com/paolotremadio/homebridge-automation-chromecast
I’ve made some changes pending release. It should help with your issue. Let me know if it works.
from homebridge-automation-chromecast.
That just worked for me. Thank you!
from homebridge-automation-chromecast.
That just worked for me. Thank you!
Perfect. I will publish it 😉
from homebridge-automation-chromecast.
Related Issues (17)
- Loading issue and request HOT 3
- Chromecast is always on HOT 1
- Problem with IP-address resolving HOT 22
- Homebridge crashing HOT 1
- Impossible to install HOT 8
- TypeError: Cannot read property 'toLowerCase' of undefined HOT 1
- Homebridge crash HOT 2
- No slider for volume & disable motion sensor HOT 3
- Feature request: please support Chromecast IP and port configuration HOT 1
- Installing fails HOT 4
- Does not work at all HOT 1
- Fail to load plugin. `SyntaxError: Unexpected token )` HOT 2
- Should playing stream to ChromecastAudio turn the Homebridge switch "On"? HOT 6
- unable to load the plugin HOT 6
- Audio only
- Homebridge crashes HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-automation-chromecast.