Announcement
Collapse
No announcement yet.
Squeezebox URL Commands
Collapse
X
-
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
Leave a comment:
-
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
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
Leave a comment:
-
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?
Leave a comment:
-
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
Tags: None
Leave a comment: