INTERACT FORUM
More => Old Versions => JRiver Media Center 23 for Windows => Topic started by: Vello on August 09, 2017, 11:52:16 am
-
Hi
I am looking for links and how-to about HTTP commands for:
Example:
My JRiver Server is on 192.168.111.111
My default Rendering device is for example DAPHILE or SQUEEZEBOX
My Favorite playlist is called : "5 stars music"
Does it exist any possiblity to start playback of my PLAYLIST from my SERVER to my default RENDERING device by HTTP command?
like something like http://192.168.111.111:xxxxx/yyyyyyy DAFHILE/"playlist_5_stars" ?
If yes, I could easily use it in Smart Home systems for various scenarios..
Thanks!
-
At the bottom of the page, the Developer link will take you here:
https://wiki.jriver.com/index.php/DevZone
On that page, take a look at the Web Service Interface (MCWS) link.
I believe you need to set the zone first with one statement and then start playback with another.
-
We're also working on home automation:
https://yabb.jriver.com/interact/index.php/board,48.0.html
We've just got MC talking to Engen, our Z-Wave server.
-
Hi Jim
Yeah, saw that before - it is far for me from clear understanding.
:Web Service Interface (MCWS)
Just look for few real examples. Will be glad to help anybody with Domoticz setup and hardware if needed.
Could you please give me an example how to start playback using it ? (my JR server user/pass is vello/12345)
-
If you read the section you will find examples of how to use the commands.
Start by typing this in a web browser when MC is running:
http://localhost:52199/MCWS/v1/doc
-
Cause I did: but cant understand how to make it (fe "Play" command) by one string http
Ok, found it:
Play:
http://localhost:52199/MCWS/v1/Playback/PlayPause?Zone=-1&ZoneType=ID
Stop:
http://localhost:52199/MCWS/v1/Playback/Stop?Zone=-1&ZoneType=ID
Just 2 more questions:
1) can I embed Login/Password for server to this string? This command will come from my Raspberry Pi Domoticz server to my PC with JRiver
2) how to choose exact playlist? (for example playlist called "ABC")
when trying this from 3rd PC in my network :
http://192.168.1.107:52199/MCWS/v1/Playback/PlayPause?Zone=-1&ZoneType=ID
(192.168.1.107 - my PC behind me - localhost that was Ok 1 min ago)
I get no result. May it be related with Login/Pass missing for that first request?
Gonna try this :
http(s)://username:password@server
Ok. Dont work like:
http://user:password@192.168.1.107:52199/MCWS/v1/Playback/Stop?Zone=-1&ZoneType=ID
or
http://192.168.1.107:52199/MCWS/v1/Playback/Stop?Zone=-1&ZoneType=ID
with AUTH disabled
Ok in short:
this command sent from 192.168.1.109 to working PC with JRiver (192.168.1.107) :
http://192.168.1.107:52199/MCWS/v1/Playback/PlayPause?Zone=-1&ZoneType=ID
does nothing
But working from localhost. JR server AUTH is OFF.
-
If authentication is off on the server side, then no login or password is required on the client side.
It is probably part of the command that sets the zone.