2019-03-01, 11:54
Hi guys after reading this post I have no idea on how to implement the changes and as a result I'm having trouble with the shutdown command in KODI 18. The command below works on KODI 17.6 but I have no luck on KODI 18. I have just read that in KODI 18 for security reasons the API has some sort of permission levels implemented.
When I paste the command below in my browser with KODI (17.6) running and the 'allow remote control via HTTP' setting enabled kodi will shutdown my entire computer after quitting itself. Which is exactly what I want it to do. Can somebody please help me adapt this command for KODI 18 so that it shuts down my PC with the same settings in KODI 18, I'm not a programmer so I haven't the slightest clue on how to manipulate it so that it fully works on 18
http://localhost:8080/jsonrpc?request={"jsonrpc":%20"2.0",%20"id":%201,%20"method":"System.Shutdown"}
When I try the above command on KODI 18 I get the following response
{"error":{"code":-32099,"message":"Bad client permission."},"id":1,"jsonrpc":"2.0"}
Any help would be greatly appreciated
in case you are wondering why
(as a side note,I run KODI on a dedicated windows machine (server2016) I'm trying to use this command as a command that the UPS software will issue to the PC to shutdown when on battery power during a power outage, currently the UPS send the shutdown signal to the OS and as a result, the OS just kills kodi instead properly quitting KODI, I have discovered that KODI can shutdown the computer after it has properly taken care of itself and as a result both KODI and the OS are quite happy with the command outlined above, so im trying to have the UPS send the shutdown signal to KODI instead of the OS, I believe it has support for batch files, yes I'm on windows, the software for the UPS is viewpower it runs as a windows service)
When I paste the command below in my browser with KODI (17.6) running and the 'allow remote control via HTTP' setting enabled kodi will shutdown my entire computer after quitting itself. Which is exactly what I want it to do. Can somebody please help me adapt this command for KODI 18 so that it shuts down my PC with the same settings in KODI 18, I'm not a programmer so I haven't the slightest clue on how to manipulate it so that it fully works on 18
http://localhost:8080/jsonrpc?request={"jsonrpc":%20"2.0",%20"id":%201,%20"method":"System.Shutdown"}
When I try the above command on KODI 18 I get the following response
{"error":{"code":-32099,"message":"Bad client permission."},"id":1,"jsonrpc":"2.0"}
Any help would be greatly appreciated
in case you are wondering why
(as a side note,I run KODI on a dedicated windows machine (server2016) I'm trying to use this command as a command that the UPS software will issue to the PC to shutdown when on battery power during a power outage, currently the UPS send the shutdown signal to the OS and as a result, the OS just kills kodi instead properly quitting KODI, I have discovered that KODI can shutdown the computer after it has properly taken care of itself and as a result both KODI and the OS are quite happy with the command outlined above, so im trying to have the UPS send the shutdown signal to KODI instead of the OS, I believe it has support for batch files, yes I'm on windows, the software for the UPS is viewpower it runs as a windows service)