Home of the Squeezebox™ & Transporter® network music players.
Page 8 of 9 FirstFirst ... 6789 LastLast
Results 71 to 80 of 83
  1. #71
    Senior Member
    Join Date
    Apr 2006
    Posts
    110
    Thank you from a fellow Canuck!

    Quote Originally Posted by ralphy View Post
    Yes, it's that simple, except that the lircd used in pcp does not support any key that requires the Shift key modifier, so you'll need to change "I" to another lower case letter. The lower letter k is available. See jivekeys.csv for the full key list.

    Just copy the modified InputToActionMap.lua to /home/tc/.jivelite/userpath/jive/InputToActionMap.lua and quit jivelite. When it automatically restarts jivelite will use your version instead of the one in the tcz package.

    I will add the distinct power on/off keys to the next pcp jivelite tcz package I build.

    Code:
    diff --git a/share/jive/jive/InputToActionMap.lua b/share/jive/jive/InputToActionMap.lua
    index a07177b..c98ec6f 100644
    --- a/share/jive/jive/InputToActionMap.lua
    +++ b/share/jive/jive/InputToActionMap.lua
    @@ -24,6 +24,8 @@ charActionMappings.press = {
            ["f"]  = "go_favorites",
            ["s"]  = "sleep",
            ["q"]  = "power",
    +      ["k"]  = "power_on",
    +      ["i"]  = "power_off",
            ["t"]  = "go_current_track_info",
            ["n"]  = "go_home_or_now_playing",
            ["m"]  = "create_mix",

  2. #72
    The LIRC web page should do all the work. Default is 25.

    1. [Install] LIRC
    2. Reboot
    3. Adjust settings if required.

  3. #73
    Senior Member Jeff07971's Avatar
    Join Date
    Aug 2011
    Location
    London, England
    Posts
    780
    Quote Originally Posted by online View Post
    The LIRC web page should do all the work. Default is 25.

    1. [Install] LIRC
    2. Reboot
    3. Adjust settings if required.
    What was that the reply to ?
    Players: SliMP3,Squeezebox3 x3,Receiver,SqueezePlayer,PiCorePlayer x3,Wandboard
    Server: LMS Version: 7.9.0 - 1475786002 on Centos 7 VM on ESXi 6 on Dell T320
    Plugins: AutoRescan/BBCiPlayer/PowerSave/PowerSwitchIII/Squeezecloud
    Remotes: iPeng8/Orangesqueeze/PC/Jivelite
    Music: 383GB,1269 albums 17756 songs 4381 artists mostly FLACs

    Want a webapp ? See http://forums.slimdevices.com/showth...Webapp-for-LMS

  4. #74
    Junior Member
    Join Date
    Dec 2015
    Posts
    21
    Has anyone managed to get the JustBoom IR Remote working with PiCorePlayer?

  5. #75
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,741
    Quote Originally Posted by RustySpoons View Post
    Has anyone managed to get the JustBoom IR Remote working with PiCorePlayer?
    Yes, the lirc config files are on github. See the file(s) for key mappings.

    To install the jivelite config, ssh into pcp and run

    Code:
    cd /tmp
    wget -O lircd.conf https://github.com/ralph-irving/tcz-lirc/raw/master/lircd-jivelite-justboomIR
    Goto the lirc tweaks page and click the custom button and install.

    For squeezelite control only use

    Code:
    cd /tmp
    wget -O lircd.conf https://github.com/ralph-irving/tcz-lirc/raw/master/lircd-justboomIR
    Goto the lirc tweaks page and click the custom button and install
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  6. #76
    Junior Member
    Join Date
    Dec 2015
    Posts
    21
    Quote Originally Posted by ralphy View Post
    Yes, the lirc config files are on github. See the file(s) for key mappings.

    To install the jivelite config, ssh into pcp and run

    Code:
    cd /tmp
    wget -O lircd.conf https://github.com/ralph-irving/tcz-lirc/raw/master/lircd-jivelite-justboomIR
    Goto the lirc tweaks page and click the custom button and install.

    For squeezelite control only use

    Code:
    cd /tmp
    wget -O lircd.conf https://github.com/ralph-irving/tcz-lirc/raw/master/lircd-justboomIR
    Goto the lirc tweaks page and click the custom button and install
    Brilliant! Thank's for that, I looked everywhere

  7. #77
    Junior Member
    Join Date
    Dec 2015
    Posts
    21
    Made a lircrc for the JustBoomIR Remote...

    Code:
    ############################
    ## KEY_POWER ##
    ############################
    
    begin
    	remote = JustBoomIR
    	button = KEY_POWER
    	repeat = 0
    	prog = squeezelite-armv6hf
    	config = power
    end
    
    #################################
    ## KEY_VOLUMEDOWN##
    #################################
    
    begin
    	remote = JustBoomIR
    	button = KEY_VOLUMEDOWN
    	repeat = 0
    	prog = squeezelite-armv6hf
    	config = voldown
    end
    
    ###############################
    ## KEY_VOLUMEUP ##
    ###############################
    
    begin
    	remote = JustBoomIR
    	button = KEY_VOLUMEUP
    	repeat = 0
    	prog = squeezelite-armv6hf
    	config = volup
    end
    
    ###########################
    ## KEY_MUTE ##
    ###########################
    
    begin
            remote = JustBoomIR
            button = KEY_MUTE
            repeat = 0
            prog = squeezelite-armv6hf
            config = muting
    end
    
    ###########################
    ## KEY_PLAY ##
    ###########################
    
    begin
    	remote = JustBoomIR
    	button = KEY_PLAY
    	repeat = 0
    	prog = squeezelite-armv6hf
    	config = play
    end
    
    ############################
    ## KEY_PAUSE ##
    ############################
    
    begin
    	remote = JustBoomIR
    	button = KEY_PAUSE
    	repeat = 0
    	prog = squeezelite-armv6hf
    	config = pause
    end
    
    ###########################
    ## KEY_NEXT ##
    ###########################
    
    begin
    	remote = JustBoomIR
    	button = KEY_FORWARD
    	repeat = 0
    	prog = squeezelite-armv6hf
    	config = fwd
    end
    
    ###############################
    ## KEY_PREVIOUS ##
    ###############################
    
    begin
    	remote = JustBoomIR
    	button = KEY_REWIND
    	repeat = 0
    	prog = squeezelite-armv6hf
    	config = rew
    end
    
    ###########################
    ## power_on ##
    ###########################
    
    begin
    	remote = JustBoomIR
    	button = KEY_POWER
    	repeat = 0
    	prog = squeezelite-armv6hf
    	config = power
    end
    
    
    ############################
    ## power_off ##
    ############################

  8. #78
    Junior Member
    Join Date
    Jun 2017
    Posts
    1

    custom function keymap

    Hi all,

    I am working on further functions than only the common remote ones.
    For example calling favorite stations.
    However this seems to be quite dificult so I am using the direct way by calling the URL via server command.
    My issue is that only the built in commands vol +/- are working BUT not my Button 1:

    here are the config file definitions in short for one button:
    lircd.conf
    Code:
    begin remote
    
      name  LG_6710T00003P
      flags RAW_CODES|CONST_LENGTH
      eps            30
      aeps          100
    
      gap          107962
    
          begin raw_codes
    	 name KEY_1
     ...
          end raw_codes
    end remote
    lircrc
    Code:
    begin
    	prog = irexec
    	remote = LG_6710T00003P
    	button = KEY_1
    	config = echo "b8:27:eb:4e:a0:1c playlist play HTTPPREFIXMISSINGmp3stream1.apasf.apa.at:8000" | telnet 192.168.23.87 9090
    end
    irw reads the commands just fine:
    tc@piCorePlayer:~$ irw
    000000000000000e 00 KEY_1 LG_6710T00003P
    ^C

    as are the command directly from shell:
    tc@piCorePlayer:~$ echo "b8:27:eb:4e:a0:1c playlist play HTTPPREFIXMISSINGmp3stream1.apasf.apa.at:8000" | telnet 192.168.23.87 9090

    The irexec .lircd file from root as executing user of lirc is non existing - the volume buttons work. Strange - no. irexec is a daemon so it needs to be called with a "user command".

    Any idea anyone ? --> SOLVED

    Best regards in advance !

    ----
    environment: picoreplayer 3.20 in beta mode for lirc access on rpi2 with hifiberry-amp+ and TSOP4838 on GPIO 23
    Last edited by ansas; 2017-06-06 at 11:54. Reason: further things checked

  9. #79
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,741
    I tested irexec with lircd configured for squeezelite and jivelite in pcp 3.20 and both work AFAICT.

    The irexec program included with pcp waits for the config line to complete before processing the next key. Add an & at the end of the config line to background the command.

    I'd suggest using a simple config line first to confirm the plumbing is correct. I just printed the keyname to the console.

    If that works for you then try putting your command in a shell script and call the script in the config line.

    You can background irexec by adding -d to the comand line or it can be started from the user commands section on the tweaks webgui page.

    Here's my test output using the jivelite config.
    Code:
    ps -fe | grep lirc
     2893 root     /usr/local/sbin/lircd --device=/dev/lirc0 --log=/var/log/pcp_lirc.log --uinput
    Code:
    cat /usr/local/etc/lirc/lircd.conf
    begin remote
      name  rmt-d116a
    ...
          begin codes
    ...
              KEY_A                    0x2AB        #  (add) Display
    ...
          end codes
    end remote
    Code:
    cat /usr/local/etc/lirc/lirc.conf
    begin
            prog = irexec
            remote = rmt-d116a
            button = KEY_A
            config = echo "KEY_A" &
    end
    Code:
    irw
    000000000002ab92 00 KEY_A rmt-d116a
    ^C
    Code:
    irexec /usr/local/etc/lirc/lirc.conf
    KEY_A
    Last edited by ralphy; 2017-06-07 at 05:28.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  10. #80
    Quote Originally Posted by ralphy View Post
    .......... for squeezelite ONLY. ......................

    audible feedback only, no visuals.

    Supported "blind actions" are;

    Power
    Play
    Pause
    Next Track
    Previous Track
    Volume Up
    Volume Down
    I am working my way through the LIRC configuration to upgrade my default couch-potato-tool for PCP control, based on the info found in this thread.
    I might have missed it , but where can I find the the full list of all squeezelite functions + keyname I can activate through the -i line option ?
    As jivelite and squeezelite as both are listening to the same socket, and some keynames might activate actions in both , How can I filter or tweak that ?

    Regards, M-H

Posting Permissions

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