Problems configuring a IR remote

I am watching the kodi.log in real time on ssh (when I change this setting in Kodi), but I dont see anything relevant.
I only see the remote control codes.

DEBUG <general>: HandleKey: return (0xf00d) pressed, action is Select
2025-11-12 20:10:52.020 T:9947    DEBUG <general>: ------ Window Init (DialogSelect.xml) ------
2025-11-12 20:10:53.340 T:9966    DEBUG <general>: CLibInputKeyboard::ProcessKey - using delay: 400ms repeat: 80ms
2025-11-12 20:10:53.341 T:10304   DEBUG <general>: Thread Timer start, auto delete: false
2025-11-12 20:10:53.359 T:9947    DEBUG <general>: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0
2025-11-12 20:10:53.359 T:9947    DEBUG <general>: HandleKey: up (0xf080) pressed, action is Up
2025-11-12 20:10:53.475 T:10304   DEBUG <general>: Thread Timer 3535790720 terminating
2025-11-12 20:10:53.480 T:9947    DEBUG <general>: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0
2025-11-12 20:10:53.750 T:9966    DEBUG <general>: CLibInputKeyboard::ProcessKey - using delay: 400ms repeat: 80ms
2025-11-12 20:10:53.750 T:10306   DEBUG <general>: Thread Timer start, auto delete: false
2025-11-12 20:10:53.759 T:9947    DEBUG <general>: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
2025-11-12 20:10:53.915 T:10306   DEBUG <general>: Thread Timer 3535790720 terminating
2025-11-12 20:10:53.919 T:9947    DEBUG <general>: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
2025-11-12 20:10:53.919 T:9947    DEBUG <general>: HandleKey: return (0xf00d) pressed, action is Select
2025-11-12 20:10:54.169 T:9947    DEBUG <general>: ------ Window Deinit (DialogSelect.xml) ------

The curl command does not return any errors.

CoreELEC:~ # curl -s -X POST -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "Settings.SetSettingValue", "params": {"setting": "videoplayer.adjustrefreshrate", "value": 0}, "id": 1}' http://192.168.X.XX:8080/jsonrpc
CoreELEC:~ #

You use -s with curl to make it silent: obviously there will be no output?
In kodi log you see no curl request: which means no request from curl come to kodi. Do you have enabled in kodi to control it over http? Seems not?

Sorry, I am not an expert. I am just trying

CoreELEC:~ # curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "Settings.SetSettingValue", "params": {"setting": "videoplayer.adjustrefreshrate", "value": 0}, "id": 1}' http://192.168.X.XX:8080/jsonrpc
CoreELEC:~ #


> Do you have enabled in kodi to control it over http? Seems not?

Yes. HTTP control IS ON.
I can control with yatse app from mobile

Well, kodi doesn’t get request. So fix this issue first.

Add argument -v to curl.

1 Like
CoreELEC:~ # curl -v -X POST -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "Settings.SetSettingValue", "params": {"setting": "videoplayer.adjustrefreshrate", "value": 0}, "id": 1}' http://192.168.X.XX:8080/jsonrpc
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 192.168.X.XX:8080...
* Connected to 192.168.X.XX (192.168.X.XX) port 8080 (#0)
> POST /jsonrpc HTTP/1.1
> Host: 192.168.X.XX:8080
> User-Agent: curl/7.78.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 133
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Content-Length: 0
< WWW-Authenticate: Basic realm="Kodi"
< Connection: close
< Date: Wed, 12 Nov 2025 19:36:39 GMT
<
* Closing connection 0
CoreELEC:~ #

You didn’t suply username and password. Use like

...... http://username:password@192.168.X.XX:8080/jsonrpc
1 Like

THank YOU! working
Respect :waving_hand:

Could you please make me a script for this? (if you don’t mind)
.sh file, I guess

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.