stephen / airsonos Goto Github PK
View Code? Open in Web Editor NEW:musical_note: AirPlay to Sonos
License: MIT License
:musical_note: AirPlay to Sonos
License: MIT License
hello
we have a couple of devices to stream from and a few sonos systems.
if one devices streams to sonos in livingroom. Stops streaming and another device wants to stream to sonos in livingroom a message appears sonos livingroom is used.
Ok it is used but how to cancel the usage of the other device?
You know what i mean? How to get a new connection with the 2nd device? How to cancel connection of 1st device?
by
It appears that when running speakers in with a bridge device, the speakers must be discovered by the node-sonos
package after the bridge device is discovered. Otherwise, there is a strange error flushing buffer ...
error emitted (seems to be from node-lame).
If this happens, the script needs to be restarted multiple times until the speakers are discovered after the bridge device.
Example bad output:
$ node index.js
setting up airsonos for { host: '172.17.105.103', port: 1400 } # speaker device
setting up airsonos for { host: '172.17.106.37', port: 1400 } # bridge device
Possible reasoning - setting up multiple nodetunes
or nicercast
servers conflict with each other, and only the last device set up is working? Unfortunately, I don't have a third device to test with.
Also worth noting that you can't actually play to a bridge device...
Hi,
I managed to get the latest airsonos installed on debian wheezy using node.js, n and npm.
now, if i ssh to my debian box and issue the airsonos command i can see it instatiate and find all my sonos gear (x6 speakers), but, when i close the SSH session airsonos stops running too!
how do i work around this ?
please help
thanks
Dan.
I'm encountering an error installing on OS X 10.10 (Yosemite). There is a build error when trying to build lame. An extract of the log follows:
LIBTOOL-STATIC Release/libmp3lame.a
libtool: unrecognized option -static' libtool: Try
libtool --help' for more information.
make: *** [Release/libmp3lame.a] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
Hi Stephen,
first...great work that you have done here.
But some component is causing sound delays after I am using airsonos, so local sound coming out of my iMac speakers is delayed, do you have a clue why?
Regards, Robert
Hi,
I've installed airsonos, but it can't find my Sonos Player. I'm using a 2011 Macbook Pro running OSX Yosemite, node 0.10.32, and Sonos Play5 Version: 5.1 (build 27280271) Hardware Version: 1.16.4.1-1
It's stuck on the "Searching for Sonos on network.."
For some reason, I can't get any audio on my iPad1 to play via AirSonos. While it comes up as an AirPlay device, selecting it and hitting play, doesn't do anything. It somehow doesn't seem to be able to stream anything.
The Sonos also doesn't get into play mode and if I manfully hit play on it, it just gives an error that no connection could be made.
I suspect the issue might be in the communication between the nodetunes component and the iPad. AirSonos outputs no error and the diagnostics parameter seems to only output info in regards to Sonos, not the airplay portion.
I tried the built-in music app, Spotify, a radio app and YouTube.
it all works just fine with my iPhone 4 running iOS 7.1.2 .
Could it be that iOS5 somehow tries to output the audio as ALAC instead of PCM?
Not sure how I would go about verifying that, let alone how to work around the issue.
I've successfully installed airsonos but when I run it I get:
** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Any ideas how I can solve this? I'm on arch linux if that matters.
I have two Sonos devices. It searches and successfully adds it, however it does not go on to find the next one.
One caveat that I might add is that I am not using a bridge. I am using the new setup where it connects to WiFi instead of the Bridge.
Laptop:airsonos phillipdudas$ airsonos --diagnostics
AirSonos Diagnostics
node version v0.10.32
operating sys darwin (x64)
Searching for Sonos devices on network...
Device {"host":"192.168.1.65","port":1400} (ZPS9)
`- attrs: {"CurrentZoneName":"Living Room",
"CurrentIcon":"x-rincon-roomicon:living",
"CurrentConfiguration":"1"}
`- info: {"SoftwareVersion":"27.2-81200a",
"DisplaySoftwareVersion":"5.1.1",
"HardwareVersion":"1.9.1.10-1",
"IPAddress":"192.168.1.65",
"MACAddress":"XX:XX:XX:XX:XX:B4",
"CopyrightInfo":"© 2004-2014 Sonos, Inc. All Rights Reserved.",
"ExtraInfo":"OTP: ",
"HTAudioIn":"21"}
`- topology: [{"group":"RINCON_000E58B9D6B401400:3",
"coordinator":"true",
"wirelessmode":"1",
"channelfreq":"2412",
"behindwifiext":"0",
"location":"http://192.168.1.63:1400/xml/device_description.xml",
"version":"27.2-80271",
"mincompatibleversion":"26.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"20",
"uuid":"RINCON_B8E93730222601400",
"name":"Master Bedroom"},{"group":"RINCON_000E58B9D6B401400:4",
"coordinator":"true",
"wirelessmode":"1",
"channelfreq":"2412",
"behindwifiext":"0",
"location":"http://192.168.1.65:1400/xml/device_description.xml",
"version":"27.2-81200a",
"mincompatibleversion":"26.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"19",
"uuid":"RINCON_000E58B9D6B401400",
"name":"Living Room"}]
I installed it on my Maverick OSX 10.9.3 Macbook Pro/node version v0.10.28/darwin(x64) and all I get after starting it with the command airsonos is:
Searching for Sonos devices on network...
It can't find my Sonos devices, any Idea what could be wrong? My Macbook is connected by wifi to the network/router where the Sonos is connected to.
I would love to make use of it, it would make the Sonos much more usable :)
Update 1-6-2014:
I installed airsonos now on a Arm Ubuntu system and the result is the same, everything seems to work but it can'f find my Sonos devices: Searching for Sonos devices on network...
So it seems to be a local network problem, what could be wrong they are all on the same network?
I tried to ping the Sonos ip's within my Ubuntu and OSX system and they are reachable with no packet loss.
Update 2-6-2014:
It is in my Cisco cable modem/router, any other router works fine. This router seems to have problems with certain upnp functions via wifi. When you connect it directly with a cable then it also works.
A great tool, I enjoy day by day, but the mac needs to run all the time.
My Synology is running 24/7, so why not running there?
as node.js can be installed on the synology, can airsonos run on that one as well?
Experiencing constant disconnects on all my Sonos speakers when using AirSonos. I've experienced this issue on Soundbard, Play:1, and Play:3 while attempting to AirPlay from an iPhone, iPad, and a Macbook (iPhone is running 8.0.2 and iPad is also running 8.0.2). OS x is 10.9.3.
Tried across a few different apps on my phone and streaming audio (not through iTunes on my Mac).
The audio from the source (iPhone, iPad, Mac) never stops playing but on the Sonos controller I see it disconnect and then say Connecting, Starting each time that the audio stops (it usually takes ~2-3 seconds before the controller reflects that he audio has stopped).
My wifi is not flaky otherwise and I am using a bridge with the Sonos speakers.
Only errors I see are on startup are
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat s=libdns_sd&e=node&f=DNSServiceRegister>
Searching for Sonos devices on network...
Setting up AirSonos for Bedroom {192.168.1.6:1400}
Setting up AirSonos for Dining Room {192.168.1.7:1400}
Setting up AirSonos for Living Room {192.168.1.5:1400}
hello
i installed node.js and after that i tried installing with
sudo npm install airsonos -g
os x wanted command line tools 6.0 to be installed
did that
tried installation again.
didnt work
gyp ERR! build error
gyp ERR! stack error 'make' faild with exit code: 69
what do i have to do to get it run?
a synology app would be awesome!!!
I've installed airsonos to my mac mini (Late 2012, OS X 10.9.4) but when I run airsonos, I get stuck at "Searching for Sonos Devices..." and then nothing happens. This has been tested at the longest for about 24 hours, still nothing happens. Same result when trying to run diagnostics, since no devices are found, nothing happens. My Sonos setup consists of a Bridge and a Play:1. Both are running version 5.0.
Hey! Wondered if you could help me out on this:
Running Arch Linux as a VM on ESXi. Installed following this guide (although it's written for a raspberry pi there shouldn't be much difference I guess), but when starting, I get this:
Error: dns service error: unknown
at new Advertisement (/usr/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns2/lib/advertisement.js:56:10)
at Object.create as createAdvertisement
at NodeTunes. (/usr/lib/node_modules/airsonos/node_modules/nodetunes/lib/server.js:65:21)
at Server.g (events.js:180:16)
at Server.emit (events.js:92:17)
at net.js:1055:10
at process._tickCallback (node.js:419:13)
Any Ideas? I already installed the mDNSResponder as suggested in another issue.
First this is awesome thank you so much it's exactly what I was looking for. Now if there was only a way to play from an IOS device directly to multiple airplay devices but we can wish can't we.
My issue is that while everything is working wonderfully from an IOS device I get static when I try to play from iTunes so that I can play to multiple speakers.
FYI I have installed airsonos on an ubuntu server
When Airsonos is streaming, it needs pretty much 100% CPU on my server (BeagleBoneBlack) and since I'm using the server for other things as well, uninterrupted audio streaming is not possible. I would imagine that the mp3 encoding takes up the most cpu cycles and I'm wondering if it would be possible to disable the lame encoder and stream as PCM instead.
I'm not concerned about bandwidth if it would make the streaming possible.
Hi,
When i stream something i only get white noise (http://youtu.be/1KaOrSuWZeM?t=54m12s) and no errors By the way, when i change the volume in iTunes i see the Sonos App volume change too, so it must be something with the encoding right? Any idea?
Best regards and many thanks for your time developing this :)
I have a PlayBar and a Play:1 installed only. I initially had a Bridge but I couldn't get airsonos to recognize any components at all until I got rid of the bridge. It now seems to work properly running on my macbook. I got the package installed in a debian chroot on the Asustor NAS but when I run it I get the following output:
Searching for Sonos devices on network...
Setting up AirSonos for Living Room {192.168.0.10:1400}
Error: dns service error: unknown
at new Advertisement (/usr/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns/lib/advertisement.js:56:10)
at Object.create as createAdvertisement
at NodeTunes. (/usr/lib/node_modules/airsonos/node_modules/nodetunes/lib/server.js:65:21)
at Server.g (events.js:180:16)
at Server.emit (events.js:92:17)
at net.js:1055:10
at process._tickCallback (node.js:419:13)
Here is the output of --diagnostics:
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister
AirSonos Diagnostics
node version v0.10.32
operating sys linux (ia32)
Searching for Sonos devices on network...
Device {"host":"192.168.0.18","port":1400} (ZPS1)
- attrs: {"CurrentZoneName":"Kitchen", "CurrentIcon":"x-rincon-roomicon:kitchen", "CurrentConfiguration":"1"}
- info: {"SoftwareVersion":"27.2-80271",
"DisplaySoftwareVersion":"5.1",
"HardwareVersion":"1.8.3.7-1",
"IPAddress":"192.168.0.18",
"MACAddress":"XX:XX:XX:XX:XX:34",
"CopyrightInfo":"© 2004-2014 Sonos, Inc. All Rights Reserved.",
"ExtraInfo":"OTP: ",
"HTAudioIn":"0"}
`- topology: [{"group":"RINCON_000E58B9C13C01400:13",
"coordinator":"true",
"wirelessmode":"1",
"channelfreq":"2442",
"behindwifiext":"0",
"location":"http://192.168.0.10:1400/xml/device_description.xml",
"version":"27.2-80271",
"mincompatibleversion":"26.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"12",
"uuid":"RINCON_000E58B9C13C01400",
"name":"Living Room"},{"group":"RINCON_000E58B9C13C01400:13",
"coordinator":"false",
"wirelessmode":"1",
"channelfreq":"2442",
"behindwifiext":"0",
"location":"http://192.168.0.18:1400/xml/device_description.xml",
"version":"27.2-80271",
"mincompatibleversion":"26.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"5",
"uuid":"RINCON_B8E9375FFB3401400",
"name":"Kitchen"}]
Device {"host":"192.168.0.10","port":1400} (ZPS9)
- attrs: {"CurrentZoneName":"Living Room", "CurrentIcon":"x-rincon-roomicon:living", "CurrentConfiguration":"1"}
- info: {"SoftwareVersion":"27.2-80271",
"DisplaySoftwareVersion":"5.1",
"HardwareVersion":"1.9.1.10-1",
"IPAddress":"192.168.0.10",
"MACAddress":"XX:XX:XX:XX:XX:3C",
"CopyrightInfo":"© 2004-2014 Sonos, Inc. All Rights Reserved.",
"ExtraInfo":"OTP: ",
"HTAudioIn":"21"}
`- topology: [{"group":"RINCON_000E58B9C13C01400:13",
"coordinator":"false",
"wirelessmode":"1",
"channelfreq":"2442",
"behindwifiext":"0",
"location":"http://192.168.0.18:1400/xml/device_description.xml",
"version":"27.2-80271",
"mincompatibleversion":"26.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"5",
"uuid":"RINCON_B8E9375FFB3401400",
"name":"Kitchen"},{"group":"RINCON_000E58B9C13C01400:13",
"coordinator":"true",
"wirelessmode":"1",
"channelfreq":"2442",
"behindwifiext":"0",
"location":"http://192.168.0.10:1400/xml/device_description.xml",
"version":"27.2-80271",
"mincompatibleversion":"26.0-00000",
"legacycompatibleversion":"24.0-0000",
"bootseq":"12",
"uuid":"RINCON_000E58B9C13C01400",
"name":"Living Room"}]
Thanks
AirSonos will begin properly and listen for connections from airplay device. You can connect a device to AirSonos, such as iPhone but once audio is sent to the device, AirSonos crashes.
Below is the error log.
Sys-Admins-iMac:desktop sysAdmin$ airsonos
Searching for Sonos devices on network...
Setting up AirSonos for Kitchen {10.0.1.8:1400}
/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtsp.js:42
this.methodMapping[m.method](response, m.headers, m.content);
^
TypeError: Property '
SETUP' of object # is not a function
at RtspServer. (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtsp.js:42:33)
at EventEmitter.emit (events.js:95:17)
at Socket. (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/httplike/lib/parser.js:62:16)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket. (stream_readable.js:745:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable (_stream_readable.js:407:10)
at emitReadable (_stream_readable.js:403:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
Sys-Admins-iMac:desktop sysAdmin$
Currently unsure of the cause. Looks like this error means that we're feeding the lame encoder extra data that shouldn't be around.
Hi Stephen,
I have run airsonos for a few months and it works great with my iphone for streaming from youtube, however when i try to run the airplay through system volume on mac it duplicates the devices (i have 2 play:1's but it shows 4) and none of them will connect through airplay. Do you have any ideas what may cause this?
I have a bridge 2 x Play 1's and airsonos is running on OSX
Many thanks
Olly
AirFoil/iTunes both only seem to transmit via ALAC, without PCM support..
Will need to add PCM support to nodetunes for this to happen. See stephen/nodetunes#1
I try airsonos on the beta of yosemite. The software can see my sonos but i got only background noise.
Also, i cannot make the real sonos app works again.
On my terminal i got
Searching for Sonos devices on network...
Setting up AirSonos for Living Room {192.168.1.93:1400}
and on the sonos app i go
Unable to play 'AirSonos' - unable to connect to 192.168.1.53:8000
ps :
1.93 is my sonos play5
1.53 is my mac
Any idea ?
When attempting to Airplay to to Airsonos, the AirPlay devices are present and selectable on iOS devices, but after a few second of playback (nothing is heard on the Sonos system, you can just see the time of the track ticking along for a few seconds), the music pauses and returns to the default output (e.g. the iPhone speaker.) At this point, you can reselect the Airsonos speaker in the Airplay settings, but the issue repeats as before.
It appears to be random and every now and again the package works successfully.
When it disconnects, there is nothing logged. However, when I tried with just one of my speakers online, I got this error message (but only once and I cannot reproduce the error!):
/usr/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtsp.js:39
methodMapping[m.method](response, m.headers, m.content);
^
TypeError: Property '
SETUP' of object #<Object> is not a function
at null.<anonymous> (/usr/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtsp.js:39:30)
at EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (/usr/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/httplike/index.js:61:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:408:10)
at emitReadable (_stream_readable.js:404:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
The issue persists when node is installed both globally and in the home directory and also if run as root.
System information:
Ubuntu 13.10 (server)
Airsonos version 0.0.4
Sonos Devices: 2x ZP90s
It detects my sonos, but "could not connect" to whichever one i try. I ungrouped my sonos devices and tried to play on a single-device one, but same problem (none of the devices work, same error).
$ node --version v0.10.26 rj@tube ~/src $ npm --version 1.4.3 rj@tube ~/src $ uname -a Darwin tube.local 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64 rj@tube ~/src $ date Mon 29 Sep 2014 21:15:04 BST rj@tube ~/src $
Whenever I try to play a song from my iTunes Library directly on my Mac, airsonos only plays white noise. On iOS it works fine as expected. Any ideas?
Thanks in Advance
Following successful installation, no devices are found - it shows the following but nothing else:
Searching for Sonos devices on network...
Any thoughts - I am running Macbook Pro with Yosemite. No other issues. Sonos & Airplay work fine otherwise.
Thanks
I saw this once long before and didn't think more of it, but now I have finally found out why it happens.
/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtsp.js:47
this.methodMapping[req.method](req, res);
^
TypeError: Property 'GET' of object #<Object> is not a function
at RtspServer.<anonymous> (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtsp.js:47:35)
at emit (events.js:98:17)
at null.<anonymous> (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/httplike/lib/server/parser.js:78:16)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:764:14)
at Socket.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:426:10)
at emitReadable (_stream_readable.js:422:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
Turns out that something is using port 5000, which I'm also using when developing a website in node.js. What happens is that my server fails to listen to port 5000, obviously, and when I visit http://localhost:5000/
in my browser, it makes the request that kills the server.
A simple check to end the connection instead of crashing the entire program would be nice :)
As some of my sonos rooms happen to have non UTF characters in their name this gives me issue with displaying them back at Sonos Controller. Information field has garbled chars.
Some quick investigation reveals:
Most of the libs involved in here dealing with sonos communication as well as airplay are playing nicely with UTF-8 strings. All chars remain intact and display nicely.
Problem happens here at the initiation of the icecast stream
var icecastServer = new Nicercast(audioStream, {
name: 'AirSonos @ ' + deviceName
});
looks like Sonos picks this info from the stream name/metadata? Not yet clear where it fails and if sonos deals with non UTF here at all or just needs different content type or what else. Anyway nothing too serious just wanted to highlight it.
Looking at metadata gives some ideas for nice future enhancement as airplay/raop supports metadata (track, artist, album) that could been push through back to the Sonos end to nicely display at their controllers. Would require to add some daap parsing which is ugly but not too hard.
I'm getting an Error: listen EADDRINUSE with the system audio set to stream to the airplay. Here's what I'm doing:
• Start airsonos, which successfully finds my P:1
• Open Sound settings in sysprefs and select AirSonos output device
• Mash the volume keys on my mac up and down
• No clicking sound is heard through sonos, which crashes with the following shortly after:
➜ airsonos git:(master) airsonos
Searching for Sonos devices on network...
Setting up AirSonos for Master Bedroom {192.168.0.7:1400}
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:883:11)
at Server._listen2 (net.js:1021:14)
at listen (net.js:1043:10)
at Server.listen (net.js:1109:5)
at Function.app.listen (/usr/local/share/npm/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/lib/application.js:533:24)
at Server.start (/usr/local/share/npm/lib/node_modules/airsonos/node_modules/nicercast/index.js:104:9)
at /usr/local/share/npm/lib/node_modules/airsonos/lib/main.js:57:25
at /usr/local/share/npm/lib/node_modules/airsonos/node_modules/portastic/lib/portastic.coffee:31:22
at /usr/local/share/npm/lib/node_modules/airsonos/node_modules/portastic/node_modules/async/lib/async.js:236:13
at /usr/local/share/npm/lib/node_modules/airsonos/node_modules/portastic/node_modules/async/lib/async.js:116:25
Any ideas?
I use the Sonos controller to group my 3 rooms grouped together so the same music plays in all of them. All 3 Sonos devices appear in the AirPlay list on my iOS devices, so I just select the "master" room (the one I grouped the other 2 rooms into using the Sonos controller app). When I adjust the volume on my iOS device, it only affects the "master" room where I'd expect it to adjust the volume in all 3.
(It could be a tricky problem because the volumes in the different rooms can be set at different levels. I think the way the Sonos controller app handles this is it increases or decreases each room by a relative value, say +5 or -5 db rather than setting each room to the same value.)
Hi, I'm getting the following error, which could be something simple to my lack of knowledge, I'm wondering whether it's something simple or not. Appreciate any help.
Error: failed to fetch from registry: nodetunes/0.0.16
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.g (events.js:156:14)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.parserOnIncomingClient as onIncoming
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /home/pi/airsonos/airsonos/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.12.22+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g"
npm ERR! cwd /home/pi/airsonos/airsonos
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: nodetunes/0.0.16
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/airsonos/airsonos/npm-debug.log
npm not ok
I get the following error when installing.
OS: Ubuntu 14.04 Server
node.js: v0.10.26
npm: 1.4.7
node-gyp: v0.13.0
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns2
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
...
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the mdns2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls mdns2
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /home/alexander/airsonos
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.7
npm ERR! code ELIFECYCLE
...
gyp: binding.gyp not found (cwd: /usr/local/lib/node_modules/airsonos/node_modules/lame)
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/airsonos/node_modules/lame
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
Once for each speaker, and once for the stereo pair as whole. Reported by Bernhard via Email.
Need to write up some diagnostics code to help debug this since I don't have a second Sonos device to play with.
Causes speaker to continuously attempt to re-connect. This actually creates an interesting bug where switching from speaker 1 to speaker 2, speaker 1 will attempt to (and successfully) reconnect to the nicercast stream on the same port - causing it to inadvertently play the stream (unsynced).
cheers,
trying to install airsonos,
but I don't understand all this - maybe you can help?
:-)
THX
Steve Krush
amphiprculasmbp:airsonos amphiprionpercula$ sudo npm install -g
Password:
[email protected] install /usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/ursa
node-gyp configure build && node install.js
/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm WARN deprecated [email protected]: use serve-favicon module
[email protected] install /usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns
node-gyp rebuild
/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
[email protected] install /usr/local/lib/node_modules/airsonos/node_modules/lame
node-gyp rebuild
/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
[email protected] install /usr/local/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame
node-gyp rebuild
/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm ERR! [email protected] install: node-gyp configure build && node install.js
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the ursa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build && node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls ursa
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /usr/local/bin/airsonos
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! error rolling back Error: Refusing to delete: /usr/local/bin/airsonos not in /usr/local/lib/node_modules/airsonos
npm ERR! error rolling back at clobberFail (/usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:57:12)
npm ERR! error rolling back at next (/usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:43:14)
npm ERR! error rolling back at /usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:37:30
npm ERR! error rolling back at Object.oncomplete (evalmachine.:107:15)
npm ERR! error rolling back { [Error: Refusing to delete: /usr/local/bin/airsonos not in /usr/local/lib/node_modules/airsonos] code: 'EEXIST', path: '/usr/local/bin/airsonos' }
npm ERR! not ok code 0
Hi, I have installed Airsonos on my iMac and it searches and finds my Sonos devices. However when I connect and try to play, the applications quits with the following error:-
Searching for Sonos devices on network...
Setting up AirSonos for Living Room3 {10.0.1.13:1400}
Setting up AirSonos for Living Room3 {10.0.1.47:1400}
Setting up AirSonos for Kitchen {10.0.1.46:1400}
Setting up AirSonos for Living Room3 {10.0.1.48:1400}
Segmentation fault: 11
Awesome project, I've wanted something like this for a long time.
I got it all set up and running, when I selected Sonos as an output in System Preferences I get "Selected Output has No Audio Controls" and then it resets to internal speakers. When selected the Sonos through Airfoil, I got static out of all of my devices even when I only selected one. Any idea what I'm doing wrong?
On both a Mac mini and a Macbook Pro, I can install node.js and AirSonos, but running the airsonos command leaves me with "Searching for Sonos devices on network..." and nothing else...
This happens when I have my surround setup active (Playbar + 2XPlay:1) - as soon as I set up the Play:1 as individual speakers, it works TEMPORARILY (with node.js 0.10.28 and 10.9.4) - after about 5 minutes, it stops working with the individual speaker setup as well.
Any ideas?
Really cool project - love it!
When there's no audio coming out of AirPlay for an extended period (3-4 seconds), Sonos needs to reconnect to the nicercast stream (takes 3-4 seconds) before audio begins to play again.
Install for OS X is easiest, Linux needs some deps, and there are a lot of deps to compile for Windows. Should document this at some point.
I really like the idea, but I tried it on my mac, it successfully displays all my sonos als airplay speakers.
But if I start playing something, the console tells me something about cache and it never starts playing.
When I stream a movie or just when I hit next song on Spotify there's a delay of 0.5s
I can't watch a movie when the sound is not sync correctly.
My sonos play5 is connected by ethernet and the laptop is on the Wifi.
I think we can fix this by starting the playback at 0:05s ahead instead of 0:00.
Any ideas?
I'm trying to install this on windows but am getting hit with errors. Does the followign mean that the grab of the items being wrapped has failed? How to I overcome this?
c:\users\yash\appdata\roaming\npm\node_modules\airsonos\node_modules\nodetunes\node_modules\mdns\src\mdns.hpp(31): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or directory (
..\src\dns_service_ref_deallocate.cpp) [C:\Users\Yash\AppData\Roaming\npm\node_modules\airsonos\node_modules\nodetunes\node_modules\mdns\build\dns_sd_bindings.vcxproj]
c:\users\yash\appdata\roaming\npm\node_modules\airsonos\node_modules\nodetunes\node_modules\mdns\src\mdns.hpp(31): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or directory (
..\src\dns_service_get_addr_info.cpp) [C:\Users\Yash\AppData\Roaming\npm\node_modules\airsonos\node_modules\nodetunes\node_modules\mdns\build\dns_sd_bindings.vcxproj]
It would be nice if your system would use the displayname of every sonos device. I have multiple and now I have to learn their IP's
Hi Stephen,
Thanks for this great piece of coding! I have troubles installing it on macosx 10.9.2. Here's the log. Can you help me out? Thanks.
air:airsonos-master shenzo$ git clone https://github.com/stephen/airsonos.git
Cloning into 'airsonos'...
remote: Reusing existing pack: 236, done.
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 242 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (242/242), 704.31 KiB | 116.00 KiB/s, done.
Resolving deltas: 100% (117/117), done.
Checking connectivity... done.
air:airsonos-master shenzo$ cd airsonos
air:airsonos shenzo$ npm install -g
npm ERR! error rolling back Error: EACCES, unlink '/usr/lib/node_modules/airsonos'
npm ERR! error rolling back [email protected] { [Error: EACCES, unlink '/usr/lib/node_modules/airsonos']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/lib/node_modules/airsonos' }
npm ERR! Error: EACCES, unlink '/usr/lib/node_modules/airsonos'
npm ERR! { [Error: EACCES, unlink '/usr/lib/node_modules/airsonos']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/lib/node_modules/airsonos' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/lib/node_modules/airsonos'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/shenzo/Downloads/airsonos-master/airsonos/npm-debug.log
npm ERR! not ok code 0
air:airsonos shenzo$ sudo npm install -g
Password:
[email protected] install /usr/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/ursa
node-gyp configure build && node install.js
sh: node-gyp: command not found
npm ERR! Error: ENOENT, lstat '/usr/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns2/build/Release/obj.target/dns_sd_bindings/src/dns_service_ref.o'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns2/build/Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns2/build/Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/lib/node_modules/airsonos/node_modules/sonos/node_modules/request/tests/test-defaults.js'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/sonos/node_modules/request/tests/test-defaults.js
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/sonos/node_modules/request/tests/test-defaults.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/debug/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/debug/package.json
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/debug/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/mkdirp/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/mkdirp/package.json
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/mkdirp/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/fresh/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/fresh/package.json
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/fresh/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/merge-descriptors/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/merge-descriptors/package.json
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/merge-descriptors/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/buffer-crc32/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/buffer-crc32/package.json
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/buffer-crc32/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/send/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/send/package.json
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/send/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/range-parser/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/range-parser/package.json
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/range-parser/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/connect/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/connect/package.json
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/connect/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules' }
npm ERR! [email protected] install: node-gyp configure build && node install.js
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the ursa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build && node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls ursa
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/commander/History.md'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/commander/History.md
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/express/node_modules/commander/History.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/icecast-stack/test/dumps/4EverFloyd-1.dump'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/icecast-stack/test/dumps/4EverFloyd-1.dump
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/icecast-stack/test/dumps/4EverFloyd-1.dump
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame/deps/lame/ChangeLog'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame/deps/lame/ChangeLog
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/nicercast/node_modules/lame/deps/lame/ChangeLog
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/lib/node_modules/airsonos/node_modules/lame/deps/lame/ChangeLog'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/shenzo/Downloads/airsonos-master/airsonos
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/lib/node_modules/airsonos/node_modules/lame/deps/lame/ChangeLog
npm ERR! fstream_path /usr/lib/node_modules/airsonos/node_modules/lame/deps/lame/ChangeLog
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/shenzo/Downloads/airsonos-master/airsonos/npm-debug.log
npm ERR! not ok code 0
When I want to play music, all I hear is white noise through my sonos speakers.
When I open the mp3 radio stream (on port 8000) I also hear that same noise.
I'm running node v0.10.24 and the latest git version of airsonos.
Any ideas what could be wrong ?
AirSonos attempts to set up streaming for bridge devices (which can't inherently be streamed to...). This is because node-sonos reports Bridge devices just like Speaker devices..
See related: bencevans/node-sonos#29
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.