[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 rockonrolla » Thu Jun 15 2017 02:04

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.
Random avatar
rockonrolla
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Thu Jun 15 2017 00:57

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 massimiliano » Mon Jun 26 2017 07:51

I solved my problem i hope you can come back useful.....
I have a raspberry 2 with pifi-dac+ (grande accoppiata ;) grazie michelangelo sei grande ;) :) )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 :? .
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
Random avatar
massimiliano
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Mon Jun 26 2017 06:53


[PLUGIN] IR Remote Controller feedback thread

Postby mezcalf » Thu Jul 20 2017 14:10

GPIO setting is really missing.

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


command for load playlist:
/usr/bin/curl "http://127.0.0.1:3000/api/v1/commands/?cmd=playplaylist&name=PlaylistName"
Random avatar
mezcalf
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Thu Jul 20 2017 13:20


[PLUGIN] IR Remote Controller feedback thread

Postby marceli » Thu Jul 27 2017 18:51

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 :(

Any ideas?
Random avatar
marceli
Fresh off the boat
Fresh off the boat
 
Posts: 5
Joined: Sat Jul 22 2017 12:22


[PLUGIN] IR Remote Controller feedback thread

Postby luisleonardo.pt » Sun Jul 30 2017 21:33

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.
User avatar
luisleonardo.pt
Sunday DIYer
Sunday DIYer
 
Posts: 29
Joined: Tue Nov 29 2016 11:18


[PLUGIN] IR Remote Controller feedback thread

Postby michelangelo » Sun Jul 30 2017 22:23

Please don't use mpc, but send commands directly to volumio. See here the API:
https://volumio.github.io/docs/API/WebSocket_APIs.html
User avatar
michelangelo
Founder
 
Posts: 4320
Joined: Sun Dec 15 2013 23:18


[PLUGIN] IR Remote Controller feedback thread

Postby luisleonardo.pt » Sun Jul 30 2017 22:26

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

:3000/api/v1/commands/?cmd=playplaylist&name=House
User avatar
luisleonardo.pt
Sunday DIYer
Sunday DIYer
 
Posts: 29
Joined: Tue Nov 29 2016 11:18


[PLUGIN] IR Remote Controller feedback thread

Postby ROLO » Sat Aug 05 2017 10:03

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.
Random avatar
ROLO
Serious Listener
Serious Listener
 
Posts: 56
Joined: Sat Jul 29 2017 10:41


[PLUGIN] IR Remote Controller feedback thread

Postby ROLO » Sun Aug 06 2017 22:38

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.
Random avatar
ROLO
Serious Listener
Serious Listener
 
Posts: 56
Joined: Sat Jul 29 2017 10:41


[PLUGIN] IR Remote Controller feedback thread

Postby luisleonardo.pt » Mon Aug 07 2017 06:54

ROLO wrote: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.
User avatar
luisleonardo.pt
Sunday DIYer
Sunday DIYer
 
Posts: 29
Joined: Tue Nov 29 2016 11:18

PreviousNext

Return to Development talks

Who is online

Users browsing this forum: No registered users and 7 guests