2016-04-27, 21:09
Hello,
i'm not a big poster, cause my english is a bit crappy and i rather read and figure it out. But on this one i'm pulling my hairs out.
I'm trying to achief to automaticly start a playlist in shuffle mode (thru the json api) when i'm comming home. I'm almost done (quick and dirty way) but the playlist always starts at the beginning... and that wil annoy me ;-)
below the correct url that should do it, but it don't seems to work.
i also tried to the setshuffle method and partymode (both no luck)
So if anyone knows how i can play it in shuffle mode.. please help.
i'm using: a
Hardware PI 2
openelec 5.0.8
Kodi 14.2
Cause i did a lot of research on this i would like to share how i complished my home comming so far below my setup.
I got a iphone, a domoticz system, a Marantz reciver and a kodi media player.
In my Domoticz (on a PI linux):
- Made a Switch for my iphone
- Made a switch to call the play list url (can't seem to call this url thru script...still working on it)
- Made a scene "Coming Home" wich calls a shell script and this scene has the playlist switch as connected device.
To control my reciver i use the shell script. I use shell script cause i need a pause between the commands and i can't find a way to do it whit domoticz tools/scripts
credits to: http://www.openremote.org/display/docs/O...TP+Control
its for a denon reciver but denon and marantz are from the same factory...
To tell domoticz i'm home
i'm using the (free) App "Locative" to send a a signal to my Domoticz system when i'm home using the json url
And further i made a blocky script which starts my "comming home" scene on certain times when my iPhone siwtch is set to on.
So again... please help me not going crazy,hearing every day the same song when i come home....
many thanks :-)
i'm not a big poster, cause my english is a bit crappy and i rather read and figure it out. But on this one i'm pulling my hairs out.
I'm trying to achief to automaticly start a playlist in shuffle mode (thru the json api) when i'm comming home. I'm almost done (quick and dirty way) but the playlist always starts at the beginning... and that wil annoy me ;-)
below the correct url that should do it, but it don't seems to work.
Code:
http://123.456.123.456/jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Player.Open","params":{"item":{"file":"special://profile/playlists/music/koffiehuis.m3u"},"options":{"shuffled":true}}}
i also tried to the setshuffle method and partymode (both no luck)
Code:
http://123.456.123.456/jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Player.SetPartyMode","params":{"playerid":1,"partymode":true}}
http://123.456.123.456/jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Player.SetShuffle","params":{"playerid":1,"shuffle":true}}
So if anyone knows how i can play it in shuffle mode.. please help.
i'm using: a
Hardware PI 2
openelec 5.0.8
Kodi 14.2
Cause i did a lot of research on this i would like to share how i complished my home comming so far below my setup.
I got a iphone, a domoticz system, a Marantz reciver and a kodi media player.
In my Domoticz (on a PI linux):
- Made a Switch for my iphone
- Made a switch to call the play list url (can't seem to call this url thru script...still working on it)
- Made a scene "Coming Home" wich calls a shell script and this scene has the playlist switch as connected device.
To control my reciver i use the shell script. I use shell script cause i need a pause between the commands and i can't find a way to do it whit domoticz tools/scripts
credits to: http://www.openremote.org/display/docs/O...TP+Control
its for a denon reciver but denon and marantz are from the same factory...
Code:
#!/bin/bash
curl --request GET 'http://192.168.123.321/MainZone/index.put.asp?cmd0=PutZone_OnOff/ON'
sleep 5
curl --request GET 'http://192.168.123.123/MainZone/index.put.asp?cmd0=PutZone_InputFunction/DVD'
sleep 5
curl --request GET 'http://123.123.123.123/MainZone/index.put.asp?cmd0=PutMasterVolumeSet/-50.0'
To tell domoticz i'm home
i'm using the (free) App "Locative" to send a a signal to my Domoticz system when i'm home using the json url
Code:
http://123.123.123.123:8080/json.htm?type=command¶m=switchlight&idx=18&switchcmd=On
And further i made a blocky script which starts my "comming home" scene on certain times when my iPhone siwtch is set to on.
So again... please help me not going crazy,hearing every day the same song when i come home....
many thanks :-)