-
Notifications
You must be signed in to change notification settings - Fork 256
Successful quick install on latest Raspberry Pi 2 #212
Comments
Shouldn't it be "curl -sL ...." instead of "url -sL...." ? |
Yes thank you, I corrected it now. |
Great tutorial, thank you! Installation finally worked for me! Unfortunately Airsonos still doesn't work correctly over here. Although 1 device tunnel is set up, I don't see any devices in my airplay. Anyone else experiencing this? Edit: It didn't work when I started Airsonos from SSH. But adding it to the rc.local file and then rebooting did the trick. My iPhone hasn't found the speaker yet, but my macbook is currently streaming without any problems. Thanks again! |
@Muurtegel If your iDevices are running iOS9, then that is a known issue with Nodetunes that is being worked through by a few excellent people. Hopefully close to being resolved. (See here: stephen/nodetunes#1) |
That might explain thins. I am updated to iOS 9. Thanks for the info! |
Hi, I just followed the instructions and everything went fine. Airsonos works, it discovers my two sonos, The playback from an iPhone or Mac works correctly for a while, then it starts skipping... Is the Raspberry Pi 2 powerful enough to decode/transcode the audio steams ? I would think so... using top, I see that node is using 100% CPU of one core (25% overall CPU usage...). Due to the single-thread nature of node, am I hitting a CPU performance bottleneck ? I use the Raspbian, with the latest updates. @YellowLemon1 what OS do you use on the RPI? Do you see the same issue with your setup ? [edited] I tried with both an ethernet and wifi connexion to rule out other hardware problems. My Raspberry is not overclocked (700MHZ). |
Elsewhere, it's been discussed that upgrading your Pi to Raspbian Jessie (as opposed to Wheezy), and also using Node 4.2.1 works perfectly. And that's what I'm running and it's all working sweetly for me.
|
Hi @garz75 I am on the (now old) Wheezy with R Pi 2 and no such problems. Are you sure you have R Pi 2 and not the older model since RPi 2 runs standard at 900 Mhz not 700 Mhz also I get no overclocking options on RPi 2 I think you might be using RPi 1? |
I bought a kit from canakit, the label on the box says Raspberry Pi 2 Model B 1 GB $ free $ cat /proc/cpuinfo .. Hardware : BCM2709 Looks like an RPI2 Model B doesn't it ? However, it looks like my PI was under clocked: $ grep freq /boot/config.txt $cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq I guess I did something wrong with raspi-config... I upgraded to Raspbian Jessie, and commented out the *_freq entries in /boot/config.txt I am currently trying node 4.2.2 from https://deb.nodesource.com/ : no problem after 15 minutes... the CPU load is lower (50-60% of one core)... I think I fixed my problem... Thank you @YellowLemon1 and @jsnoble7 |
Hi @garz75. Thanks a lot for your hint. My Pi2 was skipping as well. Now with node.js 4.2.2 instead of 0.10.40 it works fine! |
I was successful with node.js 4.2.2 on Raspbian Jessie Basically the instructions above, but install 4.x using I saw this warning while installing forcing me to install using |
Great instructions. Worked first time, and also on iOS9 - which gave me issues before.... |
Guys, do you have also delay of sound about 2-3 seconds? I am using airsonos on OS X |
@XBeg9 yes, this is default behaviour for airplay https://discussions.apple.com/thread/4173205 |
@Muurtegel yeah, also just for audio players like Spotify? You still have delay? |
@XBeg9 yes, the delay is always there. It's also there when you use official airplay speakers. I'm not a 100% sure, but I believe the delay is there because of some sort of buffering. |
@Muurtegel ok, but as I understand Raspberry setup works perfect with iOS 9... I can't get working iOS9 support from terminal. What's the issue? airsonos --version
0.2.5 |
@XBeg9 I can't help you with that, sorry. I haven't used Airsonos in a while. |
@Muurtegel heh, it was my wifi connection. sorry. |
@XBeg9 So the delay in your setup was caused by WiFi? |
Awesome job - thanks! One minor comment / edit: I had a problem with the change to rc.local i.e.: Using a suggestion here: http://stackoverflow.com/questions/23914382/rc-local-file-not-working-raspberry-pi I removed the |
@KRider92 I have the same issue with the delay. I've got also over 5 sec. |
Instructions incomplete, on a brand new setup npm is not installed, in fact, it seems a hole lot of node components dont get installed if I do an apt-get install npm... |
If anyone is having problems with these instructions, make sure you're using the full version of Raspbian Jessie, not Raspbian Jessie Lite |
Raspberry pi 3 with Raspbian Jessie / Node.js V5 checking in. Working fine with < 10% processor load. EDIT: Also monitoring core temp while streaming...62.3 degrees average. EDIT: After 20 minutes...%CPU = 9.2%. |
NOTE TO PEOPLE WITH RaspPi 1 These instructions will work on the RPI 1, but you will get segmentation faults. The package management doesn't make sure you're on the correct CPU. RaspPi 1 is ARMv6 while the 'armhf' Debian distro is for ARMv7 (RaspPi 2) |
Thanks for the tips here, everyone. I know the previous comment mentions some issues with the Raspberry Pi (1) but does that mean it actually won't work? I have airsonos running on my Raspberry Pi B+ and I see the speaker on my iOS device but when I play nothing comes out of the speaker. If this is simply a performance thing with the Model B+ then I'll pick up a new one; I just figured I'd try it as I had this old one lying around. Here's what I see:
|
Sweet! Worked first time. Various warnings but I didn't have to do anything, just ignoring them. Excellent work. Kudos!! |
personally I would install this as a service then it will start on boot and restart if it hits a problem: So, create a new file in /etc/systemd/system, called airsonos.service [Unit] [Service] [Install] Then use the following commands in order to start the service: Finally check the service is running ok, and enjoy your tunes! |
Hi there, i installed airsonos on my raspberry pi 2. And the output looks like in your screenshot:
And i find my sonos speaker via airplay on my mac and on my iPhone. I can choose the sonos speaker, but i did not hear anything. When i play a song via Airplay i can only see that the cpu utilisation is geting higher and higer. My pi is overclocked with 1000 MHz Somebody a idea what could be wrong? |
I am also running into some issues. I am using node version 4.7.2. When I first try to do the npm install airsonsos I get errors that I need to install GIT in order for it to work. After installing GIT I was able to install airsonos but I got a lot of errors and warnings about depreciated code and commands. Once I tried to launch airsonos it acts like its going to search for my bridged speakers and then errors out more. Anyone have any thoughts or ideas? pi@raspberrypi:~ $ sudo airsonos /usr/lib/node_modules/airsonos/node_modules/bluebird/js/main/promise.js:680 |
I can get Airsonos working, but the version of node it uses seems to be incompatible with Node Red. So when you get to this step:
it won't complete without removing nodered (and some other stuff). If I try to re-install nodered I get a lot of package dependency errors. If I try to use a different setup (6 or 8) then I get zillions of compilation errors. So, it looks like since I need to have Node Red for other reasons, I can't use Airsonos? Unless someone knows differently I suppose if all else fails I could buy an extra Pi just for Airsonos. |
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
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 raspberryapt-get upgrade
apt-get install libavahi-compat-libdnssd-dev
=install avahi needed for airsonoscurl -sL https://deb.nodesource.com/setup | sudo bash -
=add nodesource to sourcescurl -sL https://deb.nodesource.com/setup_4.x | bash -
*=install node v4.x.xLog out/in to get the PATH right.
Use
node -v
to check version, make sure node is working OK.Now install airsonos with:
It should look like this:
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/
The text was updated successfully, but these errors were encountered: