You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m not able to run the example.js.
When I made the first request, it prints out this without any notifications in Google Home.
{ text: 'Hello Google Home' }
Device "Google-Home-3e482a7482fb715cf1cc578a08278d10" at 192.168.1.88:8009
Then, subsequent requests will get this error. I made sure I have the latest version of nodejs.
{ text: 'Hello Google Home' }
TypeError: Cannot read property 'fd' of null
at Browser.start (/home/pi/google-home-notifier/node_modules/mdns/lib/mdns_service.js:32:35)
at Object.notify (/home/pi/google-home-notifier/google-home-notifier.js:23:13)
at /home/pi/google-home-notifier/example.js:20:16
at Layer.handle [as handle_request] (/home/pi/google-home-notifier/node_modules/express/lib/router/layer.js:95:5)
at next (/home/pi/google-home-notifier/node_modules/express/lib/router/route.js:137:13)
at /home/pi/google-home-notifier/node_modules/body-parser/lib/read.js:130:5
at invokeCallback (/home/pi/google-home-notifier/node_modules/raw-body/index.js:262:16)
at done (/home/pi/google-home-notifier/node_modules/raw-body/index.js:251:7)
at IncomingMessage.onEnd (/home/pi/google-home-notifier/node_modules/raw-body/index.js:307:7)
at emitNone (events.js:105:13)
The text was updated successfully, but these errors were encountered:
If service.name('Google-Home-***') doesn't contain device(Google Home), browser is stopped.
Next call of browser.start() will throw TypeError: Cannot read property 'fd' of null.
if (!deviceAddress){
browser.start();
browser.on('serviceUp', function(service) {
console.log('Device "%s" at %s:%d', service.name, service.addresses[0], service.port);
if (service.name.includes(device.replace(' ', '-'))){
deviceAddress = service.addresses[0];
getSpeechUrl(message, deviceAddress, function(res) {
callback(res);
});
}
browser.stop();
I’m not able to run the example.js.
When I made the first request, it prints out this without any notifications in Google Home.
{ text: 'Hello Google Home' }
Device "Google-Home-3e482a7482fb715cf1cc578a08278d10" at 192.168.1.88:8009
Then, subsequent requests will get this error. I made sure I have the latest version of nodejs.
{ text: 'Hello Google Home' }
TypeError: Cannot read property 'fd' of null
at Browser.start (/home/pi/google-home-notifier/node_modules/mdns/lib/mdns_service.js:32:35)
at Object.notify (/home/pi/google-home-notifier/google-home-notifier.js:23:13)
at /home/pi/google-home-notifier/example.js:20:16
at Layer.handle [as handle_request] (/home/pi/google-home-notifier/node_modules/express/lib/router/layer.js:95:5)
at next (/home/pi/google-home-notifier/node_modules/express/lib/router/route.js:137:13)
at /home/pi/google-home-notifier/node_modules/body-parser/lib/read.js:130:5
at invokeCallback (/home/pi/google-home-notifier/node_modules/raw-body/index.js:262:16)
at done (/home/pi/google-home-notifier/node_modules/raw-body/index.js:251:7)
at IncomingMessage.onEnd (/home/pi/google-home-notifier/node_modules/raw-body/index.js:307:7)
at emitNone (events.js:105:13)
The text was updated successfully, but these errors were encountered: