-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hi all! I'm kind of noob here, but I'll try my best.
I have a raspberrypi. 3b+ with homebridge installed. I've followed afaden guide and successfully installed, but when I select the output device, nothing happens, there's no sound.
In terminal (via ssh on a mac), I've found that when running the node index.js the following thing happen:
$ node index.js
listening on *:3000
bluetooth controller exists
a user connected
switch_output: airplay_192.168.0.25_7000
inputStream FromVoid {
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: null,
pipesCount: 0,
flowing: null,
ended: false,
endEmitted: false,
reading: false,
sync: true,
needReadable: false,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
destroyed: false,
defaultEncoding: 'utf8',
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null },
readable: true,
_events: {},
_eventsCount: 0,
_maxListeners: undefined }
outputStream ToVoid {
_writableState:
WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
bufferedRequest: null,
lastBufferedRequest: null,
pendingcb: 0,
prefinished: false,
errorEmitted: false,
bufferedRequestCount: 0,
corkedRequestsFree:
{ next: null,
entry: null,
finish: [Function: bound onCorkedFinish] } },
writable: true,
_events: {},
_eventsCount: 0,
_maxListeners: undefined }
adding device: 192.168.0.25:7000
switch_output: airplay_192.168.0.25_7000
inputStream FromVoid {
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: null,
pipesCount: 0,
flowing: null,
ended: false,
endEmitted: false,
reading: false,
sync: true,
needReadable: false,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
destroyed: false,
defaultEncoding: 'utf8',
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null },
readable: true,
_events: {},
_eventsCount: 0,
_maxListeners: undefined }
outputStream ToVoid {
_writableState:
WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
bufferedRequest: null,
lastBufferedRequest: null,
pendingcb: 0,
prefinished: false,
errorEmitted: false,
bufferedRequestCount: 0,
corkedRequestsFree:
{ next: null,
entry: null,
finish: [Function: bound onCorkedFinish] } },
writable: true,
_events: {},
_eventsCount: 0,
_maxListeners: undefined }
/home/pi/node_airtunes/lib/rtsp.js:385
this.socket.end(this.makeHead('TEARDOWN', '', di) + '\r\n');
^
TypeError: Cannot read property 'end' of null
at Client.sendNextRequest (/home/pi/node_airtunes/lib/rtsp.js:385:17)
at Client.teardown (/home/pi/node_airtunes/lib/rtsp.js:124:8)
at AirTunesDevice.stop (/home/pi/node_airtunes/lib/device_airtunes.js:121:13)
at cleanupCurrentOutput (/home/pi/babelpod/index.js:151:19)
at Socket. (/home/pi/babelpod/index.js:202:5)
at Socket.emit (events.js:180:13)
at /home/pi/babelpod/node_modules/socket.io/lib/socket.js:528:12
at process._tickCallback (internal/process/next_tick.js:112:11)
This happens everytime I select an Airplay device, I've rebooted, made a clean install, and nothing seems to work.
I know on the guide it Says node version 9.8, and the updated installed on the RPI is the 10.x, which in order to install babelpod I had to downgrade to the 9.8.
Does anyone know what might be wrong?
Thanks in advance,