Announcement

Collapse
No announcement yet.

Squeezebox URL Commands

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Squeezebox URL Commands

    > status.html?p0=playlist&p1=play&p2=myfile.mp3&play er=aa:bb:cc:dd:ee&start=0

    I'd strongly suggest you try to use the CLI commands over JSON/RPC
    (http://htmlpreview.github.io/?https:...s/cli-api.html).
    That status page handler is a bit of an old school hack and hasn't been
    updated in years. It might work or not.

    > *for volume I did some tests but without success*:


    Basically the p0-pX parameters correspond to what you'd send to the CLI.
    Try p0=mixer&p1=volume&p2=30 instead. "It's "mixer volume 20". You can't
    just add random keywords to that URL.

    --

    Michael

    #2
    Squeezebox URL Commands

    Hey,

    I got found on some Websites some syntax to play mp3 but have the problem to set the volume for each file different.

    My URL
    ... status.html?p0=playlist&p1=play&p2=myfile.mp3&play er=aa:bb:cc:dd:ee&start=0

    for volume I did some tests but without success:

    ... status.html?p0=playlist&p1=play&p2=myfile.mp3&p3=v olume&p4=30&player=aa:bb:cc:dd:ee&start=0

    ... status.html?p0=mixer&p1=play&p2=myfile.mp3&p3=volu me&p4=30&player=aa:bb:cc:dd:ee&start=0

    Can you you help me how to change the volume?

    Comment


      #3
      Originally posted by mherger View Post
      > status.html?p0=playlist&p1=play&p2=myfile.mp3&play er=aa:bb:cc:dd:ee&start=0

      I'd strongly suggest you try to use the CLI commands over JSON/RPC
      (http://htmlpreview.github.io/?https:...s/cli-api.html).
      That status page handler is a bit of an old school hack and hasn't been
      updated in years. It might work or not.

      > *for volume I did some tests but without success*:


      Basically the p0-pX parameters correspond to what you'd send to the CLI.
      Try p0=mixer&p1=volume&p2=30 instead. "It's "mixer volume 20". You can't
      just add random keywords to that URL.

      --

      Michael
      Thanks Michael! But I am generating some crontab jobs with python which calls the URL with curl. I have to use that python code and that looks like here:

      Code:
      13 3 * * * curl --data "p0=playlist&p1=play&p2=myfile.mp3&player=aa:bb:cc:dd:ee" 192.168.10.199:9000/status.html
      50 6 * * * curl --data "p0=playlist&p1=play&p2=myfile.mp3&player=aa:bb:cc:dd:ee" 192.168.10.199:9000/status.html
      45 9 * * * curl --data "p0=playlist&p1=play&p2=myfile.mp3&player=aa:bb:cc:dd:ee" 192.168.10.199:9000/status.html

      Comment


        #4
        Something like this should do the job:

        Code:
        curl -d '{"id":0,"params":["aa:bb:cc:dd:ee",["playlist","play","myfile.mp3"]],"method":"slim.request"}' http://192.168.10.199:9000/jsonrpc.js
        Michael

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

        Comment


          #5
          Thanks!

          Need to look how to increase or decrease volume.
          Last edited by karadayi; 2019-05-07, 04:04.

          Comment


            #6
            See the link to the CLI documentation I gave.
            Michael

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

            Comment

            Working...
            X