Page 1 of 1

how control new version of kodi with http commands?

Posted: Tuesday 31 March 2020 11:33
by reza
hi guys
before i have some http commands for control kodi without manitor. these is my codes:

Code: Select all

for clear playlist:
http://192.168.1.200:80/jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22Playlist.Clear%22%2C%22params%22%3A%7B%22playlistid%22%3A0%7D%2C%22id%22%3A1%7D

for select flash memory and select folder:
http://192.168.1.200:80/jsonrpc?request=%7B%22id%22%3A1%2C%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22Playlist.Add%22%2C%22params%22%3A%7B%22item%22%3A%7B%22directory%22%3A%22var%2Fmedia%2FFLASHNAME%2FFOLDER%22%7D%2C%22playlistid%22%3A0%7D%7D

for play folder:
http://192.168.1.200:80/jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22Player.Open%22%2C%22params%22%3A%7B%22item%22%3A%7B%22playlistid%22%3A0%2C%22position%22%3A0%7D%7D%2C%22id%22%3A1%7D

also for other control for example:

play/pause:
http://192.168.1.200:80/jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22Player.PlayPause%22%2C%22params%22%3A%7B%22playerid%22%3A0%7D%2C%22id%22%3A1%7D

for volume level:
http://192.168.1.200:80/jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22Application.SetVolume%22%2C%22params%22%3A%7B%22volume%22%3A"VOLUME LEVEL"%7D%2C%22id%22%3A1%7D
but this code dont work for newest kodi version (osmc). can you help me for change these codes for control kodi with switch in domoticz? thank you.