Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Aug 2012
    Posts
    146

    SqueezeJS.Controller.playerRequest([JSON formatted CLI request])

    How do I set the squeezebox volume through the SqueezeJS framework and JSON format CLI request?


    Is there away to get a complete list of all the properties and objects they are associated to?

    I am trying via IFTTT JSON webhook:

    { "entity_id": "media_player.playername", "command": "volume", "parameters": "0"}

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,118

    SqueezeJS.Controller.playerRequest([JSON formattedCLI request])

    > How do I set the squeezebox volume through the SqueezeJS framework and
    > JSON format CLI request?


    Relative change (-1):
    SqueezeJS.Controller.setVolume(1, '-')

    Absolute:
    SqueezeJS.Controller.setVolume(50)

    > Is there away to get a complete list of all the properties and objects
    > they are associated to?


    What Objects? Properties of what?

    --

    Michael

  3. #3
    Senior Member
    Join Date
    Aug 2012
    Posts
    146
    Thanks as in, is there a list or documentation where I can see for example:

    Controller . SetVolume

    ^ ^
    "Object" "Property"


    And a list of all objects and properties available. Apologies if these are 'termed' differently.
    Quote Originally Posted by mherger View Post
    > How do I set the squeezebox volume through the SqueezeJS framework and
    > JSON format CLI request?


    Relative change (-1):
    SqueezeJS.Controller.setVolume(1, '-')

    Absolute:
    SqueezeJS.Controller.setVolume(50)

    > Is there away to get a complete list of all the properties and objects
    > they are associated to?


    What Objects? Properties of what?

    --

    Michael

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,118

    SqueezeJS.Controller.playerRequest([JSON formattedCLI request])

    > Thanks as in, is there a list or documentation where I can see for
    > example:
    >
    > Controller . SetVolume
    > ^ ^
    > "Object" "Property"


    No, there's not a complete list. Some basics are covered in
    http://wiki.slimdevices.com/index.php/SqueezeJS.

    Other than that, there's the source :-). Base.js has the controller methods:

    https://github.com/Logitech/slimserv...S/Base.js#L248

    --

    Michael

Posting Permissions

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