2020-07-12, 16:52
Easier method to do a 'display info' then wait 5 seconds and do another 'displayinfo' (meaning it vanishes from screen ) using pipedream:
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.
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.