[PLUGIN] IR Remote Controller feedback thread

Discuss, contribute and orient Volumio development!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

[PLUGIN] IR Remote Controller feedback thread

Postby forfiet » Wed Oct 31 2018 12:10

well..... this is what I got using that url (and last time aswell)

Code: Select all
Volumio Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
volumio@volumio:~$ wget https://github.com/volumio/volumio-plugins/blob/master/plugins/accessory/ir_controller
converted 'https://github.com/volumio/volumio-plugins/blob/master/plugins/accessory/ir_controller' (ANSI_X3.4-1968) -> 'https://github.com/volumio/volumio-plugins/blob/master/plugins/accessory/ir_controller' (UTF-8)
--2018-10-31 12:05:51--  https://github.com/volumio/volumio-plugins/blob/master/plugins/accessory/ir_controller
Resolving github.com (github.com)... 192.30.255.113, 192.30.255.112
Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/volumio/volumio-plugins/tree/master/plugins/accessory/ir_controller [following]
converted 'https://github.com/volumio/volumio-plugins/tree/master/plugins/accessory/ir_controller' (ANSI_X3.4-1968) -> 'https://github.com/volumio/volumio-plugins/tree/master/plugins/accessory/ir_controller' (UTF-8)
--2018-10-31 12:05:52--  https://github.com/volumio/volumio-plugins/tree/master/plugins/accessory/ir_controller
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'ir_controller.3'

ir_controller.3                                                 [   <=>                                                                                                                                     ]  50.93K   107KB/s   in 0.5s

2018-10-31 12:05:53 (107 KB/s) - 'ir_controller.3' saved [52148]


and then if i use plugin install command I get:
Code: Select all
volumio@volumio:~$ volumio plugin install

This command will install the plugin on your device

No package found


Sorry guys still lost :P
Random avatar
forfiet
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Tue Oct 30 2018 14:00

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


[PLUGIN] IR Remote Controller feedback thread

Postby gvolt » Wed Oct 31 2018 20:36

OK, sorry that it didn't work. But this should do it:
Code: Select all
wget https://github.com/volumio/volumio-plugins/raw/gh-pages/plugins/volumio/armhf/accessory/ir_controller/ir_controller.zip

I posted this just some days ago https://volumio.org/forum/remote-controller-plugin-and-extra-remote-controll-t10819.html#p53999 and didn't remember it... :oops:
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47


[PLUGIN] IR Remote Controller feedback thread

Postby forfiet » Thu Nov 01 2018 15:17

Well that link worked, now I've got to figure out the IR part..... I believe the ir is on GPIO 17 so I'll mess around with that.... Thanks for the help so far. :)
Random avatar
forfiet
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Tue Oct 30 2018 14:00


[PLUGIN] IR Remote Controller feedback thread

Postby gvolt » Thu Nov 01 2018 16:55

To allow setting the GPIO pin jlagden recently made a PR on GitHub https://github.com/volumio/volumio-plugins/pull/272 for a future version of the plugin.

For the time being you can edit index.js and change line 224 to
Code: Select all
exec('/usr/bin/sudo /usr/bin/dtoverlay lirc-rpi gpio_in_pin=17', {uid:1000,gid:1000},

Assuming you have extracted the downloaded ir_controller.zip file to ~/ir_controller you can do it as follows:
Code: Select all
cd ir_controller
nano index.js

With
Code: Select all
ctrl+w
search for "gpio_in_pin=25" and edit the pin number as needed.

Save the file with
Code: Select all
ctrl+x
y
return

Then refresh the plugin
Code: Select all
volumio plugin refresh
and reboot.
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47


[PLUGIN] IR Remote Controller feedback thread

Postby gvolt » Thu Nov 01 2018 19:57

Instead of editing with nano you can also use sed:
Code: Select all
sed -i -e 's/gpio_in_pin=25/gpio_in_pin=17/g' index.js
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47


[PLUGIN] IR Remote Controller feedback thread

Postby Karine-Johanne » Sat Nov 17 2018 17:17

For all parties involved, i'm still unable to use either Apple A1156 or A1294 Remotes despite using ver 1.2 of the plugin.
I'm using a Vishay diode connected to the recommended pins. I've tested it with a multimeter, everything is fine.

Xbox One remote and Samsung remotes are working fine on my setup. I'm just having the issue with the apple remotes.

Regards
Nice girls don't play witgh dead things
User avatar
Karine-Johanne
Sunday DIYer
Sunday DIYer
 
Posts: 24
Joined: Sat Mar 11 2017 15:27


[PLUGIN] IR Remote Controller feedback thread

Postby gvolt » Sun Nov 18 2018 12:59

I have no Apple remotes so I can't test but there have been some posts indicating that the lircd.conf file(s) might not work for some remotes (https://volumio.org/forum/remote-controller-feedback-thread-t6668-30.html#p33776 and https://volumio.org/forum/remote-controller-feedback-thread-t6668-50.html#p41445). If exchanging the lircd.conf file with the ones you can find in the linked posts should not help I would recommend to just record the lircd.conf file by yourself, e. g.
Code: Select all
irrecord -n -d /dev/lirc0 ~/A1294_lircd.conf

You can test the learned keys with:
Code: Select all
irw

If that works copy the A1294_lircd.conf to /data/plugins/accessory/ir_controller/configurations/Apple Remote A1294.
Code: Select all
cp "~/A1294_lircd.conf"/data/plugins/accessory/ir_controller/configurations/Apple Remote A1294/lircd.conf"

Then select the remote from the plugin's configuration page and click save.
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47


[PLUGIN] IR Remote Controller feedback thread

Postby Karine-Johanne » Thu Nov 22 2018 00:24

I was able to make a working .conf file for the A1294 thanks to your instructions.
My A1156 template works but with a few oddities.
I made a conf file for the Hauppauge remote already used within OSMC as well.

lircd.conf

Code: Select all
# 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 Tue Nov 20 15:29:57 2018
#
# contributed by
#
# brand:                       /home/volumio/Hauppauge_lircd.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  /home/volumio/Hauppauge_lircd.conf
  bits           13
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100

  one           887   878
  zero          887   878
  plead         900
  gap          113518
  toggle_bit_mask 0x0

      begin codes
          KEY_POWER                0x1FBD
          KEY_UP                   0x1794
          KEY_DOWN                 0x1F95
          KEY_LEFT                 0x1796
          KEY_RIGHT                0x1F97
          KEY_OK                   0x17A5
          KEY_VOL+                 0x1F90
          KEY_VOL-                 0x1791
          KEY_MUTE                 0x1F8F
          KEY_CHANNEL+             0x17A0
          KEY_CHANNEL-             0x1FA1
          KEY_STOP                 0x17B6
          KEY_REW                  0x1FB2
          KEY_FF                   0x17B4 0x1FB4
          KEY_PREVIOUS             0x17A4
          KEY_NEXT                 0x1F9E
          KEY_PLAY                 0x17B5
          KEY_PAUSE                0x1FB0
      end codes

end remote


lircrc

Code: Select all
begin
prog = irexec
button = KEY_OK
config = /usr/local/bin/volumio toggle
end
begin
prog = irexec
button = KEY_VOL+
config = /usr/local/bin/volumio volume plus
end
begin
prog = irexec
button = KEY_VOL-
config = /usr/local/bin/volumio volume minus
end
begin
prog = irexec
button = KEY_NEXT
config = /usr/local/bin/volumio next
end
begin
prog = irexec
button = KEY_PREVIOUS
config = /usr/local/bin/volumio previous
end
begin
prog = irexec
button = KEY_MUTE
config = /usr/local/bin/volumio volume toggle
repeat = 0
end
begin
prog = irexec
button = KEY_FF
config = /usr/local/bin/volumio seek plus
end
begin
prog = irexec
button = KEY_REW
config = /usr/local/bin/volumio seek minus
end
begin
prog = irexec
button = KEY_BACK
config = /usr/local/bin/volumio repeat
end
begin
prog = irexec
button = KEY_PLAY
config = /usr/local/bin/volumio play
end
begin
prog= irexec
button = KEY_STOP
config = /usr/local/bin/volumio stop
end
begin
prog = irexec
button = KEY_POWER
config = shutdown -h now
end
begin
prog = irexec
button = KEY_PAUSE
config = /usr/local/bin/volumio pause
end


Last question :
Many remotes have numbered keys. Is there a specific command that i could invoke and link to the digits in order to call a specific radio URL ?
For instance, The 1 button would play BBC Radio 1, 2 for radio 2, etc...

Thanks
Nice girls don't play witgh dead things
User avatar
Karine-Johanne
Sunday DIYer
Sunday DIYer
 
Posts: 24
Joined: Sat Mar 11 2017 15:27


[PLUGIN] IR Remote Controller feedback thread

Postby gvolt » Thu Nov 22 2018 15:47

Great it works and thanks for your feedback.

Regarding your "last question":
There is no specific single command I'm aware of. But it's doable with a script. Have a look at https://volumio.org/forum/remote-controller-plugin-and-extra-remote-controll-t10819.html#p54043
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47


[PLUGIN] IR Remote Controller feedback thread

Postby Klettermax » Sun Dec 09 2018 09:01

Is it possible to use the plugin and change the settings for the keys like the old way with manual lirc installation?

Which file should I use with the plugin?

With lirc i used:
nano ~/.lircrc

Thanks BR Markus
raspberry pi zero w: justboom amp + volumio (+motion)
raspberry pi zero w: justboom dac + volumio (+motion)
raspberry pi zero w: magic mirror ² + homebridge
raspberry pi 3b: recallbox
raspberry pi 3b+ pihole + pivpn + pixel desktop
Random avatar
Klettermax
Sunday DIYer
Sunday DIYer
 
Posts: 24
Joined: Wed May 10 2017 06:04
Location: Linz

PreviousNext

Return to Development talks

Who is online

Users browsing this forum: No registered users and 8 guests