Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 6 of 6

Hybrid View

  1. #1
    Junior Member
    Join Date
    May 2019
    Posts
    3

    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?

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

    [SlimDevices: Jive] 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

  3. #3
    Junior Member
    Join Date
    May 2019
    Posts
    3
    Quote 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

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,323
    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

    http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo

  5. #5
    Junior Member
    Join Date
    May 2019
    Posts
    3
    Thanks!

    Need to look how to increase or decrease volume.
    Last edited by karadayi; 2019-05-06 at 19:04.

  6. #6
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,323
    See the link to the CLI documentation I gave.
    Michael

    http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo

Posting Permissions

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