Here are the full set of shell commands I use in case anyone is interested. Note this is for the video player (id:1). For music (id:0) or picture (id:2) playback change the id.
I get error return codes of 52 in the log but it all appears to be working from the developer console, except “skip forward”. No idea why.
Change your user, password and ip address.
kodi_input_back: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.Back\"}" "http://ipaddress:8080/jsonrpc"'
kodi_input_contectx_menu: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.ContextMenu\"}" "http://ipaddress:8080/jsonrpc"'
kodi_input_down: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.Down\"}" "http://ipaddress:8080/jsonrpc"'
kodi_input_execute: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.ExecuteAction\"}" "http://ipaddress:8080/jsonrpc"'
kodi_input_home: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.Home\"}" "http://ipaddress:8080/jsonrpc"'
kodi_input_info: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.Info\"}" "http://ipaddress:8080/jsonrpc"'
kodi_input_left: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.Left\"}" "http://ipaddress:8080/jsonrpc"'
kodi_input_right: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.Right\"}" "http://ipaddress:8080/jsonrpc"'
kodi_input_select: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.Select\"}" "http://ipaddress:8080/jsonrpc"'
kodi_input_up: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Input.Up\"}" "http://ipaddress:8080/jsonrpc"'
kodi_player_fast_fwd: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"Player.SetSpeed\",\"params\":{\"playerid\":1,\"speed\":\"increment\"}}" "http://ipaddress:8080/jsonrpc"'
kodi_player_play_pause: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Player.PlayPause\",\"params\":{\"playerid\":1},\"id\":1}" "http://ipaddress:8080/jsonrpc"'
kodi_player_rewind: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"Player.SetSpeed\",\"params\":{\"playerid\":1,\"speed\":\"decrement\"}}" "http://ipaddress:8080/jsonrpc"'
kodi_player_skip_back: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Player.GoTo\",\"id\":1,\"params\":{\"playerid\":1,\"to\":\"previous\"}}" "http://ipaddress:8080/jsonrpc"'
kodi_player_skip_fwd: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Player.GoTo\",\"id\":1,\"params\":{\"playerid\":1,\"to\":\"next\"}}" "http://ipaddress:8080/jsonrpc"'
kodi_player_stop: 'curl -u "user:passwd" --header "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"Player.Stop\",\"params\":{\"playerid\":1},\"id\":1}" "http://ipaddress:8080/jsonrpc"'
EDIT, 4 years later: Don’t use these. It can all be done from the Kodi call_method now.