Home of the Squeezebox™ & Transporter® network music players.
Page 29 of 30 FirstFirst ... 1927282930 LastLast
Results 281 to 290 of 298
  1. #281
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,724
    Change the -v to -z, and you'll get more messages.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #282
    Junior Member
    Join Date
    Feb 2020
    Posts
    6
    Using -z, I get a more infos. Apparently, this is the command being send to the server:

    Code:
    1581357277.5801 6 control.c,276: Button pressed: Pin: 11, Press Type:Short
    1581357277.5802 6 servercomm.c,74: Send Command:0, Fragment:["pause"]
    1581357277.5802 7 servercomm.c,122: Server ::192.168.2.9:0 command: {"id":1,"method":"slim.request","params":["b8:22:eb:45:bc:3e",["pause"]]}
    The Server and port seem to be wrong, it should be port 9000?!

    I added -P 9000 to the launch command, however now I get a segmentation fault:
    Code:
    1581357680.1965 6 sbpd.c,312: Options parsing: Set debug mode
    1581357680.1983 6 sbpd.c,342: Options parsing: Manually set http address 192.168.2.9
    Segmentation fault
    Additionally I found the API documentation and created the curl by hand. That works without issues, hence something is broken in the plugin or my configuration of it?
    Code:
    curl -X POST -d '{"id":0,"params":["b8:22:eb:45:bc:3e",["button","pause.single"]],"method":"slim.request"}' http://192.168.2.9:9000/jsonrpc.js

  3. #283
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,724
    If I had time, I would trap that, but yes you need to set both server and port. If you aren't using discovery.

    What is your full command line. All options need to be before button or encoder configuration.
    Last edited by paul-; 2020-02-10 at 12:14.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #284
    Junior Member
    Join Date
    Feb 2020
    Posts
    6
    The string I use is:
    sbpd -z -A 192.168.2.9 -P 9000 b,11,PLAY,2,0

    Then I get the segmentation fault

    Discovery is not working for unknown reasons, he does not find my server.

  5. #285
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,076
    As an experiment ... try
    --port=9000
    instead of
    -P 9000
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  6. #286
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,724
    Are you using this on pCP? If not where did you get the binaries?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #287
    Junior Member
    Join Date
    Feb 2020
    Posts
    6
    yes, on piCore player 5.0.0. I installed it via the extensions menu.

  8. #288
    Junior Member
    Join Date
    Feb 2020
    Posts
    6
    Quote Originally Posted by Paul Webster View Post
    As an experiment ... try
    --port=9000
    instead of
    -P 9000
    Gives the same segmentation fault

  9. #289
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,724
    Well there is something that never worked....lol. The print statement showing that you set the -P option is what is seg faulting. If you had the verbose output turned off it would have worked.

    Anyway, its fixed update your extension (run "pcp-update pcp-sbpd.tcz") I also defaulted to port 9000 if you use the -A option, so you can leave off -P too.

    Thanks for posting details, as I knew others have used the -P option, and wondered how it worked in the past.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  10. #290
    Junior Member
    Join Date
    Feb 2020
    Posts
    6
    :-D nice one...

    It works now! Thanks a lot!

Posting Permissions

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