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?
Results 1 to 6 of 6
Thread: Squeezebox URL Commands
Hybrid View
-
2019-05-06, 05:06 #1
- Join Date
- May 2019
- Posts
- 3
Squeezebox URL Commands
-
2019-05-06, 05:55 #2
[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
-
2019-05-06, 12:41 #3
- Join Date
- May 2019
- Posts
- 3
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
-
2019-05-06, 13:56 #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
-
2019-05-06, 19:00 #5
- 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.
-
2019-05-06, 21:32 #6
See the link to the CLI documentation I gave.