Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Unable to set airsonos on iTunes 12.2 running OS X Yosemite 10.10.4 #188

Closed
va3lim opened this issue Jul 5, 2015 · 9 comments
Closed

Unable to set airsonos on iTunes 12.2 running OS X Yosemite 10.10.4 #188

va3lim opened this issue Jul 5, 2015 · 9 comments

Comments

@va3lim
Copy link

va3lim commented Jul 5, 2015

Below is what I did:

a) Prior to running the command "sudo npm install airsonos -g", I downloaded and installed node-v0.12.6.pkg. I verified if it is installed properly.

MacBook-Air-2010:Downloads mlim$ which node
/usr/local/bin/node
MacBook-Air-2010:Downloads mlim$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
MacBook-Air-2010:Downloads mlim$ node -v
v0.12.6
MacBook-Air-2010:Downloads mlim$ node

console.log('hello node');
hello node
undefined

(^C again to quit)

MacBook-Air-2010:Downloads mlim$

b) Now I run the "sudo npm install airsonos -g" command and got some errors:

MacBook-Air-2010:Downloads mlim$ sudo npm install airsonos -g
Password:

npm ERR! git clone --template=/Users/mlim/.npm/_git-remotes/_templates --mirror git://github.com/stephen/node-sonos.git /Users/mlim/.npm/_git-remotes/git-github-com-stephen-node-sonos-git-701294ef: xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "airsonos" "-g"
npm ERR! node v0.12.6
npm ERR! npm v2.11.2
npm ERR! code 1

npm ERR! Command failed: git clone --template=/Users/mlim/.npm/_git-remotes/_templates --mirror git://github.com/stephen/node-sonos.git /Users/mlim/.npm/_git-remotes/git-github-com-stephen-node-sonos-git-701294ef
npm ERR! xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /Users/mlim/Downloads/npm-debug.log

Note: At this point, it opened a window and it seems to be installing something. Then when I tried to run the "airsonos" command, it errors out.

MacBook-Air-2010:Downloads mlim$ airsonos
-bash: airsonos: command not found

@va3lim
Copy link
Author

va3lim commented Jul 5, 2015

c) I tried running the same command again and this time it seems to work (it shows only warning messages).

MacBook-Air-2010:Downloads mlim$ sudo npm install airsonos -g
Password:
npm WARN addRemoteGit Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:751:12)
npm WARN addRemoteGit at ChildProcess.emit (events.js:110:17)
npm WARN addRemoteGit at maybeClose (child_process.js:1015:16)
npm WARN addRemoteGit at Socket. (child_process.js:1183:11)
npm WARN addRemoteGit at Socket.emit (events.js:107:17)
npm WARN addRemoteGit at Pipe.close (net.js:485:12)
npm WARN addRemoteGit git://github.com/stephen/node-sonos.git#stephen-1.0.0 resetting remote /Users/mlim/.npm/_git-remotes/git-github-com-stephen-node-sonos-git-701294ef because of error: { [Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: 'git config --get remote.origin.url' }
npm WARN engine nodetunes@0.1.2: wanted: {"node":"0.10.x"} (current: {"node":"0.12.6","npm":"2.11.2"})

mdns@2.2.2 install /usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns
node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/mlim/.node-gyp/0.12.6"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns/.node-gyp"
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_sock_fd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_register.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_resolve.o
CXX(target) Release/obj.target/dns_sd_bindings/src/mdns_utils.o
CXX(target) Release/obj.target/dns_sd_bindings/src/network_interface.o
CXX(target) Release/obj.target/dns_sd_bindings/src/socket_watcher.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_create.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_set_value.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_get_length.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_buffer_to_object.o
SOLINK_MODULE(target) Release/dns_sd_bindings.node
npm WARN deprecated static-favicon@1.0.2: use serve-favicon module

lame@1.2.2 install /usr/local/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame
node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/mlim/.node-gyp/0.12.6"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame/.node-gyp"
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

deps/mpg123/test.target.mk:148: warning: overriding commands for target Release/test' deps/lame/test.target.mk:156: warning: ignoring old commands for targetRelease/test'
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/VbrTag.o
../deps/lame/libmp3lame/VbrTag.c:430:23: warning: comparison of array 'pTagData->toc' not equal to a null pointer
is always true [-Wtautological-pointer-compare]
if (pTagData->toc != NULL) {
~~~~~~~~~~^~~ ~~~~
1 warning generated.
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/bitstream.o
../deps/lame/libmp3lame/bitstream.c:991:32: warning: unused variable 'rsv' [-Wunused-variable]
RpgStateVar_t const const rsv = &gfc->sv_rpg;
^
../deps/lame/libmp3lame/bitstream.c:992:24: warning: unused variable 'rov' [-Wunused-variable]
RpgResult_t *const rov = &gfc->ov_rpg;
^
../deps/lame/libmp3lame/bitstream.c:990:34: warning: unused variable 'cfg' [-Wunused-variable]
SessionConfig_t const *const cfg = &gfc->cfg;
^
3 warnings generated.
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/encoder.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/fft.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/gain_analysis.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/id3tag.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/lame.o
../deps/lame/libmp3lame/lame.c:628:13: warning: using floating point absolute value function 'fabs' when argument
is of integer type [-Wabsolute-value]
if (EQ(gfp->compression_ratio, 0))
^
../deps/lame/libmp3lame/machine.h:168:12: note: expanded from macro 'EQ'
(fabs(a) > fabs(b))
^
../deps/lame/libmp3lame/lame.c:628:13: note: use function 'abs' instead
../deps/lame/libmp3lame/machine.h:168:12: note: expanded from macro 'EQ'
(fabs(a) > fabs(b))
^
../deps/lame/libmp3lame/lame.c:628:13: warning: using floating point absolute value function 'fabs' when argument
is of integer type [-Wabsolute-value]
if (EQ(gfp->compression_ratio, 0))
^
../deps/lame/libmp3lame/machine.h:170:23: note: expanded from macro 'EQ'
: (fabs((a)-(b)) <= (fabs(b) * 1e-6f)))
^
../deps/lame/libmp3lame/lame.c:628:13: note: use function 'abs' instead
../deps/lame/libmp3lame/machine.h:170:23: note: expanded from macro 'EQ'
: (fabs((a)-(b)) <= (fabs(b) * 1e-6f)))
^
../deps/lame/libmp3lame/lame.c:1596:13: warning: using floating point absolute value function 'fabs' when argument
is of integer type [-Wabsolute-value]
if (NEQ(RadioGain, GAIN_NOT_ENOUGH_SAMPLES)) {
^
../deps/lame/libmp3lame/machine.h:175:20: note: expanded from macro 'NEQ'
#define NEQ(a,b) (!EQ(a,b))
^
../deps/lame/libmp3lame/machine.h:168:12: note: expanded from macro 'EQ'
(fabs(a) > fabs(b))
^
../deps/lame/libmp3lame/lame.c:1596:13: note: use function 'abs' instead
../deps/lame/libmp3lame/machine.h:175:20: note: expanded from macro 'NEQ'
#define NEQ(a,b) (!EQ(a,b))
^
../deps/lame/libmp3lame/machine.h:168:12: note: expanded from macro 'EQ'
(fabs(a) > fabs(b))
^
../deps/lame/libmp3lame/lame.c:1596:13: warning: using floating point absolute value function 'fabs' when argument
is of integer type [-Wabsolute-value]
if (NEQ(RadioGain, GAIN_NOT_ENOUGH_SAMPLES)) {
^
../deps/lame/libmp3lame/machine.h:175:20: note: expanded from macro 'NEQ'
#define NEQ(a,b) (!EQ(a,b))
^
../deps/lame/libmp3lame/machine.h:170:23: note: expanded from macro 'EQ'
: (fabs((a)-(b)) <= (fabs(b) * 1e-6f)))
^
../deps/lame/libmp3lame/lame.c:1596:13: note: use function 'abs' instead
../deps/lame/libmp3lame/machine.h:175:20: note: expanded from macro 'NEQ'
#define NEQ(a,b) (!EQ(a,b))
^
../deps/lame/libmp3lame/machine.h:170:23: note: expanded from macro 'EQ'
: (fabs((a)-(b)) <= (fabs(b) * 1e-6f)))
^
4 warnings generated.
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/newmdct.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/presets.o
../deps/lame/libmp3lame/presets.c:170:5: warning: using floating point absolute value function 'fabs' when
argument is of integer type [-Wabsolute-value]
SET_OPTION(quant_comp, set->quant_comp, -1);
^
../deps/lame/libmp3lame/presets.c:36:16: note: expanded from macro 'SET_OPTION'
else if (!(fabs(lame_get
##opt(gfp) - def) > 0))
^
../deps/lame/libmp3lame/presets.c:170:5: note: use function 'abs' instead
../deps/lame/libmp3lame/presets.c:36:16: note: expanded from macro 'SET_OPTION'
else if (!(fabs(lame_get_##opt(gfp) - def) > 0))
^
../deps/lame/libmp3lame/presets.c:171:5: warning: using floating point absolute value function 'fabs' when
argument is of integer type [-Wabsolute-value]
SET_OPTION(quant_comp_short, set->quant_comp_s, -1);
^
../deps/lame/libmp3lame/presets.c:36:16: note: expanded from macro 'SET_OPTION'
else if (!(fabs(lame_get_##opt(gfp) - def) > 0))
^
../deps/lame/libmp3lame/presets.c:171:5: note: use function 'abs' instead
../deps/lame/libmp3lame/presets.c:36:16: note: expanded from macro 'SET_OPTION'
else if (!(fabs(lame_get_##opt(gfp) - def) > 0))
^
../deps/lame/libmp3lame/presets.c:280:5: warning: using floating point absolute value function 'fabs' when
argument is of integer type [-Wabsolute-value]
SET_OPTION(quant_comp, abr_switch_map[r].quant_comp, -1);
^
../deps/lame/libmp3lame/presets.c:36:16: note: expanded from macro 'SET_OPTION'
else if (!(fabs(lame_get_##opt(gfp) - def) > 0))
^
../deps/lame/libmp3lame/presets.c:280:5: note: use function 'abs' instead
../deps/lame/libmp3lame/presets.c:36:16: note: expanded from macro 'SET_OPTION'
else if (!(fabs(lame_get_##opt(gfp) - def) > 0))
^
../deps/lame/libmp3lame/presets.c:281:5: warning: using floating point absolute value function 'fabs' when
argument is of integer type [-Wabsolute-value]
SET_OPTION(quant_comp_short, abr_switch_map[r].quant_comp_s, -1);
^
../deps/lame/libmp3lame/presets.c:36:16: note: expanded from macro 'SET_OPTION'
else if (!(fabs(lame_get_##opt(gfp) - def) > 0))
^
../deps/lame/libmp3lame/presets.c:281:5: note: use function 'abs' instead
../deps/lame/libmp3lame/presets.c:36:16: note: expanded from macro 'SET_OPTION'
else if (!(fabs(lame_get_##opt(gfp) - def) > 0))
^
4 warnings generated.
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/psymodel.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/quantize.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/quantize_pvt.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/reservoir.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/set_get.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/tables.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/takehiro.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/util.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/vbrquantize.o
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/version.o
LIBTOOL-STATIC Release/libmp3lame.a
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/compat.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/parse.o
../deps/mpg123/src/libmpg123/parse.c:184:27: warning: comparison of integers of different signs: 'off_t'
(aka 'long long') and 'unsigned long' [-Wsign-compare]
if(fr->track_frames > TRACK_MAX_FRAMES) fr->track_frames ...
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~
1 warning generated.
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/frame.o
../deps/mpg123/src/libmpg123/frame.c:285:28: warning: comparison of integers of different signs: 'unsigned long'
and 'int' [-Wsign-compare]
if(2_2_0x110_sizeof(real) > buffssize)
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
1 warning generated.
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/format.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/dct64.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/equalizer.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/id3.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/optimize.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/readers.o
../deps/mpg123/src/libmpg123/readers.c:856:11: warning: comparison of integers of different signs: 'ssize_t'
(aka 'long') and 'unsigned long' [-Wsign-compare]
if(got < sizeof(readbuf)) /* That naturally catches got == 0, too. /
~~~ ^ ~~~~~~~~~~~~~~~
1 warning generated.
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/tabinit.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/libmpg123.o
../deps/mpg123/src/libmpg123/libmpg123.c:1581:29: warning: comparison of integers of different signs: 'int' and
'unsigned long' [-Wsign-compare]
if(errcode >= 0 && errcode < sizeof(mpg123_error)/sizeof(char
))
~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/index.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/stringbuf.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/icy.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/icy2utf8.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/ntom.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth_8bit.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/layer1.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/layer2.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/layer3.o
../deps/mpg123/src/libmpg123/layer3.c:804:6: warning: comparison of integers of different signs: 'int' and
'unsigned long' [-Wsign-compare]
REFRESH_MASK;
^~~~~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:695:12: note: expanded from macro 'REFRESH_MASK'
while(num < BITSHIFT) {
~~~ ^ ~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:818:6: warning: comparison of integers of different signs: 'int' and
'unsigned long' [-Wsign-compare]
REFRESH_MASK;
^~~~~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:695:12: note: expanded from macro 'REFRESH_MASK'
while(num < BITSHIFT) {
~~~ ^ ~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:842:6: warning: comparison of integers of different signs: 'int' and
'unsigned long' [-Wsign-compare]
REFRESH_MASK;
^~~~~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:695:12: note: expanded from macro 'REFRESH_MASK'
while(num < BITSHIFT) {
~~~ ^ ~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:890:4: warning: comparison of integers of different signs: 'int' and
'unsigned long' [-Wsign-compare]
REFRESH_MASK;
^~~~~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:695:12: note: expanded from macro 'REFRESH_MASK'
while(num < BITSHIFT) {
~~~ ^ ~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:1021:6: warning: comparison of integers of different signs: 'int' and
'unsigned long' [-Wsign-compare]
REFRESH_MASK;
^~~~~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:695:12: note: expanded from macro 'REFRESH_MASK'
while(num < BITSHIFT) {
~~~ ^ ~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:1036:6: warning: comparison of integers of different signs: 'int' and
'unsigned long' [-Wsign-compare]
REFRESH_MASK;
^~~~~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:695:12: note: expanded from macro 'REFRESH_MASK'
while(num < BITSHIFT) {
~~~ ^ ~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:1059:6: warning: comparison of integers of different signs: 'int' and
'unsigned long' [-Wsign-compare]
REFRESH_MASK;
^~~~~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:695:12: note: expanded from macro 'REFRESH_MASK'
while(num < BITSHIFT) {
~~~ ^ ~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:1088:4: warning: comparison of integers of different signs: 'int' and
'unsigned long' [-Wsign-compare]
REFRESH_MASK;
^~~~~~~~~~~~
../deps/mpg123/src/libmpg123/layer3.c:695:12: note: expanded from macro 'REFRESH_MASK'
while(num < BITSHIFT) {
~~~ ^ ~~~~~~~~
8 warnings generated.
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/feature.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/dct64_x86_64.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/dct64_x86_64_float.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth_s32.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth_real.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth_stereo_x86_64.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth_stereo_x86_64_float.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth_stereo_x86_64_s32.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth_x86_64.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth_x86_64_s32.o
CC(target) Release/obj.target/mpg123/deps/mpg123/src/libmpg123/synth_x86_64_float.o
LIBTOOL-STATIC Release/libmpg123.a
CC(target) Release/obj.target/lamevectorroutines/deps/lame/libmp3lame/vector/xmm_quantize_sub.o
LIBTOOL-STATIC Release/liblamevectorroutines.a
CXX(target) Release/obj.target/bindings/src/bindings.o
CXX(target) Release/obj.target/bindings/src/node_lame.o
CXX(target) Release/obj.target/bindings/src/node_mpg123.o
../src/node_mpg123.cc:336:104: warning: comparison of array 'v1->comment' equal to a null pointer is always false
[-Wtautological-pointer-compare]
...NanNew(v1->comment, min(sizeof(v1->comment) - 2, v1->comment == NULL ? 0 : strlen(v1->comment))));
~~~~^~~~~~~ ~~~~
1 warning generated.
SOLINK_MODULE(target) Release/bindings.node
/usr/local/bin/airsonos -> /usr/local/lib/node_modules/airsonos/index.js
airsonos@0.1.1 /usr/local/lib/node_modules/airsonos
├── ip@0.3.2
├── flags@0.1.3
├── lodash@2.4.2
├── portastic@0.0.1 (async@0.1.22, coffee-script@1.3.3, commander@1.0.5)
├── throttle@1.0.3 (stream-parser@0.3.1, readable-stream@2.0.1)
├── sonos@0.7.0 (debug@0.7.4, underscore@1.5.2, async@0.9.2, upnp-client@0.0.1, xml2js@0.2.8, request@2.27.0)
├── nodetunes@0.1.2 (random-mac@0.0.4, randomstring@1.0.3, metricstream@0.0.0, priorityqueuejs@0.2.0, httplike@1.0.1, debug@2.2.0, node-forge@0.6.34, forge@2.3.0, mdns@2.2.2)
└── nicercast@0.0.8 (icecast-stack@0.3.0, express@3.5.3, lame@1.2.2)

@va3lim
Copy link
Author

va3lim commented Jul 5, 2015

d) I ran "airsonos" command.

MacBook-Air-2010:Downloads mlim$ airsonos
Searching for Sonos devices on network...
Setting up AirSonos for Office {192.168.123.109:1400}

Note: I leave the Terminal session opened.

e) Opened System Preferences and go to Sound, set the Output to "Office (AirSonos) AirPlay".

f) On iTunes, when I tried to set the airplay output to "Office (AirSonos)", I got an error message saying "The AirPlay device “Office (AirSonos)” is not compatible with this version of iTunes.".

I tried closing iTunes and relaunched, this time it shows a different error message:
"An error occurred while connecting to the AirPlay device “Office (AirSonos)”. An unknown error occurred (-15000).".

@va3lim
Copy link
Author

va3lim commented Jul 5, 2015

MacBook-Air-2010:Downloads mlim$ airsonos --verbose --diagnostics
AirSonos Diagnostics
node version v0.12.6
operating sys darwin (x64)
ip address 192.168.123.110

Searching for Sonos devices on network...

Device {"host":"192.168.123.112","port":1400,"state":{}} (ZPS1)
- attrs: {"CurrentZoneName":"Office", "CurrentIcon":"x-rincon-roomicon:office", "CurrentConfiguration":"1"} - info: {"SoftwareVersion":"28.1-86173",
"DisplaySoftwareVersion":"5.3.2",
"HardwareVersion":"1.8.3.7-1",
"IPAddress":"192.168.123.112",
"MACAddress":"XX:XX:XX:XX:XX:68",
"CopyrightInfo":"© 2004-2014 Sonos, Inc. All Rights Reserved.",
"ExtraInfo":"OTP: ",
"HTAudioIn":"0"}
`- topology: [{"group":"RINCON_B8E937EBCEBA01400:1",
"coordinator":"true",
"wirelessmode":"1",
"channelfreq":"2412",
"behindwifiext":"0",
"wifienabled":"1",
"location":"http://192.168.123.109:1400/xml/device_description.xml",
"version":"28.1-86173",
"mincompatibleversion":"27.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"19",
"uuid":"RINCON_B8E937EBCEBA01400",
"name":"Office"},{"group":"RINCON_B8E937EBCEBA01400:1",
"coordinator":"false",
"wirelessmode":"1",
"channelfreq":"2412",
"behindwifiext":"0",
"wifienabled":"1",
"location":"http://192.168.123.112:1400/xml/device_description.xml",
"version":"28.1-86173",
"mincompatibleversion":"27.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"15",
"uuid":"RINCON_B8E937EBCE6801400",
"name":"Office"}]

Device {"host":"192.168.123.109","port":1400,"state":{}} (ZPS1)
- attrs: {"CurrentZoneName":"Office", "CurrentIcon":"x-rincon-roomicon:office", "CurrentConfiguration":"1"} - info: {"SoftwareVersion":"28.1-86173",
"DisplaySoftwareVersion":"5.3.2",
"HardwareVersion":"1.8.3.7-1",
"IPAddress":"192.168.123.109",
"MACAddress":"XX:XX:XX:XX:XX:BA",
"CopyrightInfo":"© 2004-2014 Sonos, Inc. All Rights Reserved.",
"ExtraInfo":"OTP: ",
"HTAudioIn":"0"}
`- topology: [{"group":"RINCON_B8E937EBCEBA01400:1",
"coordinator":"false",
"wirelessmode":"1",
"channelfreq":"2412",
"behindwifiext":"0",
"wifienabled":"1",
"location":"http://192.168.123.112:1400/xml/device_description.xml",
"version":"28.1-86173",
"mincompatibleversion":"27.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"15",
"uuid":"RINCON_B8E937EBCE6801400",
"name":"Office"},{"group":"RINCON_B8E937EBCEBA01400:1",
"coordinator":"true",
"wirelessmode":"1",
"channelfreq":"2412",
"behindwifiext":"0",
"wifienabled":"1",
"location":"http://192.168.123.109:1400/xml/device_description.xml",
"version":"28.1-86173",
"mincompatibleversion":"27.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"19",
"uuid":"RINCON_B8E937EBCEBA01400",
"name":"Office"}]

@va3lim
Copy link
Author

va3lim commented Jul 5, 2015

Did I do anything wrong? Please advise how to make AirSonos work on OS X Yosemite 10.10.4 and iTunes 12.2. Thanks.

@va3lim va3lim changed the title Unable to install airsonos on OS X Yosemite 10.10.4 Unable to install airsonos on OS X Yosemite 10.10.4 & iTunes 12.2 Jul 5, 2015
@va3lim va3lim changed the title Unable to install airsonos on OS X Yosemite 10.10.4 & iTunes 12.2 Unable to set airsonos on OS X Yosemite 10.10.4 & iTunes 12.2 Jul 5, 2015
@va3lim va3lim changed the title Unable to set airsonos on OS X Yosemite 10.10.4 & iTunes 12.2 Unable to set airsonos on iTunes 12.2 running OS X Yosemite 10.10.4 Jul 5, 2015
@chadyj
Copy link

chadyj commented Jul 8, 2015

I had a similar problem running the latest version of node. Downgrading node to v0.10.33 fixed the problem for me.

@spliket
Copy link

spliket commented Jul 8, 2015

If you've selected the Airplay output in preferences, you shouldn't need to reselect it in iTunes. Did you try selecting the output in preferences and then just playing music out of iTunes?

@lappenlui
Copy link

same problem here. even when i try to select the output device in mac osx and not in tunes it gives out an error "could not connect with xxx" . if i try to put output in itunes it says error -15000 codec problems. guess its because of either mac osx or itunes update.

@va3lim
Copy link
Author

va3lim commented Jul 9, 2015

This was what I did previously.

Opened System Preferences and go to Sound, set the Output to "Office (AirSonos) AirPlay". When I go to iTunes and tried to play a song, there's no sound (because the sound output got switched to my Apple TV). So I tried manually set it to airsonos in iTunes, then I got this error:

An error occurred while connecting to the AirPlay device “Office (AirSonos)”. An unknown error occurred (-15000).

I'll try chadyl's suggestion tomorrow night - downgrade node to v0.10.33.

Thanks to those who replied.

@va3lim
Copy link
Author

va3lim commented Jul 14, 2015

I've verified that airsonos is working after downgrading node to v0.10.33. I can play my iTunes music and movies using my Sonos speakers. As many people have mentioned, there is lip sync issue when watching movies. Thanks to chadyl for the tip.

@va3lim va3lim closed this as completed Jul 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants