2018-09-08, 17:34
Hi guys,
I want to activate custom window by using json-rpc.
What I know while reading in this thread that I have to make addon which will activate a custom window then execute it by json-rpc
I did the simple addon in the receiver kodi
and I made a script in sender Kodi like this:
import requests
headers = {
'Content-Type': 'application/json',
}
data = '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.activatewindowid"},"id":0}'
response = requests.post('http://192.168.1.253:8080/jsonrpc',
headers=headers,
data=data,
auth=('kodi', '1234'))
and the script is done and send to kodi in network
but when I made log in the receiver kodi I found this:
16:26:37.678 T:139921770186496 DEBUG: CWebServer[8080]: request received for /jsonrpc
but the addon didn't execute it!
I don't know the reason?
Thanks for all
I want to activate custom window by using json-rpc.
What I know while reading in this thread that I have to make addon which will activate a custom window then execute it by json-rpc
I did the simple addon in the receiver kodi
and I made a script in sender Kodi like this:
import requests
headers = {
'Content-Type': 'application/json',
}
data = '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.activatewindowid"},"id":0}'
response = requests.post('http://192.168.1.253:8080/jsonrpc',
headers=headers,
data=data,
auth=('kodi', '1234'))
and the script is done and send to kodi in network
but when I made log in the receiver kodi I found this:
16:26:37.678 T:139921770186496 DEBUG: CWebServer[8080]: request received for /jsonrpc
but the addon didn't execute it!
I don't know the reason?
Thanks for all