Bluetooth Speaker Plugin

The node modules are compiled for a wrong version/ are missing, try removing the node_modules folder and installing them again.
Although, FWIW, udev should already be included in /volumio/node_modules so you could perform some surgery/symlink stuff to help it…

Thank you for the answe. It’s great. Sadly my n00b level doesn’t cope with it well :slight_smile: I can surely see udev in the /volumio/modules.

did anybody make this to work? i tried installing it but i stuck when you have to enable the plugin…

Continuing the discussion from Bluetooth Speaker Plugin:

Continuing the discussion from Bluetooth Speaker Plugin:

Hi!
I’m new to the whole raspberry pi and volumio thing.
I flashed the latest version of volumio to a sd card and it’s running smoothly on my raspberry pi 4b.
Now I’m trying to get the bluetooth running to listen to my music via my bluetooth loudspeaker.
I managed to enable ssh and got putty to work.
unfortunately I can’t install the ui plugin.
Via ssh I downloaded the ui.zip, unpacked it in a newly created folder, moved into the folder and I can see the content.
volumio package install is not working. The massage is: no package found

I also have no idea how to just drag and drop the bluetooth_controller.zip into the front end of volumios plugin manager…but maybe this works so easy as it sounds after the ui plugin install works…

Can anyone help? Do you need more information?
Thanks for your help in advance!

Not knowing the current status of this work, I would add the comment that support for Bluetooth speakers would be a welcome enhancement, as the technology has advanced to the point that it can deliver an experience within a very agreeable standard for many listeners.

Good night. Steped on this thread by search for a BT plugin, at moment i’m using a beta version of Volumio 3 and pydPier to control a 20x4 lcd, wich is working fine. Made the steps described here and when try to enable the plugin get errors. Reboot several times and nothing, on the other hand pydPiper stop working. For lucky I have a backup image. Is there other way to install this plugin? My sustem is running fine, but the ideia of a bluetooth speaker is great anyway! 73’s

Hallo I am new And I like to connect a Bluetooth speaker to Volumio on the Raspberry.
I have made the installation, the plugin is shown in Volumio. I have switched on but it stands always on inactive.can somebody help me to get it running?

Hi.
I’ve modified Bluetooth Manager plugin to make it work on latest image thanks to information here and there.
It is strongly recommended to try it with starting from clean Volumio image because the process during installation does a little bit nasty, therefore, it could break something which has already worked in your environment.
I confirmed it works at VERSION 2.907 and VERSION 2.909 with Raspberry Pi 3 ModelB+ and Raspberry Pi 4 Model B.

  1. Download zip files below
    bluetooth_controller.zip (4.2 MB) www.zip (4.5 MB) www3.zip (6.9 MB)

  2. Access http://volumio/dev/ and enable SSH.

  3. From your local machine (Git Bash etc)

    $ scp www.zip www3.zip volumio@volumio:~/
    $ ssh volumio@volumio

  4. After ssh login

    $ cd /volumio/http
    $ mv www www_bak
    $ mv www3 www3_bak
    $ mkdir www && cd www
    $ miniunzip ~/www.zip
    $ cd …
    $ mkdir www3 && cd www3
    $ miniunzip ~/www3.zip

  5. Access http://volumio/
    Settings → Appearance
    Switch User Interface Layout Design from “Contemporary” to “Classic” → Save

  6. Settings → Plugins → Upload Plugin
    Drag and Drop bluetooth_controller.zip
    Wait patiently as Plugin Install progress will hold at 70% for a long time.
    It will finally finish within 10 min with Raspberry Pi 3 ModelB+ and 7 min with Raspberry Pi 4 Model B.
    Click Enable Plugin. Bluetooth Manager is still Inactive at this timing
    After plugin installed, you can switch UI back to “Contemporary” if you want.

  7. Then reboot Volumio once.

  8. Settings → Plugins → Installed Plugins
    You’ll find Bluetooth Manager is Active (in green lamp)

  9. Settings → Playback Options → Output Device → Select any (HDMI Out, Headphones or others) → Save
    This is needed to update /etc/mpd.conf. (for the first time only)

  10. Settings → Plugins → Installed Plugins → Bluetooth Manager → Settings → Bluetooth Devices → Refresh
    Click Connect beside target bluetooth device
    Refresh several times to confirm if selected device is connected.

  11. Then play any tracks and you can listen through selected bluetooth receiver.

Thanks.

Just installed, works for me no issues found at this moment

thank you very much

It works for me to play radio stations, but I can not get it to work with spotify. Any tips here?

The Raspberry/Volumio Bluetooth codec is only SBC or can we expect anything better?

@mstruebing

Thanks for your review. For Spotify plugin,

$ cd /data/plugins/music_service/spop
$ cp spop.conf.tmpl spop.conf.tmpl.bak
$ nano spop.conf.tmpl

[sox]
output_type = alsa
#output_name = ${outdev}
output_name = bluealsa

then save any device of Audio Output in Playback Options and reboot Volumio2.

I have no idea for the moment to output both bluetooth and ordinary device.

1 Like

For Volumio Spotify Connect2 plugin, please try this:

$ cd /data/plugins/music_service/volspotconnect2
$ cp volspotify.tmpl volspotify.tmpl.bak
$ nano volspotify.tmpl

[Output]
#device = ‘${outdev}’
device = ‘bluealsa’
initial-volume = ${initvol}
mixer = ‘${mixer}’ # softvolume or alsa
mixer-name = ‘${mixname}’
#mixer-card = ‘${mixdev}’
#mixer-index = ${mixidx}
#Disable alsa’s mapped volume scale (cubic). Default false
mixer-linear-volume = ${mixlin}
backend = ‘alsa’

then, reboot volumio2.
select bluetooth device by Bluetooth Manager.
connect device (Volumio) from Spotify app.

Thanks.

hallo id like to use the Plugin but i can not activate it in volumio.
messages: plugin can not be activatet, pleas install the newest version.

here the log if i will activate

#Sep 25 09:21:46 volumio volumio[1132]: info: Enabling plugin bluetooth_controller
Sep 25 09:21:46 volumio volumio[1132]: info: Loading plugin “bluetooth_controller”…
Sep 25 09:21:46 volumio volumio[1132]: error: !!! WARNING !!!
Sep 25 09:21:46 volumio volumio[1132]: error: The plugin audio_interface/bluetooth_controller failed to load, setting it to stopped. Error: Error: Cannot find module ‘/data/plugins/audio_interface/bluetooth_controller/node_modules/udev/build/node-v57-linux-arm/udev.node’
Sep 25 09:21:46 volumio volumio[1132]: error: Stack trace: Error: Cannot find module ‘/data/plugins/audio_interface/bluetooth_controller/node_modules/udev/build/node-v57-linux-arm/udev.node’
Sep 25 09:21:46 volumio volumio[1132]: at Function.Module._resolveFilename (module.js:547:15)
Sep 25 09:21:46 volumio volumio[1132]: at Function.Module._load (module.js:474:25)
Sep 25 09:21:46 volumio volumio[1132]: at Module.require (module.js:596:17)
Sep 25 09:21:46 volumio volumio[1132]: at require (internal/module.js:11:18)
Sep 25 09:21:46 volumio volumio[1132]: at Object. (/data/plugins/audio_interface/bluetooth_controller/node_modules/udev/udev.js:4:12)
Sep 25 09:21:46 volumio volumio[1132]: at Module._compile (module.js:652:30)
Sep 25 09:21:46 volumio volumio[1132]: at Object.Module._extensions…js (module.js:663:10)
Sep 25 09:21:46 volumio volumio[1132]: at Module.load (module.js:565:32)
Sep 25 09:21:46 volumio volumio[1132]: at tryModuleLoad (module.js:505:12)
Sep 25 09:21:46 volumio volumio[1132]: at Function.Module._load (module.js:497:3)
Sep 25 09:21:46 volumio volumio[1132]: at Module.require (module.js:596:17)
Sep 25 09:21:46 volumio volumio[1132]: at require (internal/module.js:11:18)
Sep 25 09:21:46 volumio volumio[1132]: at Object. (/data/plugins/audio_interface/bluetooth_controller/AVRCP.js:2:12)
Sep 25 09:21:46 volumio volumio[1132]: at Module._compile (module.js:652:30)
Sep 25 09:21:46 volumio volumio[1132]: at Object.Module._extensions…js (module.js:663:10)
Sep 25 09:21:46 volumio volumio[1132]: at Module.load (module.js:565:32)
Sep 25 09:21:46 volumio volumio[1132]: error: !!! WARNING !!!
Sep 25 09:21:46 volumio volumio[1132]: info: Done.

please help

I can play music via spotify through bluetooth now, but the volume will not get adjusted.

Same Problem here.

@Tueftler1983 hi, It seems to me that you used original ‘bluetooth_controller.zip’ that doesn’t work with latest version. try Bluetooth Speaker Plugin - #149 by elehobica

@mstruebing @Daniel_Ehrhardt it’s simply not supported. you need to adjust volume from bluetooth receiver side. I know this could be discouraging some use cases.

Hello !
First of all thank you very much for that plugin, it is the reason why I chose volumio (2.915) at the moment.

I got a ultimate ears wonderboom 2 bluetooth speaker and like mstruebing Daniel_Ehrhardt, I can’t manage the volume. The speaker’s buttons don’t work and the volume on the webUI does’nt apply to the speaker.
Will it be in a future update ? Any info on this is appreciated @elehobica

@intoxx Hi. Thanks for your message.
It seems that I didn’t understand what happened on your side (sorry to mstruebing, Daniel_Ehrhardt).
Based on what I had tested with several bluetooth receiver devices including speaker type,
my assumption was that the volume control on receiver device side could be always possible even though the volume reflection from webUI is not supported.
but, you mean even volume control buttons on “ultimate ears wonderboom 2” device side become uncontrollable when connected to volumio Bluetooth Manager plugin, right?
I need to have such a receiver device to try to analyze the cause.
Does it happen only with updated Bluetooth Manager plugin or happen with original Bluetooth Manager plugin, too?
If someone could report I’ll appreciate it.
Thanks.