2016-09-19, 19:48
Seem to be stuck and could use some help, I have managed to get many of the JSON example commands from JSON-RPC_API (wiki) and JSON-RPC_API/Examples (wiki) working but have noted that for a more complete user navigation some commands seem to be missing or not documented. I have been able to get the attached list of commands verified working, but number entry 0-9 for example does not seem to be documented anywhere.
My goal here is to have a complete set of one way IP navigation commands for a Kodi installation, so I don't have to use a IR remote to control Kodi. And from the attached info you will see that I have many but some key features are still missing. Number entry, TV Guide, TV Channels, and a Fast Forward and Rewind toggle 2x, 4x, 8x, etc. like a RC6 IR remote does would be REALLY nice since it just makes it easier to navigate than individual discrete requests.
Sorry for the length of the post.
My goal here is to have a complete set of one way IP navigation commands for a Kodi installation, so I don't have to use a IR remote to control Kodi. And from the attached info you will see that I have many but some key features are still missing. Number entry, TV Guide, TV Channels, and a Fast Forward and Rewind toggle 2x, 4x, 8x, etc. like a RC6 IR remote does would be REALLY nice since it just makes it easier to navigate than individual discrete requests.
Sorry for the length of the post.
Quote:Transport Commands:
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.PlayPause","params":{ "playerid": 1},"id":1} -- play pause
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":1,"play":true},"id":1} – play
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":1,"play":false},"id":1} -- pause
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0", "method":"Player.Stop","params":{ "playerid":1},"id":1}—stop
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.GoTo","params":{ "playerid":1,"to":"next"},"id":1} – next
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.GoTo","params":{ "playerid":1,"to":"previous"},"id":1} – previous
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":2},"id":1} -- ffwd with speed 2
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":4},"id":1} -- ffwd with speed 4
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":8},"id":1} -- ffwd with speed 8
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":16},"id":1} -- ffwd with speed 16
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":32},"id":1} -- ffwd with speed 32
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-2},"id":1} -- rwd with speed 2
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-4},"id":1} -- rwd with speed 4
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-8},"id":1} -- rwd with speed 8
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-16},"id":1} -- rwd with speed 16
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetSpeed","params":{"playerid":1,"speed":-32},"id":1} -- rwd with speed 32
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Seek","params":{ "playerid":1,"value":"smallforward"},"id":1} -- jump forward
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Seek","params":{ "playerid":1, "value":"smallbackward"},"id":1} -- jump backward
Repeat and Shuffle commands. Note that I only confirmed a return result of OK in Chrome REST app, I did not visually confirm the result on Kodi.
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0","method":"Player.SetRepeat","params":{ "playerid":1,"repeat":"one" },"id":1} -- repeat one
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetRepeat","params":{ "playerid":1,"repeat":"all" },"id":1} -- repeat all
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetShuffle","params":{"playerid":1,"shuffle":true},"id":1} -- shuffle on
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetShuffle","params":{"playerid":1,"shuffle":false},"id":1} -- shuffle false
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.SetRepeat","params":{ "playerid":1,"repeat":"off" },"id":1} -- repeat off
Navigation Commands.
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Back", "id": 1} – Back
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Select", "id": 1} – Select
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Left", "id": 1} – left
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Right", "id": 1} – Right
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Up", "id": 1} – Up
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Down", "id": 1} – Down
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.Home", "id": 1} – Home
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.info", "id": 1} --Info
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.showOSD", "id": 1} –ShowOSD
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.ContextMenu", "id": 1} -- Context Menu
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Input.ShowCodec", "id": 1} – Show codec information of the playing item
http://192.168.0.1:8080/jsonrpc?request={"jsonrpc":"2.0","method":"input.executeaction","params":{"action":"pagedown"},"id":1} – Page Down
http://192.168.0.1:8080/jsonrpc?request={"jsonrpc":"2.0","method":"input.executeaction","params":{"action":"pageup"},"id":1} -- Page Up
Additional commands.
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Application.SetVolume","params":{"volume":"increment"},"id":1 } -- volume up
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Application.SetVolume","params":{"volume":"decrement"},"id":1 } -- volume down
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Playlist.GetItems","params":{"properties":["title","album","artist","duration"],"playlistid":1},"id":1} -- get Playlists
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"AudioLibrary.GetAlbums","params":{"properties":["playcount","artist","genre"],"limits":{"end":10,"start":0},"sort":{"order":"ascending","method":"album","ignorearticle":true}},"id":"libAlbums"} -- get Albums
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"music","parameters":["musicdb://1/"] },"id":1} -- activate Geners
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"music","parameters":["musicdb://2/"]},"id":1} -- activate artists
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"music","parameters":["musicdb://3/"]},"id":1} -- activate albums
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"music","parameters":["musicdb://4/"]},"id":1} -- activate songs
System Commands.
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"System.Reboot","id":1} --Reboot
http://192.168.100.13:8080/jsonrpc?request={"jsonrpc":"2.0","method":"System.Shutdown","id":1} –Shutdown