2020-07-03, 01:14
Found a way to fix the glitch 403 issue, while still keep using glitch.
Register a free account with pipedream.com, click on workflows, create a new workflow
- first step http webhook
- second step node.js
make it look like that:
In http webhook click on curl - and simply copy the url you see there at the bottom (see top of the screenshot). This is the new url that has to be entered in your ifttt options, you can leave the rest as is (in ifttt).
In the node.js step you simply copy/paste in this code:
src and better formating: https://docs.pipedream.com/workflows/ste...tp-headers
Then replace the url with your glitch server url (including the /whatever) and { name: "Luke" } with your {"token":"tokenpassword"}
Thats it. Works.
IFTTT now sends a json request to the pipedream url, that triggers a json request to your glitch server. That means that IFTTT isnt communicating with glitch directly anymore - hence no more 403 errors. Yay.
edit: Or use a RaspPi to host OmerTus GoogleHomeKodi yourself, using docker. I went for the quicker fix -- with the downside, that the solution in this thread adds some additional delay. (Not outrageous, but noticeable.)
Register a free account with pipedream.com, click on workflows, create a new workflow
- first step http webhook
- second step node.js
make it look like that:
In http webhook click on curl - and simply copy the url you see there at the bottom (see top of the screenshot). This is the new url that has to be entered in your ifttt options, you can leave the rest as is (in ifttt).
In the node.js step you simply copy/paste in this code:
Code:
const axios = require("axios");
// Make an HTTP GET request using axios
const resp = await axios({
method: "POST",
url: `https://jsonplaceholder.typicode.com/posts`,
headers: {
"Content-Type": "application/json"
},
data: { name: "Luke" }
});
Then replace the url with your glitch server url (including the /whatever) and { name: "Luke" } with your {"token":"tokenpassword"}
Thats it. Works.
IFTTT now sends a json request to the pipedream url, that triggers a json request to your glitch server. That means that IFTTT isnt communicating with glitch directly anymore - hence no more 403 errors. Yay.
edit: Or use a RaspPi to host OmerTus GoogleHomeKodi yourself, using docker. I went for the quicker fix -- with the downside, that the solution in this thread adds some additional delay. (Not outrageous, but noticeable.)