Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Sep 2020
    Posts
    1

    piCorePlayer - ir_keytables start script

    Hello together!

    first many thanks for the great application/os!

    I'm now using it with an ir remote that works perfect with the kernel keytables and jivelite.

    But is it possible to start a script with the remote? I would need it vor my volume control with a stepper motor for my vintage stereo receiver.
    And if not by ir_keytables perhaps any other way?

  2. #2
    Senior Member
    Join Date
    Jul 2020
    Posts
    116
    Quote Originally Posted by skeal View Post
    But is it possible to start a script with the remote? I would need it vor my volume control with a stepper motor for my vintage stereo receiver.
    And if not by ir_keytables perhaps any other way?
    To run scripts you would need to start Irexec, there are some hints here:
    https://forums.slimdevices.com/showt...818#post990818

    It works for me with the following script "startup.sh", which gets run from the custom commands in the Tweaks page:
    Code:
    #!/bin/sh
    #start Irexec
    /usr/local/bin/irexec /home/tc/.lircrc &
    You can then add your custom commands to a file called .lircrc. This is an example:
    Code:
    begin
    prog = irexec
    remote = <NAMEOFYOURREMOTE>
    button = KEY_RIGHT
    repeat = 2
    config = /home/tc/lmsjson.sh mixer volume +10; aplay /home/tc/sounds/pop1.wav 
    end
    To find the name of the remote and the labels for the buttons you can run irw from the commandline and press the remote buttons. Under config you can type anything that would also run on the commandline.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •