[PLUGIN] IR Remote Controller feedback thread

My test setup, raspberry 2, ir receiver.

spotify plugin crashes each time by using the IR Remote. I tested my own lircrc and lircd.conf by putty, works fine.

I solved my problem i hope you can come back usefulā€¦
I have a raspberry 2 with pifi-dac+ (grande accoppiata :wink: grazie michelangelo sei grande :wink: :slight_smile: )and I managed to run it with the remote of Apple (A1294).
I think the problem is related to the fact that the plugin configuration file (lircd.conf) is incorrect for my system :confused: .
I regenerated it:

  1. I set the pin on 26 (file /data/plugins/system_controller/ir_controller/index.js) - exec (ā€™/ usr / bin / sudo / usr / bin / dtoverlay lyric-rpi gpio_in_pin = 26ā€™, {uid: 1000, gid: 1000} -) and reboot the system.
  2. I checked that the receiver worked by launching the ssh shell command: ā€œmode2 -d /dev/lirc0ā€ (put in standby mode and pressing the remote buttons you see the frequency codes - ctrl + x to exit)
  3. If the previous test runs, you can create the lircd.conf file with the command ā€œirrecord -d /dev/lirc0 $HOME/lircd.confā€ (follow the instructions to complete the file creation)
  4. Replace the new lircd.conf file in /data/plugins/system_controller/ir_controller/configurations/Apple Remote A1294, making sure that the button names are the same as in llirc.conf and in lircrc
  5. Save another time the plugin from UI and restart the service with ā€œsudo /etc/init.d/lirc restartā€

And everything worked great

GPIO setting is really missing.

The lircd.conf for Cambridge Audio RC-651AC is attached. lircd.conf.zip (886 Bytes)

command for load playlist:
/usr/bin/curl ā€œhttp://127.0.0.1:3000/api/v1/commands/?cmd=playplaylist&name=PlaylistNameā€

Iā€™ve got the same problem with this configuration (RPi3 + PiFi + A1156).

  1. Lirc is working with GPIO 26 (got codes from mode2)
  2. Iā€™ve fix plugin code in line 221 with proper GPIO.
  3. Iā€™ve done lircd.conf with irrecord
    andā€¦
    itā€™s not working :frowning:

Any ideas?

1 Like

I created a profile for my remote and now I want to create buttons (I have one of those fancy remotes with LCD) for my playlists.
Whatā€™s the best way to load a playlist?

Iā€™m doing it with MPC but Volumio doesnā€™t know something is playing and Pause/Stop donā€™t work.

1 Like

Please donā€™t use mpc, but send commands directly to volumio. See here the API:
volumio.github.io/docs/API/WebSocket_APIs.html

I think I found the answer to my own question :slight_smile:

:3000/api/v1/commands/?cmd=playplaylist&name=House

I noticed a problem with webradio and the play/pause function of my remote (ODroid). This will also be a problem with other remotes with only a play/pause button and no stop button.
Pushing play/pause when playing webradio pauses the stream instead of stopping it (which is what the GUI does), putting the player in the wrong state and preventing the user from restarting the stream with the remote.

I created a pull request with a fix.

1 Like

Nice, the pull request was accepted.

I now created a pull request that enables repeating keys for volume and seek (i.e. holding volume up or down keeps changing it), and enables the power button to shutdown Volumio with the ODroid remote.

Youā€™re on fire!!!

I only use my Volumio to listen to webradio so the pause issue was really annoying. Thank you.

Youā€™re welcome :slight_smile:

1 Like

Just wanted to know if anyone has setup preset internet radio stations selection via RC6 remote. I have no problem using browser or android app to controlā€¦but my parents are not tech savvy and want nothing to do with tablets or smart phones. They still use flip phones. :laughing: Just wondering how hard it would be to have a list of ten or so streaming internet stations that could be switch via an RC6 by pressing a number.

I use volumio for playing radio stations.

Set numbers to the command:

/usr/bin/curl "http://127.0.0.1:3000/api/v1/commands/?cmd=play&N=5"

N is the position of the radio station in the queue. First radio has N=0.

There are two bugs.
Radio names disappear after loading the playlist with radios. github.com/volumio/Volumio2/issues/1270
NEXT and PREV commands are not working if radio is playing github.com/volumio/Volumio2/issues/1251

Hi all

Great idea controlling Volumio with ir+remote.

However it will not work for meā€¦this is what I did

  1. Installing the plugin
  2. Choosing Apple Remote A1294, and press Save
  3. Connecting - rpi shutdown meanwhile - a 38khz (IRM38) ir receiver to 5 v, Gnd and Out on GPIO 25 (pin 22) - and im pretty sure of the ir pinout
  4. Turn on RPI, of course
  5. Trying my Apple Remote with no resultā€¦

Also tried a TSOP23438 - only 3,3V - and also tried GPIO 26, 18ā€¦
Any helpā€¦?

GREAT IDEA! This is about all Volumio needs to become the ā€œperfectā€ music playback solution. I have found a couple of proposed solutions to use an IR remote with Volumio but all that I tried have failed, maybe because the are obsolete.

Waiting with impatience :slight_smile:

Regards

LeVolatile

P.S. - btw I vought recently a JustBoom DAC and I am VERY satisfied with it. It sounds really good.

Hello,
I can not update the plugin. I see this error.

The following error occurred when installing the plugin: Error

Hello,

I use a pine64, with this remote.
Would there be a way to use it ?

thanks
Mathias

Hello,

I have ordered a Justboom remote controller, and being a total noob on GPIO it took me a (short) while to install it.
What was tricky is that I had to actually ā€œsaveā€ the configuration for the plugin (plugin => configuration => save) even if it was already set up as Justboom Remote. This was vicious, and it may be look up as an improvement :exclamation:
In the otherhand, the remote works fine and the plugin too. Iā€™m very pleased with it :slight_smile:

Iā€™m currently working on mapping more mapping for the remote : power now enqueues my favorites radio, and I will map other buttons to playlists.
Have you guys thought of proposing advanced mapping option in the plugin configuration?

Last question: by doing some custom mapping, I have to modify the lircrc of the plugin itself. Is there any other clean way to do it? Because by doing this, the work will be erased on any plugin update. And if I want to share my work, it will be a modified plugin.

Best,
Cosmita

I had the same problem. I checked that my Apple Remote was the A1294 and got it working by replacing the file at
data/plugins/system_controller/ir_controller/configurations/Apple\ Remote\ A1294\lircd.conf
with the following (I can only assume either the provided lircd.conf is incorrect or there are multiple versions of the Apple remote):

Please make this file available to others

by sending it to lirc@bartelmus.de

this config file was automatically generated

using lirc-0.9.0-pre1(default) on Sun Nov 26 18:41:37 2017

contributed by

brand: /home/volumio/out.conf

model no. of remote control:

devices being controlled by this remote:

begin remote

name /home/volumio/out.conf
bits 8
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9052 4439
one 586 1635
zero 586 536
ptrail 586
repeat 9059 2207
pre_data_bits 16
pre_data 0x77E1
post_data_bits 8
post_data 0xD8
gap 106949
toggle_bit_mask 0x0

  begin codes
      KEY_MENU                 0x40
      KEY_PLAY                 0x7A 0x20
      KEY_LEFT                 0x10
      KEY_RIGHT                0xE0
      KEY_UP                   0xD0
      KEY_DOWN                 0xB0
      KEY_ENTER                0xBA 0x20
  end codes

end remote

Hi guys,

Sorry for the noob question: I just bought a IQaudIO Pi-DigiAMP+ that I put on top of my RPI3. Can you tell me if something like the TSOP4838 IR receiver can be mounted on it and used with the plugin?

Thanks for any pointer.

-j