Working in Sierra
Managed to get airsonos working in Sierra. In case you already have nodejs in your mac and are perplexed, please try below.
Step1: Clear all node versions sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
Step2: Install node 0.10.28 (I tried other versions but only this one worked) https://nodejs.org/en/blog/release/v0.10.28/
Step3:
Install airsonos:
sudo npm install -g airsonos --unsafe-perm
Enjoy the music :)
Sweet! This worked perfectly. Thanks! Any ideas on how to eliminate the delay? It's about five seconds.
Confirmed that this works! Thanks @Sathya1984!
I don't understand that version number. the node version I have is 7.2.1
The versions have been incrementing very quickly since 0.10x! The easiest way to switch to Node 0.10x is to install n (npm install n -g), then in the command line do n 0.10.28 which will install Node 0.10.28 and then do n which will prompt you for which version of Node you want to switch to, and select "0.10.28". You can switch back to Node 7 by simply using the n command again and switch to 7.
this doesn't work on my system. I removed all other node versions, installed 0.10.28 on mac os sierra, installed airsonos as described and started airsonos. After starting airsonos I've found my sonos speakers and selected them over airplay, it began to play at full volume for a few milliseconds, but then an error occured and shut down the airsonos tunnel.
What went wrong?
I just got it working with the described steps on my system as well (macOS Sierra v10.12.2). Thanks!
Thank you. Has worked perfectly. Sierra 10.12.2
It doesn't work for me, any ideas? According to the output below it finds my sonos but it doesn't show up anywhere.
AirSonos Diagnostics
node version v0.10.28
operating sys darwin (x64)
ip address 192.168.1.222
Searching for Sonos devices on network...
Device {"host":"192.168.1.127","port":1400,"state":{}} (ZPS6)
`- attrs: {"CurrentZoneName":"Living Room",
"CurrentIcon":"x-rincon-roomicon:living",
"CurrentConfiguration":"1"}
`- info: {"SoftwareVersion":"34.7-35162c",
"DisplaySoftwareVersion":"7.0",
"HardwareVersion":"1.13.1.7-2",
"IPAddress":"192.168.1.127",
"MACAddress":"XX:XX:XX:XX:XX:86",
"CopyrightInfo":"© 2004-2015 Sonos, Inc. All Rights Reserved.",
"ExtraInfo":"",
"HTAudioIn":"0",
"Flags":"0"}
`- topology: [{"group":"RINCON_5CAAFDF1538601400:0",
"coordinator":"true",
"wirelessmode":"1",
"wirelessleafonly":"0",
"hasconfiguredssid":"1",
"channelfreq":"2472",
"behindwifiext":"0",
"wifienabled":"1",
"location":"http://192.168.1.127:1400/xml/device_description.xml",
"version":"34.7-35162c",
"mincompatibleversion":"33.0-00000",
"legacycompatibleversion":"25.0-00000",
"bootseq":"7",
"name":"Living Room"}]```
Sweet! This worked perfectly. Thanks! Any ideas on how to eliminate the delay? It's about five seconds. Same here, works fine. Any ideas on how to fix the delay?
Hi, it does not work for me either.
I have applied the instructions above and installed AirSonos on a Mac mini (late 2014), running Sierra 10.12.3.
Here is the output I get:
PZOT:~ pzot$ airsonos --diagnostics AirSonos Diagnostics node version v0.10.28 operating sys darwin (x64) ip address 192.168.1.172
Searching for Sonos devices on network...
the system hangs, searching for the devices on the network. Any idea why this is happening?
Thanks!
It worked great for me! Many thanks
Having had a similar problem to #341 I tried this suggestion a number of times before it eventually worked. I did disconnect my Sonos Dock as suggested by another thread so not sure if that was the cause or just coincidence.
Having some issues with Sierra 10.12.4.. the program runs fine and finds the device, I can change the output source, but as soon as I hit play for instance on SoundCloud it reverts back to the the laptop speaker and the Sonos source disappears. Is anyone else having this issue?
Search complete. Set up 1 device tunnel. crypto.js:239 this._handle.initiv(cipher, toBuf(key), toBuf(iv)); ^
Error: Invalid key length
at Error (native)
at new Decipheriv (crypto.js:239:16)
at Object.Decipheriv (crypto.js:236:12)
at Object.decryptAudioData (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/helper.js:141:25)
at RtpServer.
@sashaparang me too! not sure what the issue is, but I also haven't dug into it much...
I tried the solution but got stuck at the following:
npm http 304 https://registry.npmjs.org/react-tools
npm WARN deprecated [email protected]: react-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated
npm http 304 https://registry.npmjs.org/batch
> [email protected] install /usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns
> node-gyp rebuild
gyp http GET http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
Have tried reinstalling Node, restarting computer, still can't get it to work.
Anybody have any ideas for High Sierra? Very disappointed to see that Airsonos/Sonoair find the speakers, but I can't change the output to any of them in any of the sound dialogs.