[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 ROLO » Sat Sep 29 2018 18:40

Last week I did a fresh install of Volumio as I bought a new RPi 3B+ and to my dismay I still am stuck with an old version of this plugin and a permanently disfunctional update button. This issue still has not been solved.
Would anyone have an indication of what the status is, or how I can solve this myself?
Random avatar
ROLO
Serious Listener
Serious Listener
 
Posts: 56
Joined: Sat Jul 29 2017 10:41

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 » Sat Sep 29 2018 20:46

I also don't know the reasons why the plugin available from the plugin manager has not been updated yet. For the moment you need to install the current version from github manually.

You have to connect via ssh to volumio and download the files of the latest version from https://github.com/volumio/volumio-plugins/blob/master/plugins/accessory/ir_controller.

Then from the directory where you downloaded the files
Code: Select all
volumio plugin install

If an older version of the plugin has already been installed uninstall that first.
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47


[PLUGIN] IR Remote Controller feedback thread

Postby stosoorok » Sat Oct 20 2018 12:59

Why I can't run custom script with Apple Remote A1294?

/etc/lirc/lircrc

Code: Select all
begin
prog = irexec
button = KEY_MENU
config = /home/volumio/myscript.sh
end

It always runs default volumio toggle command. If I comment it out, then the button does nothing. In cmd line my script works fine.

What am I missing here?
Random avatar
stosoorok
Sunday DIYer
Sunday DIYer
 
Posts: 33
Joined: Fri Jun 30 2017 23:30


[PLUGIN] IR Remote Controller feedback thread

Postby gvolt » Mon Oct 22 2018 16:25

@stosoorok

Where did you alter the lircrc file? Under
Code: Select all
/etc/lirc
or
Code: Select all
/data/plugins/accessory/ir_controller/configurations/Apple Remote A1294

If you modified the lircrc under /etc/lirc this would not "stick": As soon as you select the remote from the plugins configuration page and hit safe /etc/lirc/lircrc will be overwritten with the lircrc from "/data/plugins/...".

In case you already changed the lircrc under "/data/plugins/..." make sure your script file has been made executable. You can check it with
Code: Select all
ls -al /home/volumio/myscript.sh

If the executable bit has been set you should see something like
Code: Select all
-rwxr-xr-x ... myscript.sh

Should the "x" be missing run
Code: Select all
chmod +x /home/volumio/myscript.sh

If it still doesn't work I would suspect there is some code in the script that irexec handles differently from the shell.

P.S. I assume you are using the plugin version 1.2.0 from Github. Otherwise the path to the remote configurations (/data/plugins/...) would be slightly different (if memory serves well: "/data/plugins/accessory/ir_remote_controller/configurations") .
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47


[PLUGIN] IR Remote Controller feedback thread

Postby stosoorok » Tue Oct 23 2018 21:34

@gvolt thanks!

I have uninstalled the plugin now and installed lirc and the problem is the same. So it is not the plugin's fault but have something to do with volumio.

I did a new script let's call it stop.sh

Code: Select all
#!/bin/bash

volumio stop

-rwxr-xr-x 1 volumio volumio 165 Oct 23 21:21 stop.sh

in cmd line it works fine (stops player) but not with remote.

/etc/lirc/lircrc

Code: Select all
begin
prog = irexec
button = KEY_MENU
config = /home/pi/stop.sh
end

Now when I write like this in /etc/lirc/lircrc it works fine.

Code: Select all
begin
prog = irexec
button = KEY_MENU
config = volumio stop
end

What am I doing wrong?
Random avatar
stosoorok
Sunday DIYer
Sunday DIYer
 
Posts: 33
Joined: Fri Jun 30 2017 23:30


[PLUGIN] IR Remote Controller feedback thread

Postby gvolt » Tue Oct 23 2018 22:25

Hm, no idea ATM. I tried it on my system and calling stop.sh from lircrc worked...

One question though: As your path to the script is /home/pi/stop.sh did you rename the user "volumio" or create another user "pi"?
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47


[PLUGIN] IR Remote Controller feedback thread

Postby stosoorok » Sun Oct 28 2018 12:06

gvolt wrote:One question though: As your path to the script is /home/pi/stop.sh did you rename the user "volumio" or create another user "pi"?

OMG, I can't be so blind... :oops: I'm so embarrassed now, that was it! Everything works great now. :lol:

Thanks @gvolt!
Random avatar
stosoorok
Sunday DIYer
Sunday DIYer
 
Posts: 33
Joined: Fri Jun 30 2017 23:30


[PLUGIN] IR Remote Controller feedback thread

Postby gvolt » Sun Oct 28 2018 13:45

Great! :D
Thanks for your feedback.
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47


[PLUGIN] IR Remote Controller feedback thread

Postby forfiet » Tue Oct 30 2018 14:06

Can anyone provide a better description on how to download the latest version from github?

I've had zero luck with wget https://github.com/volumio/volumio-plug ... controller and volumio plugin install via ssh.

So anyone have an idea what I'm missing inbetween?

Raspberry Pi-3 with x400 dac integrated IR and Apple remote A1294.
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 » Tue Oct 30 2018 19:54

You are missing the right URL ;)

You need to download from "blob" not "tree". When you compare the link I have posted above (https://volumio.org/forum/remote-controller-feedback-thread-t6668-90.html#p53730 with the one you tried you will notice the difference. :)
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 101
Joined: Fri Mar 02 2018 16:47

PreviousNext

Return to Development talks

Who is online

Users browsing this forum: No registered users and 1 guest