Release Control Kodi with your Google Home
#18
(2017-08-02, 07:42)omertu Wrote:
(2017-07-31, 02:00)stoned99 Wrote: So, I've found some project to be able to "activate" and put on standby the CEC but it looks like it no longer works with Kodi 17. Any way to somehow integrate this to this current project? Here's the link og the github project: https://github.com/joshjowen/script.json-cec

thanks again for the hard work of you 2, much appreciated.

That's a great find, thanks!
I've added this and it worked for me (see the github project for details),
It looks like it only works on Kodi 17 and above.

Working great! I also added the option to turn off TV (and audio receiver) in my code. Just not sure how to add in your code. Basically added this code:

// CEC standby
app.get("/standbytv", function (request, response) {
validateRequest(request, response, kodiStandbyTv)
});

var kodiStandbyTv = function(request, response) {
console.log("Standby TV request received");

var params = {
addonid: "script.json-cec",
params: {
command: "standby"
}
};
kodi.Addons.ExecuteAddon(params);
};
Reply


Messages In This Thread
RE: Control Kodi with your Google Home - by stoned99 - 2017-08-02, 16:27


Logout Mark Read Team Forum Stats Members Help
Control Kodi with your Google Home4
This forum uses Lukasz Tkacz MyBB addons.