Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Oct 2017
    Posts
    19

    Flic Hub button to adjust volume on JBL Soundfly air using airplay bridge on squeezeb

    The following is my set up.

    - Logitech Media server V7.9.0 running on Windows 10
    - Airplay bridge
    - JBL Soundfly air connected to LMS
    - Flic Hub Flic Hub -

    I have also set up a Home Assistant server and it can communicate with my LMS, however, 1) the Flic Hub is not yet supported and I would prefer to keep it simple.

    What I would like to do is to send a few commands from the Flic buttons to the JBL Soundfly. Volume up, volume down, Play, Pause and 2 favorites.

    The Flic Hub allows me to send an internet request. I have attached a screen shot of how the input looks on the Flic hub.

    Is it possible to send a single command using the internet request to the JBL Soundfly via LMS Airplay Bridge or even directly to to JBL Soundfly?

    Is there an example (including syntax) of what that command would look like.

    I have looked at the protoslim documentation I have no idea how to translate individual bytes into an internet request.

    Thank you

    John

    Name:  myscreen_1583677656188.jpg
Views: 315
Size:  143.5 KB
    Name:  myscreen_1583677672182.jpg
Views: 314
Size:  68.5 KB

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,521
    You can POST to the server's /jsonrpc.js endpoint. Create a body like this:

    {"id":0,"params":["00:ab:12:cd:34",["mixer","volume","+5"]],"method":"slim.request"}

    You'd obviously have to use your player's MAC address. You'll find more information about the available commands in the CLI documentation (available from the bottom left help icon) or eg. http://htmlpreview.github.io/?https:...li-api.html#PC
    Michael

    "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
    (LMS: Settings/Information)

  3. #3
    Junior Member
    Join Date
    Oct 2017
    Posts
    19
    Thank you, I will give that a try

    john

  4. #4
    Junior Member
    Join Date
    Oct 2017
    Posts
    19
    Thank you very much it worked like a charm. I have been struggling with this on and off for a few weeks now.

    Cheers

    John

Posting Permissions

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