Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,460

    Where can I find the CLI documentation?

    On your LMS: http://localhost:9000/html/docs/cli-api.html (replace "localhost" with your server's address).

    Don't have LMS running? What are you doing here then, anyway? The documentation is on github, of course. Read it online. It's not nicely laid out, but hey, it's available!
    Michael

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

  2. #2
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,007
    Quote Originally Posted by mherger View Post
    On your LMS: http://localhost:9000/html/docs/cli-api.html (replace "localhost" with your server's address).

    Don't have LMS running? What are you doing here then, anyway? The documentation is on github, of course. Read it online. It's not nicely laid out, but hey, it's available!
    Is there similar documentation for the JSON interface somewhere?
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

  3. #3
    Senior Member
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    746
    It's basically the same.
    You'll have to put the command JSON formatted to LMS-IP:9000/jsonrpc.js

    To set the volume to 25 (CLI: "04:20:00:12:23:45 mixer volume 25<LF>" )you could POST it like this:

    Code:
    curl -X POST -d '{ "method": "slim.request", "params":["00:04:20:xx:xx:xx", ["mixer", "volume", "25"]]}' 192.168.178.37:9000/jsonrpc.js
    The JSON part ist embraced by ' followed by {. The latter for handling it as a dictionary.
    The command itself is a list consisting of the player ID (MAC) and another list with the parameters p0 to p5.

    see also here for a good overview:
    https://gist.github.com/samtherussel...d2470b8689d9f2

  4. #4
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,007
    Quote Originally Posted by karlek View Post
    It's basically the same.
    You'll have to put the command JSON formatted to LMS-IP:9000/jsonrpc.js

    To set the volume to 25 (CLI: "04:20:00:12:23:45 mixer volume 25<LF>" )you could POST it like this:

    Code:
    curl -X POST -d '{ "method": "slim.request", "params":["00:04:20:xx:xx:xx", ["mixer", "volume", "25"]]}' 192.168.178.37:9000/jsonrpc.js
    The JSON part ist embraced by ' followed by {. The latter for handling it as a dictionary.
    The command itself is a list consisting of the player ID (MAC) and another list with the parameters p0 to p5.

    see also here for a good overview:
    https://gist.github.com/samtherussel...d2470b8689d9f2
    Thanks
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

Posting Permissions

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