Release Control Kodi with your Google Home
Easier method to do a 'display info' then wait 5 seconds and do another 'displayinfo' (meaning it vanishes from screen Wink ) using pipedream:
Code:
const axios = require("axios");
// Make an HTTP GET request using axios
const resp = await axios({
method: "POST",
url: `https://xxxxxxxxxx.glitch.me/displayinfo`,
headers: {
"Content-Type": "application/json"
},
data: {"token":"xxxxxxxxxx"}
}
);
await sleep(5000);
await axios({
method: "POST",
url: `https://xxxxxxxxxx.glitch.me/displayinfo`,
headers: {
"Content-Type": "application/json"
},
data: {"token":"xxxxxxxxxx"}
}
);
function sleep(ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}

Just insert this into a node.js box, following a http steps trigger box in pipedream (as you would have with a command above). Then copy the curl url from the http steps box and insert it into an IFTTT Applet.
Reply


Messages In This Thread
RE: Control Kodi with your Google Home - by harlekin - 2020-07-12, 16:52


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