2018-09-08, 19:47
Hi All...Nice weekend for all
I made this addon to be able to pen custom window ID through json-rpc:
the addon structure:
1-addon.xml
2-icon.png
3-license.txt
4-readme.txt
5-script.py
the script.py:
import xbmc
import xbmcgui
xbmc.executebuiltin('ActivateWindow(1199)')
and the json-rpc:
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'))
when I excute the json-rpc script I see this log in the receiver user but the window didn't activated?!!!
16:26:37.678 T:139921770186496 DEBUG: CWebServer[8080]: request received for /jsonrpc
How can I solve this issue?
I made this addon to be able to pen custom window ID through json-rpc:
the addon structure:
1-addon.xml
2-icon.png
3-license.txt
4-readme.txt
5-script.py
the script.py:
import xbmc
import xbmcgui
xbmc.executebuiltin('ActivateWindow(1199)')
and the json-rpc:
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'))
when I excute the json-rpc script I see this log in the receiver user but the window didn't activated?!!!
16:26:37.678 T:139921770186496 DEBUG: CWebServer[8080]: request received for /jsonrpc
How can I solve this issue?