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

Successful quick install on latest Raspberry Pi 2Β #212

@YellowLemon1

Description

@YellowLemon1

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

  1. 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

  2. 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.

  3. 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

  4. Log out/in to get the PATH right.

  5. Use node -v to check version, make sure node is working OK.

  6. Now install airsonos with:

sudo su
npm install airsonos -g
airsonos

It should look like this:
image

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/

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions