Home of the Squeezebox™ & Transporter® network music players.
Page 13 of 34 FirstFirst ... 3111213141523 ... LastLast
Results 121 to 130 of 332
  1. #121
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,078
    Actually wasn't that hard.....(I think)

    Try this out, as it would take me some time to get an encoder setup to test.

    https://dl.dropboxusercontent.com/s/...q4u2v8miy/sbpd

    Let me know how this works...... if needed I will setup an encoder.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #122
    Junior Member
    Join Date
    Jan 2019
    Posts
    10
    Quote Originally Posted by paul- View Post
    Actually wasn't that hard.....(I think)

    Try this out, as it would take me some time to get an encoder setup to test.

    https://dl.dropboxusercontent.com/s/...q4u2v8miy/sbpd

    Let me know how this works...... if needed I will setup an encoder.
    Thank you for the quick response. But how do I update the existing sbpd? Can I just replace the file here "/usr/local/sbin/sbpd" and thats it? And what is the title of the (new) command i have to use? Or did you just updated the NEXT and PREV commands so that they will work with encoders?

  3. #123
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,078
    Just grab it with wget and put in your home directory for testing. If it works, Iíll update the extension.

    I updated the usage output of the command, Itís called TRAC
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #124
    Junior Member
    Join Date
    Jan 2019
    Posts
    10
    Quote Originally Posted by paul- View Post
    Just grab it with wget and put in your home directory for testing. If it works, Iíll update the extension.

    I updated the usage output of the command, Itís called TRAC
    Ok. I tested it like this "sbpd -d e,6,12,TRAC". When I turn the encoder it is changing the volume. So unfortunately it is not working yet.

  5. #125
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,078
    Quote Originally Posted by luigi2000 View Post
    Ok. I tested it like this "sbpd -d e,6,12,TRAC". When I turn the encoder it is changing the volume. So unfortunately it is not working yet.
    Make sure you are running correct binary. Path is searched first.

    Put a ./sbpd

    Also make sure no other instance is running.
    Last edited by paul-; 2019-01-27 at 12:37.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #126
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,078
    The pCP extension has been updated to 2.1, you can update it from the extensions page, or run "pcp-update pcp-sbpd" from a ssh session
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #127
    Junior Member
    Join Date
    Jan 2019
    Posts
    10
    Quote Originally Posted by paul- View Post
    The pCP extension has been updated to 2.1, you can update it from the extensions page, or run "pcp-update pcp-sbpd" from a ssh session
    Thank you Paul! The rotary encoder can now be used for skipping tracks with the TRAC command. Maybe important for others: The encoder command for the volume change is now VOLU. I first tried it with VOLM but this was not working anymore.

  8. #128
    Junior Member
    Join Date
    Apr 2019
    Posts
    1
    Hi,
    thanks for your perfect work...

    I have a question - it is possible to navigate through the menu of jivelite with a rotary encoder?

    thanks for your information!

  9. #129
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,078
    While anything is possible with enough programming, currently the answer is no. This program mainly communicates with the server.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  10. #130
    Junior Member
    Join Date
    Apr 2019
    Posts
    13

    So what's up with "POWR"?

    I'm working on a new install of a standalone Media streamer (Pi B3+, HifiBerry DAC+Pro, 5" touch screen, piCorePlayer, LMS and Squeeze). Although I have a touch screen, I still want to add some 'hard' buttons.

    So I have the basic buttons working (though yet to try/test a rotary encoder) except the POWR function doesn't work. Now I can get around it using a one line 'shutdown' script, with the "SCRIPT:" command, but this doesn't seem right. Has the POWR command been depreciated? Or must I be doing something wrong, like missing a step(s)?

    FYI: my command string is currently as follows (note that I added the STOP command to sbpd_commands by adding the line "STOP=["button","stop"]"):

    /usr/local/sbin/sbpd -d -f /home/tc/sbpd_commands.cfg e,17,27,TRAC b,4,SCRIPT:/home/tc/shutit.sh b,5,PREV b,6,NEXT b,12,STOP b,22,PLAY



    While I have your attention, I also have a couple of general questions about sbpd (please ):

    1) If/when the POWR function works, does the same button allow restart after a power-down?
    2) Coming from an microcontroller hobbyist background, I'm used to setting interrupts to manage I/O pin state changes (button presses). Does sbpd also use interrupts? Or is it a simple poll loop, looking for state changes on the pins?

    Thanks!
    Last edited by meq123; 2019-04-26 at 08:55.

Posting Permissions

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