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

Working in Sierra #340

Open
Sathya-B opened this issue Dec 5, 2016 · 17 comments
Open

Working in Sierra #340

Sathya-B opened this issue Dec 5, 2016 · 17 comments

Comments

@Sathya-B
Copy link

Sathya-B commented Dec 5, 2016

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 :)

@Sathya-B Sathya-B changed the title Working in Sierrs Working in Sierra Dec 5, 2016
@daysays
Copy link

daysays commented Dec 10, 2016

Sweet! This worked perfectly. Thanks! Any ideas on how to eliminate the delay? It's about five seconds.

@gnestor
Copy link

gnestor commented Dec 12, 2016

Confirmed that this works! Thanks @sathya1984!

@LwsBtlr
Copy link

LwsBtlr commented Dec 14, 2016

I don't understand that version number. the node version I have is 7.2.1

@gnestor
Copy link

gnestor commented Dec 14, 2016

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.

@Doppelherz
Copy link

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?

@nakurr
Copy link

nakurr commented Dec 26, 2016

I just got it working with the described steps on my system as well (macOS Sierra v10.12.2).
Thanks!

@mclinder
Copy link

mclinder commented Dec 26, 2016

Thank you. Has worked perfectly. Sierra 10.12.2

@dahuuhad
Copy link

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"}]```

@seakerl
Copy link

seakerl commented Jan 24, 2017

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?

@gareaugorille
Copy link

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!

@AC94
Copy link

AC94 commented Feb 8, 2017

It worked great for me! Many thanks

@4fkk
Copy link

4fkk commented Feb 21, 2017

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.

@sashaparang
Copy link

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?



@sashaparang
Copy link

sashaparang commented Apr 7, 2017

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. (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtp.js:32:23)
at emitTwo (events.js:106:13)
at Socket.emit (events.js:191:7)
at UDP.onMessage (dgram.js:549:8)
Sashas-MBP:~ sashazinshtein$

@worthbak
Copy link

@sashaparang me too! not sure what the issue is, but I also haven't dug into it much...

@dyz2102
Copy link

dyz2102 commented Sep 10, 2017

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.

@dubzeebass
Copy link

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.

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