INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: HTTP:// commands info needed for Smart Home (DOMOTICZ) integration  (Read 2531 times)

Vello

  • Member
  • *
  • Posts: 3

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!
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72446
  • Where did I put my teeth?
Re: HTTP:// commands info needed for Smart Home (DOMOTICZ) integration
« Reply #1 on: August 09, 2017, 12:39:44 pm »

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.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72446
  • Where did I put my teeth?
Re: HTTP:// commands info needed for Smart Home (DOMOTICZ) integration
« Reply #2 on: August 09, 2017, 12:41:50 pm »

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.
Logged

Vello

  • Member
  • *
  • Posts: 3
Re: HTTP:// commands info needed for Smart Home (DOMOTICZ) integration
« Reply #3 on: August 09, 2017, 01:06:36 pm »

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)

Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72446
  • Where did I put my teeth?
Re: HTTP:// commands info needed for Smart Home (DOMOTICZ) integration
« Reply #4 on: August 09, 2017, 01:16:44 pm »

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
Logged

Vello

  • Member
  • *
  • Posts: 3
Re: HTTP:// commands info needed for Smart Home (DOMOTICZ) integration
« Reply #5 on: August 09, 2017, 03:24:56 pm »

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.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72446
  • Where did I put my teeth?
Re: HTTP:// commands info needed for Smart Home (DOMOTICZ) integration
« Reply #6 on: August 09, 2017, 04:43:09 pm »

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.
Logged
Pages: [1]   Go Up