2017-09-05, 10:26
(2017-09-04, 19:38)Noexicaise Wrote: Hello.
First it all. Thank you ! Great script
But is there a way for shutdown system ?
Shutdown hasn't been added yet. But that should be possible. I can take a look at it if you want?
I've implemented it into my fork.
If you want to add it to you own code. You could do something like this:
Code:
// Parse request to Shutdown the kodi system
// Request format: http://[THIS_SERVER_IP_ADDRESS]/shutdown
app.get('/shutdown', function(request, response) {
validateRequest(request, response).then(() => {
kodi.System.Shutdown();
response.sendStatus(200);
});
});