how control new version of kodi with http commands?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
reza
Posts: 112
Joined: Tuesday 13 September 2016 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

how control new version of kodi with http commands?

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest