Skip to content

Instantly share code, notes, and snippets.

@nwgat
Last active March 12, 2016 23:32
Show Gist options
  • Select an option

  • Save nwgat/5f6270581c8a2159b7fa to your computer and use it in GitHub Desktop.

Select an option

Save nwgat/5f6270581c8a2159b7fa to your computer and use it in GitHub Desktop.
kodiplay research
#kodi json
https://raw.githubusercontent.com/pla1/utils/master/kodiJsonExamples.sh
https://www.reddit.com/r/kodi/comments/3qitpv/help_with_json_http_command/
#devd
./devd -o -a -P devd:devd .
#devd no-auth
./devd.exe -o -a .
-o opens url in browser
-a for all interfaces
-P auth user/pass
. serve files in same directory
# auth
http://kodi:kodi@htpc:81/jsonrpc?request={ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "file": "http://devd:devd@nwgat/t.mkv" } }, "id": 1 }
curl --user "$user:$password" --header "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"Player.Open","params":{"item": {"file":"http://awesome.nwgat.ninja/file.mkv"}},"id":1}' "http://$hostname:$port/jsonrpc"
# non-auth
http://htpc:81/jsonrpc?request={ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "file": "http://nwgat/t.mkv" } }, "id": 1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment