Home of the Squeezebox™ & Transporter® network music players.
Page 26 of 28 FirstFirst ... 162425262728 LastLast
Results 251 to 260 of 275
  1. #251
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,301
    4.x is not compatible, need to at least be running 5.0. But the 6.0 beta is pretty stable now for most things. Really only playing with the rpi4 support.

    I'll update the extension so you can just install via the extension page. The extension name is pcp-sbpd.tcz
    Last edited by paul-; 2019-09-25 at 21:01.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #252
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Posts
    1,335
    Just wondering if it's possible to redirect the sbpd commands to a Jivelite installation on a difference device. I know the MAC address option can be used to send commands to a specific player, but if, say, I have Jivelite running on a Jogger, can I send keystrokes to that Jivelite somehow? I'm guessing not, given the uinput involvement, but I thought I'd ask.

  3. #253
    Quote Originally Posted by chill View Post
    Install pigpio.tcz from the piCorePlayer repository, then make sure the daemon is running: just type pigpiod from the command line of an SSH terminal.

    Then issue the two commands that Paul specified:
    Code:
    sudo modprobe uinput
    sudo chmod g+w /dev/uinput
    Then download the sbpd binary from Paul's dropbox link, and put it in the home directory of user tc: /home/tc
    Make sure it's executable: I changed the permissions to 755 from within Filezilla

    Finally, issue the ./sbpd command, with gpio pin assignments to match your encoder's connections to the RPi pins.

    For testing purposes I did all this from an SSH command line, but for normal use I would put it in a script file which I'd call at startup using pCP's 'User commands' tweak. If you go that route, note that pigpiod seems to need a moment to start up before you can issue the sbpd command - I inserted a 'sleep 1' into my script immediately after the pigpiod command.

    I installed pcp5 and everything is working perfectly, thank you Paul!

    Chill, could you provide me the script to call sbpd and pigpiod etc. at the startup. That would be awesome!
    And how to call it from the tweaks page.

    Thank you!

  4. #254
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,301
    Quote Originally Posted by chill View Post
    Just wondering if it's possible to redirect the sbpd commands to a Jivelite installation on a difference device. I know the MAC address option can be used to send commands to a specific player, but if, say, I have Jivelite running on a Jogger, can I send keystrokes to that Jivelite somehow? I'm guessing not, given the uinput involvement, but I thought I'd ask.
    I'm sure anythings possible, but not sure how to go about that.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #255
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Posts
    1,335
    Quote Originally Posted by Jursi View Post
    Chill, could you provide me the script to call sbpd and pigpiod etc. at the startup. That would be awesome!
    And how to call it from the tweaks page.
    Sure - when I get home I'll update to Paul's latest pcp-sbpd.tcz from the repository, adjust my script to suit, and post it here.

  6. #256
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Posts
    1,335
    Here's my script for launching sbpd at start-up. I originally put the sbpd command into a script file because I had so may buttons configured that the command was too long to be launched as a User Command. But having it as a script now allows for the necessary extra steps, such as launching the pigpio daemon and loading the uinput module.

    Save this text in a file called sbpd-script.sh in the home folder of the default 'tc' user.

    Code:
    #!/bin/sh
    
    # start pigpiod daemon
    pigpiod
    
    # give the daemon a moment to start up before issuing the sbpd command
    sleep 1
    
    # load uinput module, then set the permission to group writable, so you don't need to run sbpd with root permissions
    sudo modprobe uinput
    sudo chmod g+w /dev/uinput
    
    # issue the sbpd command
    sbpd e,20,21,KEY:KEY_UP-KEY_DOWN,2  b,26,KEY:KEY_RIGHT,2,0,KEY:KEY_LEFT,500
    To get this script to run when pCP boots, add this line as a user command at the end of the 'Tweaks' section.


  7. #257
    Quote Originally Posted by chill View Post
    Here's my script for launching sbpd at start-up. I originally put the sbpd command into a script file because I had so may buttons configured that the command was too long to be launched as a User Command. But having it as a script now allows for the necessary extra steps, such as launching the pigpio daemon and loading the uinput module.

    Save this text in a file called sbpd-script.sh in the home folder of the default 'tc' user.

    Code:
    #!/bin/sh
    
    # start pigpiod daemon
    pigpiod
    
    # give the daemon a moment to start up before issuing the sbpd command
    sleep 1
    
    # load uinput module, then set the permission to group writable, so you don't need to run sbpd with root permissions
    sudo modprobe uinput
    sudo chmod g+w /dev/uinput
    
    # issue the sbpd command
    sbpd e,20,21,KEY:KEY_UP-KEY_DOWN,2  b,26,KEY:KEY_RIGHT,2,0,KEY:KEY_LEFT,500
    To get this script to run when pCP boots, add this line as a user command at the end of the 'Tweaks' section.


    Thank you very much, everything is working now.

    Finally I have a player in my bathroom/sauna with physical control. Physical controls are important because it is hard to use touch screen with wet hands when I am in sauna/shower or in a hot tube. And the cheap touch screen is almost unusable anyways.

    Here is a picture of my "prototype" player. It is not the prettiest but it sure gets the job done! https://imgur.com/a/bG1HApc
    Sad that there is no 3.5 inch display with bezel/frame like there is in the official 7inch display. It hard to cut a proper hole with a dremel
    Last edited by Jursi; 2019-09-27 at 04:26.

  8. #258
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Posts
    1,335
    That's neat. Two rotary encoders? One for Jivelite navigation, and one for volume?

  9. #259
    Quote Originally Posted by chill View Post
    That's neat. Two rotary encoders? One for Jivelite navigation, and one for volume?
    Yes that's correct! I changed the volume commands to: KEY:KEY_VOLUMEUP-KEY_VOLUMEDOWN

    Now the player also shows the volume bar when changing the volume.

  10. #260
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Posts
    1,335
    Quote Originally Posted by Jursi View Post
    Yes that's correct! I changed the volume commands to: KEY:KEY_VOLUMEUP-KEY_VOLUMEDOWN

    Now the player also shows the volume bar when changing the volume.
    That's a another benefit of the new keypress emulation. Previously the volume control applied to a specific player, either defaulted by sbpd or specified via the MAC address - that's useful in some cases, such as my integrated amplifier where I always want the volume control to apply to the player where the buttons/encoder are mounted. But with the KEY_VOLUMEUP and KEY_VOLUMEDOWN keypresses presumably the command goes to whichever player is currently under the control of Jivelite.

Posting Permissions

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