(2017-12-24, 21:30)pkscout Wrote: (2017-12-24, 19:27)kyrat Wrote: Hi, my problem is when i want to control(with python) my kodi(krypton) on my RPi2, At the beginning i tried with simulate the keypress, but it didnt work. then i wanted to to use JSONRPC but i get connection refused error, but when i open the "link" in my win10 broswer its work perfect.
I tried with TCP but i got the same error.
The Code: https://pastebin.com/aAZY44AU
If you're doing JSONRPC over the HTTP connection, there is almost certainly a username and password. By default it's kodi/kodi and is set in Settings > Service Settings > Control under the Webserver section. I wonder if at some point you entered the username/password and saved them on your windows browser. I don't see them being passed in the python code you posted.
yapp, i know. I removed ursname, and pw. I wrote, i can use from another pc, http get worked(
http://192.168.1.75:8080/jsonrpc?request={"jsonrpc":%20"2.0",%20"id":%201,%20"method":%20"Input.Up"}) but on localhost(same machine running kodi) didnt work