USB multimedia remote for Volumio

I would like to connect a wireless physical remote to my Primo, to control play, pause and the volume. Therefore I ordered a cheap remote, like this one, to see how far that would get me.

When plugged it in, the remote can turn the volume up and down, and shut the device off. But that’s it.

I searched the forum, but it ain’t clear to me, if it’s possible to get a simple USB remote like this to work.

Can you somehow map the buttons in Volumio, or is there another good remote that’s plug and play?

Thanks!

Have you tried the USB Flirc dongle? You could probably use the remote you bought and then use FLIRC program to program it. That is what I did.

Seems like BT remote, have a look here. This script is alomst fool proof.

You can define the volumio commands to a button, like:

command = 'volumio toggle'
command = 'volumio previous'
command = 'volumio next'
command = 'volumio seek plus'
command = 'volumio seek minus'
command = 'volumio volume minus'
command = 'volumio volume plus'
command = 'volumio clear'

Thanks for the suggestions!

I actually don’t think it’s Bluetooth, but functions like a standard wireless keyboard, like a Logitech, over the 2,4 GHz (?) frequency.

I suppose the guide won’t work for that? It’s also a little too advanced for me, I was hoping to achieve it a little easier, like with my full size keyboard with media buttons, that just works :slightly_smiling_face:

Yeah somewhere at the bottom I saw it’s IR.
Seems most of the commands are not recognized by triggerhappy.
There is also a plugin “IR Controller” But it works with a IR receiver connected to a GPIO pin.

I’m sure now the remote neither use IR or Bluetooth, but 2.4 Ghz as many wireless keyboards.

If anybody want’s to use a similar USB remote I got mine working with the help from this thread [GUIDE] Keyboard shortcuts with triggerhappy - #20 by pauljwells

You have to enable SSH. Then map what your different remote button are called with this command:

sudo thd --dump /dev/input/event*

Now you can edit what your remote buttons does in the following config file:

sudo nano /etc/triggerhappy/triggers.d/audio.conf

Then restart “triggerhappy” with the following command and that’s it:

sudo systemctl restart triggerhappy

I could map all buttons except the “mouse button”, as it switches the functions between keyboard inputs and mouse inputs.

Now the my remote can play/pause, skip between tracks, stop, seek, clear the queue, mute, toggle the volume, select the random and repeat functions, and even start a webradio channel.

My config file is as follows, where you can insert an url to your favorite webradio channel:

#VOLUMIO TRIGGERHAPPY CONFIGURATION FILE

#VOLUME UP
KEY_VOLUMEUP 1 /usr/local/bin/volumio volume plus

#VOLUME DOWN
KEY_VOLUMEDOWN 1 /usr/local/bin/volumio volume minus

#MUTE TOGGLE
KEY_MUTE 1 /usr/local/bin/volumio volume toggle

#PLAY PAUSE TOGGLE
KEY_ENTER 1 /usr/local/bin/volumio toggle

#STOP
KEY_BACKSPACE 1 /usr/local/bin/volumio stop

#CLEAR QUEUE
KEY_DELETE 1 /usr/local/bin/volumio clear

#NEXT
KEY_RIGHT 1 /usr/local/bin/volumio next

#PREVIOUS
KEY_LEFT 1 /usr/local/bin/volumio previous

#SEEK FORWARD
KEY_UP 1 /usr/local/bin/volumio seek plus

#SEEK BACKWARD
KEY_DOWN 1 /usr/local/bin/volumio seek minus

#REPEAT
KEY_BACK 1 /usr/local/bin/volumio repeat

#RANDOM
KEY_HOMEPAGE 1 /usr/local/bin/volumio random

#WEBRADIO
KEY_COMPOSE 1 /usr/bin/curl -i --header "Content-Type: application/json" localhost:3000/api/v1/replaceAndPlay --data '{  "service": "webradio",  "type": "webradio",  "title": "INSERT WEBRADIO NAME",  "uri": "INSERT WEBRADIO URL", "albumart": "INSERT WEBRADIO LOGO URL"}'
1 Like