Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volumio as Bluetooth Audio Receiver #795

Closed
escoand opened this issue Oct 21, 2016 · 73 comments
Closed

Volumio as Bluetooth Audio Receiver #795

escoand opened this issue Oct 21, 2016 · 73 comments

Comments

@escoand
Copy link

escoand commented Oct 21, 2016

It would be nice to use volumio as a bluetooth audio receiver.
So it could additionally be used for receiving audio streams from smartphone or pc as central audio "device".

I've read about in a german magazine (not tested by myself) if this will help:
https://shop.heise.de/katalog/raspberry-in-blue

@karaambaa
Copy link

karaambaa commented Oct 30, 2016

Don't know if it helps, but you could take a short look at these instructions on how to install a2dp-bluetooth on raspbian jessy https://github.com/karaambaa/a2dp-bluetooth-server

@flowoow
Copy link

flowoow commented Mar 8, 2017

Got it up and running with the following scripts, using only the bluetooth scripts

https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install

@yagayente
Copy link

I can't seem to find how to make bluetooth work properly. Does someone work on a plugin ?
It would be nice !

@xipmix
Copy link
Contributor

xipmix commented Jun 30, 2017

You may also be interested in @wvengen 's approach, see #159

@death2all110
Copy link

@AbysFlo can you explain which scripts you ran exactly?
Also, does pulse interfere with Volumio2 at all? I understand Volumio2 uses ALSA instead of Pulse.

@flowoow
Copy link

flowoow commented Aug 21, 2017

@death2all110 If I recall well I ran bt_pa_config.sh and bt_pa_install.sh and that was up and running. Not sure how they mixed together, like might needed to pause a song to have only one source of music at the time. I didn't pursue my testing as I have a phone running on 2.4ghz wifi and bluetooth was interfering with it.. I think pulse crashed couple of time as well that needed a reboot. But was usable if you're not stuck with 2.4ghz wifi

@donjuan201
Copy link

donjuan201 commented Sep 13, 2017

I think a very cool and super awesome feature would be if you could stream from a smartphone (through a Bluetooth or Wifi (maybe through the app as well) connection) to volumio and have volumio record the audio input and give you the option to save it to your local / network device containing your media files. This way you can also expand your library if anyone comes past and has a song that you don't have in your library, you can then easily have them stream it through your volumio setup and boom you have the song now part of your library...

Make it sound easy, right (*duck), I think a lot of people will find this feature super handy.

@Zjerardo
Copy link

I have also tried to install this using the https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install method, but it still isn't working.

steps I've done so far:
sudo apt-get install build-essential
sudo apt-get install libtool
sudo apt-get install intltool
sudo apt-get install locales
sudo dpkg-reconfigure locales

afterwards I run the installer.sh (sudo) and select option 4 (bluetooth only).

it seems to run through the installation process, but it doesn't activate the bluetooth.
I'll have to recheck for any other error messages in the log and try to resolve them but if anyone else has a proper installation procedure to get this working, it would be greatly appreciated!

@jaglo
Copy link

jaglo commented Nov 10, 2017

I had the same issue with the above script. Looking over my install.log file, it looked like the script was aborting any time it was prompted to install more than 1 package at a time. I was able to successfully get Bluetooth working on my Volumio installation by installing all the prerequisites first and then running the script again:

sudo apt-get install autoconf automake autopoint autotools-dev file gettext gettext-base libasprintf-dev libasprintf0c2 libauthen-sasl-perl libcroco3 libencode-locale-perl libfile-listing-perl libfont-afm-perl libgettextpo-dev libgettextpo0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libsigsegv2 libtimedate-perl libunistring0 liburi-perl libwww-perl libwww-robotrules-perl libxml-parser-perl m4 patch libflac-dev libogg-dev libsndfile1-dev libvorbis-dev libjson-c-dev libjson0 libjson0-dev make

@kerwingroot
Copy link

Hi, i'm still having some problems with installing the plugin.
I'm connected trough ssh and the installer seems to be working ok, but suddenly ends with this and closes connection:

===> Executing: su volumio -c ./bt_pa_config.sh
mkdir: cannot create directory '/home/pi/pyScripts': No such file or directory
===> Executing: sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py
sudo: no tty present and no askpass program specified
Exiting script due to error from: sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py
Exiting script due to error from: su volumio -c ./bt_pa_config.sh
--------------------------------------------
./install.sh: line 291: [: !=: unary operator expected
Ending at @ Tue Dec 12 12:48:59 UTC 2017
 

If anybody has some great ideas to work around this, that would be great!

@xipmix
Copy link
Contributor

xipmix commented Dec 13, 2017

This is an issue that should be reported to the author of bt_pa_config.sh.
There are lots of problems here.

  • The script is hardcoding the /home/pi/ directory which doesn't exist on your system
  • The sudo calls are not handled correctly; bt_pa_config.sh should be run via sudo
  • The install.sh script needs to use proper quoting and seems to have a logic flaw.

@biva
Copy link

biva commented Dec 13, 2017

For information, there's a discussion on the forum: https://volumio.org/forum/a2dp-bluetooth-support-t1475-40.html

And some improvements have been done by @BaReinhard here: https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install

@BaReinhard
Copy link

BaReinhard commented Dec 13, 2017

I have updated the repo with a volumio_fix branch to potentially fix several issues. However, I dont have access to volumio so I can't test at the moment. I potentially have some free time this coming week to setup a volumio pi and testing things out. (Most likely Friday).

@xipmix I am open to making changes and very much open to pull requests with potential fixes you have in mind.

The reason for running as user level was for compiling json-c and libsndfile, also it was originally written for raspbian.

@BaReinhard
Copy link

@xipmix thanks for some of your efforts to fix the install script. I have taken some time and cleaned up most if not all of the code. I believe it fixed most of the issues. I have removed all of the pi only user problems (that I’m aware of). That being said in the coming weeks I am looking to debug with other installs, I just recently got snapcast support so now I’m going to be looking at volumio as it seems like it’s the next big use case for many users. Not sure How inclusive it will be but I’d like for it to work for the average volumio user.

@biva
Copy link

biva commented Dec 28, 2017

@BaReinhard great news, that you're looking into Volumio :) Thank you.
Are you able to test it? I'm available to test it if you want (RPI 3)

@BaReinhard
Copy link

@biva I haven't gotten a chance yet, but i'll setup a branch for other users to test with as well. I am assuming you're more interested in bluetooth than anything else?

@biva
Copy link

biva commented Dec 28, 2017

Yes, bluetooth is my main (probably the single) interest. Thank you again!

@harel-e
Copy link

harel-e commented Dec 29, 2017

+1 on bluetooth

@tkfarr
Copy link

tkfarr commented Jan 3, 2018

+1 bluetooth with volumio.

@BaReinhard
Copy link

BaReinhard commented Jan 4, 2018

Good news ladies and gentlemen. I have it working for volumio. A few issues to iron out but should be done by tomorrow.

UPDATE:

Ok I couldn't help myself, made the fixes heres how to test the volumio branch.

# enable ssh through volumio.local/dev
# ssh to volumio

git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-install
cd super-simple-raspberry-pi-audio-receiver-install
git checkout volumio-fix
sudo ./install.sh

# Choose Bluetooth Option, #4

# Wait for it to complete, and enjoy

It does need testing, it works for my device but I had no configuration changes on my volumio setup. So its possible certain changes on volumio may cause changes.

Please let me know how it goes for you all.

@harel-e
Copy link

harel-e commented Jan 4, 2018

@BaReinhard, thanks a lot for the update.
Following your instructions, I was able to stream via Bluetooth. Awesome !
I'm using Raspberry Pi 3

I noticed that AirPlay got disabled. Is there a way to have both?

Thanks again

@wvengen
Copy link

wvengen commented Jan 4, 2018

Nice! I hope this can eventually get integrated into Volumio. Looking into the scripts, the steps for bluetooth don't look too complicated :)

@BaReinhard
Copy link

@wvengen The scripts for Bluetooth aren’t that difficult especially if they are shipping a baked image it should be easier to do. It’s just integration with other features that will need the tests.

@harel-e what do you mean it got disabled? Does volumio come with airplay installed?

@Zjerardo
Copy link

Zjerardo commented Jan 4, 2018

@BaReinhard: volumio offers Airplay functionality out of the box I think.

I'll be able to reïnstall my volumio system over the weekend and test out your BT functionality! Thanks!

@BaReinhard
Copy link

@harel-e @Zjerardo Thanks, and yes I just checked and airplay functionality is intact with this installation, the metadata shows up on volumio.local . Bluetooth may take more of a chore to get working with volumio. I may not have the spare time for something like this, but I'll be taking a look at it anyway.

@BaReinhard
Copy link

If there is someone who is familiar with creating Volumio plugin's and would like to collaborate to make this functionality easily added, instead of needing to ssh and run commands in the CLI. Please reach out I would love to make this easier for the end user.

@matrix321321
Copy link

@BaReinhard: Thank you !

@jzhao415
Copy link

I confirm BaReinhard's instruction works well for me. I'm on Rpi3 as well. Thanks a lot!

@BaReinhard
Copy link

Yes you can use both with the bluetooth only install, at least from my experience with it. If it does affect AirPlay, it would only require a minor change. Currently, wifi is still enabled during bluetooth playback, but there is an option to turn off wifi when bluetooth is connected, I will have to look where that script is located.

@alfieoriginal
Copy link

alfieoriginal commented Feb 2, 2018

@BaReinhard thanks a lot for your work.
I guess that regardless of this feature is shown in the project page

Ability to disable Wifi on Bluetooth Connection. Needs to be enabled, but solves choppy bluetooth playback if no external wifi card is available.

Still not completely working. Isn't it?

@BaReinhard
Copy link

It should work but needs to be enabled. I haven’t had a chance to debug it if errors do occur. It worked on a few reported occasions but I didn’t ask more in depth questions. I’ll mark I as a todo item, and provide some documentation

@nectronx
Copy link

nectronx commented Feb 3, 2018

hello everyone that's very good. Awesome !!!
I tried it and it worked.
but I need to know 2 things guys.
1111- if anyway we can use the bluetooth as output audio.
SCENARIO : RPI3 with Volumio using a bluetooth speaker. no jack in the speaker. I want to connect my RPI3_Volumio in that speaker via bluetooth.
I would to know if I can find and plugin.

2222- Do anyone know if i can find a AutoFade audio plugin for volumio.

thank you

@BaReinhard
Copy link

What are you looking for as far as auto fade? Slowly increasing audio after a bt connection?

Bluetooth connection to Bluetooth speaker is pretty easy. Take a look at this repo I created, I haven’t tested on volumio and I don’t know that the install script would work for it, but you can follow the code and do it manually. https://github.com/BaReinhard/a2dp_bluetooth

@SonosKiller
Copy link

SonosKiller commented Feb 18, 2018

!! Sorry my bad misspelled !!

Hi trying to reinstall , but it don't work as last time !

git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-instal

Asks for a username and password

Username for 'https://github.com':

@BaReinhard
Copy link

I would ensure that the path is correct: git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-install (with 2 l at the end) I haven't had this issue before so I can't say for sure, but this is a git issue. (Possibly some config issues?)

@plomkiolki
Copy link

hello and thanks for the script.
i ve tested on a raspberry pi 3 after a fresh install of volumio and unfortunately i get an error after running the script:
SSRPARI [Fri Mar 9 21:13:00 UTC 2018] Executing sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py
Fatal error encountered: 'sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py' failed
Fatal error encountered: su volumio -c ./bt_pa_config.sh failed

any idea?

@twoolums
Copy link

twoolums commented Mar 13, 2018

Not sure what I'm doing wrong but I'm getting allot of packages not found from a stock volumio image on a pi3

dpkg-query: no packages found matching pulseaudio-module-bluetooth
dpkg-query: no packages found matching libltdl-dev
dpkg-query: no packages found matching intltool
dpkg-query: no packages found matching libsndfile-dev
dpkg-query: no packages found matching libcap-dev
dpkg-query: no packages found matching libjson0-dev
dpkg-query: no packages found matching libbluetooth-dev
dpkg-query: no packages found matching libsamplerate0-dev
dpkg-query: no packages found matching libsbc-dev
dpkg-query: no packages found matching libspeexdsp-dev
dpkg-query: no packages found matching libssl-dev
dpkg-query: no packages found matching libtdb-dev
dpkg-query: no packages found matching build-essential
dpkg-query: no packages found matching bluez
dpkg-query: no packages found matching bluez-firmware
dpkg-query: no packages found matching libudev-dev
dpkg-query: no packages found matching libreadline-dev
dpkg-query: no packages found matching liborc-0.4-dev

Full Log

SSRPARI [Tue Mar 13 13:23:18 UTC 2018] Restoring Original Files...
.profile
SSRPARI [Tue Mar 13 13:23:18 UTC 2018] Saving /home/volumio/.profile...
.profile=/home/volumio/
SSRPARI [Tue Mar 13 13:23:18 UTC 2018] Select Your Install Options
SSRPARI 1. Install the Raspberry Pi Audio Receiver Car Installation
SSRPARI 2. Install the Raspberry Pi Audio Receiver Home Installation
SSRPARI 3. Install the Raspberry Pi Network Without Internet Installation (For teaching!)
SSRPARI 4. Install the Bluetooth Only Installation
SSRPARI 5. Install the Snapcast Installation (BETA), choose from Snapcast Server, Client, or Both (Requires Minor Configuration)
SSRPARI 6. Install a Custom Raspberry Pi Audio Receiver
Which installation would you like to choose? (1/2/3/4/5/6) : 4
Do you want all the Devices to use the same name? (y/n) : y
Device name: GarageMusic
SSRPARI [Tue Mar 13 13:23:34 UTC 2018] Updating via Apt-Get
SSRPARI [Tue Mar 13 13:24:09 UTC 2018] Upgrading via Apt-Get
SSRPARI [Tue Mar 13 13:24:11 UTC 2018] Running ./bt_pa_install.sh...
SSRPARI [Tue Mar 13 13:24:11 UTC 2018] Checking pulseaudio-module-bluetooth...
dpkg-query: no packages found matching pulseaudio-module-bluetooth
SSRPARI [Tue Mar 13 13:24:11 UTC 2018] Installing pulseaudio-module-bluetooth...
SSRPARI [Tue Mar 13 13:24:32 UTC 2018] Checking python-dbus...
SSRPARI [Tue Mar 13 13:24:32 UTC 2018] Dependency python-dbus already met...
SSRPARI [Tue Mar 13 13:24:32 UTC 2018] Checking libltdl-dev...
dpkg-query: no packages found matching libltdl-dev
SSRPARI [Tue Mar 13 13:24:32 UTC 2018] Installing libltdl-dev...
SSRPARI [Tue Mar 13 13:25:10 UTC 2018] Checking pulseaudio...
SSRPARI [Tue Mar 13 13:25:10 UTC 2018] Dependency pulseaudio already met...
SSRPARI [Tue Mar 13 13:25:10 UTC 2018] Checking libtool...
SSRPARI [Tue Mar 13 13:25:10 UTC 2018] Dependency libtool already met...
SSRPARI [Tue Mar 13 13:25:10 UTC 2018] Checking intltool...
dpkg-query: no packages found matching intltool
SSRPARI [Tue Mar 13 13:25:10 UTC 2018] Installing intltool...
SSRPARI [Tue Mar 13 13:25:39 UTC 2018] Checking libsndfile-dev...
dpkg-query: no packages found matching libsndfile-dev
SSRPARI [Tue Mar 13 13:25:39 UTC 2018] Installing libsndfile-dev...
SSRPARI [Tue Mar 13 13:25:49 UTC 2018] Checking libcap-dev...
dpkg-query: no packages found matching libcap-dev
SSRPARI [Tue Mar 13 13:25:49 UTC 2018] Installing libcap-dev...
SSRPARI [Tue Mar 13 13:25:55 UTC 2018] Checking libjson0-dev...
dpkg-query: no packages found matching libjson0-dev
SSRPARI [Tue Mar 13 13:25:56 UTC 2018] Installing libjson0-dev...
SSRPARI [Tue Mar 13 13:26:03 UTC 2018] Checking libasound2-dev...
SSRPARI [Tue Mar 13 13:26:03 UTC 2018] Dependency libasound2-dev already met...
SSRPARI [Tue Mar 13 13:26:03 UTC 2018] Checking libavahi-client-dev...
SSRPARI [Tue Mar 13 13:26:03 UTC 2018] Dependency libavahi-client-dev already met...
SSRPARI [Tue Mar 13 13:26:03 UTC 2018] Checking libbluetooth-dev...
dpkg-query: no packages found matching libbluetooth-dev
SSRPARI [Tue Mar 13 13:26:03 UTC 2018] Installing libbluetooth-dev...
SSRPARI [Tue Mar 13 13:26:10 UTC 2018] Checking libglib2.0-dev...
SSRPARI [Tue Mar 13 13:26:11 UTC 2018] Installing libglib2.0-dev...
SSRPARI [Tue Mar 13 13:26:24 UTC 2018] Checking libsamplerate0-dev...
dpkg-query: no packages found matching libsamplerate0-dev
SSRPARI [Tue Mar 13 13:26:24 UTC 2018] Installing libsamplerate0-dev...
SSRPARI [Tue Mar 13 13:26:32 UTC 2018] Checking libsbc-dev...
dpkg-query: no packages found matching libsbc-dev
SSRPARI [Tue Mar 13 13:26:32 UTC 2018] Installing libsbc-dev...
SSRPARI [Tue Mar 13 13:26:37 UTC 2018] Checking libspeexdsp-dev...
dpkg-query: no packages found matching libspeexdsp-dev
SSRPARI [Tue Mar 13 13:26:37 UTC 2018] Installing libspeexdsp-dev...
SSRPARI [Tue Mar 13 13:26:45 UTC 2018] Checking libssl-dev...
dpkg-query: no packages found matching libssl-dev
SSRPARI [Tue Mar 13 13:26:45 UTC 2018] Installing libssl-dev...
SSRPARI [Tue Mar 13 13:26:54 UTC 2018] Checking libtdb-dev...
dpkg-query: no packages found matching libtdb-dev
SSRPARI [Tue Mar 13 13:26:54 UTC 2018] Installing libtdb-dev...
SSRPARI [Tue Mar 13 13:27:00 UTC 2018] Checking libbluetooth-dev...
SSRPARI [Tue Mar 13 13:27:00 UTC 2018] Dependency libbluetooth-dev already met...
SSRPARI [Tue Mar 13 13:27:00 UTC 2018] Checking intltool...
SSRPARI [Tue Mar 13 13:27:01 UTC 2018] Dependency intltool already met...
SSRPARI [Tue Mar 13 13:27:01 UTC 2018] Checking autoconf...
SSRPARI [Tue Mar 13 13:27:01 UTC 2018] Dependency autoconf already met...
SSRPARI [Tue Mar 13 13:27:01 UTC 2018] Checking autogen...
SSRPARI [Tue Mar 13 13:27:01 UTC 2018] Installing autogen...
SSRPARI [Tue Mar 13 13:27:13 UTC 2018] Checking automake...
SSRPARI SSRPARI [Tue Mar 13 13:27:13 UTC 2018] Dependency automake already met...
[Tue Mar 13 13:27:13 UTC 2018] Checking build-essential...
dpkg-query: no packages found matching build-essential
SSRPARI [Tue Mar 13 13:27:13 UTC 2018] Installing build-essential...
SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Checking libasound2-dev...
SSRPARI SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Dependency libasound2-dev already met...
[Tue Mar 13 13:27:37 UTC 2018] Checking libflac-dev...
SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Dependency libflac-dev already met...
SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Checking libogg-dev...
SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Dependency libogg-dev already met...
SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Checking libtool...
SSRPARI SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Dependency libtool already met...
[Tue Mar 13 13:27:37 UTC 2018] Checking libvorbis-dev...
SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Dependency libvorbis-dev already met...
SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Checking pkg-config...
SSRPARI SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Dependency pkg-config already met...
[Tue Mar 13 13:27:37 UTC 2018] Checking python...
SSRPARI SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Dependency python already met...
[Tue Mar 13 13:27:37 UTC 2018] Executing addgroup --system pulse
SSRPARI [Tue Mar 13 13:27:37 UTC 2018] Executing adduser --system --ingroup pulse --home /var/run/pulse pulse
SSRPARI [Tue Mar 13 13:27:38 UTC 2018] Executing addgroup --system pulse-access
SSRPARI [Tue Mar 13 13:27:38 UTC 2018] Executing adduser pulse audio
SSRPARI [Tue Mar 13 13:27:38 UTC 2018] Executing adduser root pulse-access
SSRPARI [Tue Mar 13 13:27:38 UTC 2018] Executing adduser pulse lp
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
bluez* pulseaudio-module-bluetooth*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 2920 kB disk space will be freed.
(Reading database ... 30012 files and directories currently installed.)
Removing pulseaudio-module-bluetooth (5.0-13) ...
Removing bluez (5.23-2+rpi2) ...
Purging configuration files for bluez (5.23-2+rpi2) ...
Processing triggers for dbus (1.8.22-0+deb8u1) ...
SSRPARI [Tue Mar 13 13:27:47 UTC 2018] Checking bluez...
dpkg-query: no packages found matching bluez
SSRPARI [Tue Mar 13 13:27:47 UTC 2018] Installing bluez...
SSRPARI [Tue Mar 13 13:27:56 UTC 2018] Checking bluez-firmware...
dpkg-query: no packages found matching bluez-firmware
SSRPARI [Tue Mar 13 13:27:56 UTC 2018] Installing bluez-firmware...
SSRPARI [Tue Mar 13 13:28:03 UTC 2018] Checking libusb-dev...
SSRPARI [Tue Mar 13 13:28:03 UTC 2018] Installing libusb-dev...
SSRPARI [Tue Mar 13 13:28:09 UTC 2018] Checking libdbus-1-dev...
SSRPARI SSRPARI [Tue Mar 13 13:28:09 UTC 2018] Dependency libdbus-1-dev already met...
[Tue Mar 13 13:28:09 UTC 2018] Checking libglib2.0-dev...
SSRPARI SSRPARI [Tue Mar 13 13:28:09 UTC 2018] Dependency libglib2.0-dev already met...
[Tue Mar 13 13:28:09 UTC 2018] Checking libudev-dev...
dpkg-query: no packages found matching libudev-dev
SSRPARI [Tue Mar 13 13:28:09 UTC 2018] Installing libudev-dev...
SSRPARI [Tue Mar 13 13:28:16 UTC 2018] Checking libical-dev...
dpkg-query: no packages found matching libical-dev
SSRPARI [Tue Mar 13 13:28:16 UTC 2018] Installing libical-dev...
SSRPARI [Tue Mar 13 13:28:23 UTC 2018] Checking libreadline-dev...
dpkg-query: no packages found matching libreadline-dev
SSRPARI [Tue Mar 13 13:28:23 UTC 2018] Installing libreadline-dev...
SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Checking libltdl-dev...
SSRPARI SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Dependency libltdl-dev already met...
[Tue Mar 13 13:28:30 UTC 2018] Checking libsamplerate0-dev...
SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Dependency libsamplerate0-dev already met...
SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Checking libsndfile1-dev...
SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Dependency libsndfile1-dev already met...
SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Checking libasound2-dev...
SSRPARI SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Dependency libasound2-dev already met...
[Tue Mar 13 13:28:30 UTC 2018] Checking libavahi-client-dev...
SSRPARI SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Dependency libavahi-client-dev already met...
[Tue Mar 13 13:28:30 UTC 2018] Checking libspeexdsp-dev...
SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Dependency libspeexdsp-dev already met...
SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Checking liborc-0.4-dev...
dpkg-query: no packages found matching liborc-0.4-dev
SSRPARI [Tue Mar 13 13:28:30 UTC 2018] Installing liborc-0.4-dev...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Checking intltool...
SSRPARI SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Dependency intltool already met...
[Tue Mar 13 13:28:36 UTC 2018] Checking libtdb-dev...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Dependency libtdb-dev already met...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Checking libssl-dev...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Dependency libssl-dev already met...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Checking libjson0-dev...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Dependency libjson0-dev already met...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Checking libsbc-dev...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Dependency libsbc-dev already met...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Checking libcap-dev...
SSRPARI [Tue Mar 13 13:28:36 UTC 2018] Dependency libcap-dev already met...
SSRPARI [Tue Mar 13 13:28:37 UTC 2018] Running su volumio -c ./bt_pa_config.sh...
SSRPARI [Tue Mar 13 13:28:37 UTC 2018] Executing sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py
Fatal error encountered: 'sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py' failed
Fatal error encountered: su volumio -c ./bt_pa_config.sh failed

@plomkiolki
Copy link

you need to use volumio version 2.348 to make it work.
it doesn t with the latest version.

@wullxz
Copy link

wullxz commented Aug 21, 2018

The reason for the Fatal errors in bt_pa_config.sh is, that it is started as user 'volumio' which has no right to use sudo to become root without password. The exact error message, which gets swallowed by the exc function in functions.sh is: sudo: no tty present and no askpass program specified.

It is possible to temporarily solve that problem by adding the following line to /etc/sudoers and removing it after the installation ran successfully:
volumio ALL=(ALL) NOPASSWD: ALL

I thought about doing that automatically in install.sh but I'd rather know the reason to start bt_pa_config.sh as 'volumio' instead of root first @BaReinhard ?

@wullxz
Copy link

wullxz commented Aug 28, 2018

I created a pull request for @BaReinhard's Super-Simple-Raspberry-Pi-Audio-Receiver-Install script to fix the sudo issue: BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install#140

@rototom
Copy link

rototom commented Oct 1, 2018

I installed this plugin but cant find any configuration. What do I have to do after installing?

@SonosKiller
Copy link

Assuming you are using " @BaReinhard's Super-Simple-Raspberry-Pi-Audio-Receiver-Install script"
Nothing! (maybe a reboot) and search for BT device (named during the install)

I don't know if this information still is correct (but I'm stuck/stopped on ver 2.348)

@plomkiolki commented on 11 Apr
you need to use volumio version 2.348 to make it work. it doesn t with the latest version.

@rototom
Copy link

rototom commented Oct 1, 2018

I dont find any bluetooth devices...

@SonosKiller
Copy link

are you using ver 2.348 ?

@rototom
Copy link

rototom commented Oct 1, 2018

2.457

@SonosKiller
Copy link

I don't know if it works with versions after 2.348!
Did some testing after 2.384 but never found a way to make it work, so I did a clean install of 2.384 on my "lab/test/demo" Volumio
I shall see if I can find a link to 2.384

@rototom
Copy link

rototom commented Oct 1, 2018

So, I have to install an older version of volumio to get bluetooth capabilities?
Not sure, if I want that...

@SonosKiller
Copy link

Well sometimes you have to choose to eat or to have the cookie :)
There is some other threads about BT on the Volumio forums
https://volumio.org/forum/

@wullxz
Copy link

wullxz commented Oct 1, 2018

@rototom: what's the issue? Does the installer stop with an error?
If so, run the follwing commands in the Super-Simple-Raspberry... directory to pull my fix for that (runs with the latest volumio version):

git fetch origin +refs/pull/140/merge
git checkout FETCH_HEAD

It will checkout my fix. After that's done, try the install script again. If you want to know more about what @BaReinhard's script is doing, have a look at bt_pa_config.sh starting from line 47.

@SonosKiller
Copy link

Hi @wullxz

Is this the correct series of commands ?

git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-install
cd super-simple-raspberry-pi-audio-receiver-install
git checkout volumio-fix

git fetch origin +refs/pull/140/merge
git checkout FETCH_HEAD

sudo ./install.sh

@wullxz
Copy link

wullxz commented Oct 1, 2018

I think I didn't checkout the volumio-fix branch. But apart from that, yes.

@SonosKiller
Copy link

Okay and thanks @wullxz
When times allows should I do a clean install and your fix on my "outdoor room" Volumio.
Will report here later !

@SonosKiller
Copy link

SonosKiller commented Oct 4, 2018

Hi @wullxz
Have done a couple of BT install on a clean 2.457
Tried with and without the "Volumio fix" but they all ended the same way
An error in the bt_pa_config.sh script !

SSRPARI [Thu Oct 4 19:24:44 UTC 2018] Running su volumio -c ./bt_pa_config.sh... SSRPARI [Thu Oct 4 19:24:44 UTC 2018] Executing sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py Fatal error encountered: 'sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py' failed Fatal error encountered: su volumio -c ./bt_pa_config.sh failed

Did manually run the commands in the script (See attached file. Lines marked #!! is the one I run and lines added into corresponding files)

After that it actually worked :) (with a hacking sound, but that I will fix later with a usb dongle )
I have two Volumios with BT one is my old runing on ver 2.384 and this one running on 2.457 and there semes to be some kind of identity conflict, I can't see both as devices at the same time. Any ideas ?

Next question , will this survive an version update ?


bt_pa_config.sh.txt

@SonosKiller
Copy link

Well well :)

It survived an update to 2.461 with the positive side effect that I don't have any hacking sound anymore!? (without a Usb dongle) Tested from a Android phone and Windows computer

With some anxiety to destroy a working Volumio I did a update to 2.502 and that also worked just fine

@TeChn4K
Copy link

TeChn4K commented Jan 13, 2020

Any update on this awesome feature?
Does it work with @BaReinhard instruction and last release (2.692)?

@volumio
Copy link
Owner

volumio commented Jan 13, 2020

@TeChn4K Volumio has now the capability to play bluetooth audio via AD2P (bluetooth receiver). The functionality is provided if you have a MyVolumio account https://volumio.org/my-volumio-overview/

@volumio volumio closed this as completed Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests