-
Notifications
You must be signed in to change notification settings - Fork 253
Successful quick install on latest Raspberry Pi 2Β #212
Description
Hi! The latest airsonos v0.2.4 works great on a new Raspberry Pi 2 as of November 2015 - using a much faster method than the beaglebone method described on the other thread which involved compiling node from source - I'm doing this writeup for total noobs like me.
COMMENTS/RESOLVED ISSUES
- This now works with node 4.2.2+ as of airsonos version 0.2.4. ALAC support has also been added supposedly.
- Rather than compile node from scratch using the 'beaglebone method' which took 1-2 hours on the poor pi, I used this precompiled version from nodesource as per instructions here: http://joshondesign.com/2013/10/23/noderpi
- After getting airsonos running I would see "Searching for Sonos devices on network..." but no speaker devices would ever show up. The solution was: getting rid of the "BRIDGE" device in my SONOS system. Airsonos seems to only work if you have an actual speaker plugged in by ethernet OR using the standard WiFi setup which was recently introduced by SONOS. The Bridge must be blocking/dropping the broadcast packets rather than sending them into "SONOS-NET" where all my Sonos speakers reside.
See identical issue here: #30
I tried all these solutions to get it to work with the 'Bridge' with no success:
#125
#135
bencevans/node-sonos#73
If you really need to use a Sonos Bridge you could try hardcoding the Sonos speakers IP addresses like this:
#79
also see here: #88
STEP BY STEP INSTRUCTIONS
-
Buy Raspberry pi 2 and case, 4GB+ microSD card, and USB power adapter. Install Raspbian "Jessie" on the microSD card as per instructions with the raspberry
-
Use puTTY to SSH into the Raspberry's IP address - it's hostname is 'raspberrypi' if you check on the DHCP leases on your router.
-
Type the following commands (I did all this as sudo su)
sudo su
raspi-config=basic initial Raspberry setup, overclock etc.
apt-get update=update raspberry
apt-get upgrade
apt-get install libavahi-compat-libdnssd-dev=install avahi needed for airsonos
curl -sL https://deb.nodesource.com/setup | sudo bash -=add nodesource to sources
curl -sL https://deb.nodesource.com/setup_4.x | bash -*=install node v4.x.x -
Log out/in to get the PATH right.
-
Use
node -vto check version, make sure node is working OK. -
Now install airsonos with:
sudo su
npm install airsonos -g
airsonos
And it all works perfectly from here!
To have airsonos start on startup:
sudo nano /etc/rc.local
And add a line:
sudo /usr/bin/airsonos &
Save, reboot.
Check airsonos is running with:
ps aux
Reference: https://www.raspberrypi.org/documentation/linux/usage/rc-local.md
Thank you Stephen for this great software.
PS I also got one of these tiny Raspberry Pi Hat Screens that work great with the official red/white raspberry case - now I can monitor the status of airsonos straight on the device at a glance, to make sure it picked up all my speakers, cost <$40, link here: http://www.4dsystems.com.au/product/4DPi-24-HAT/

