How to get push notifications from soundflow using IFTTT
-
Go to https://ifttt.com/ and login or create an account if you don't have one.
-
Click on “Create” button or go to https://ifttt.com/create
-
Click on “If This (Add)”
-
Search for “Webhooks” and click it
-
Click on “Receive a web request”
-
Give the Event a name, for this one lets use “soundflowtrigger” and click Create trigger
-
Now click “Then That (Add)” and search for “Notifications”
-
Click on “Send a notification from the IFTTT app”
-
Under Message type whatever you want the push notification to say for this one lets use “Soundflow is done” once you’re done click “Create action”
-
Click Continue, give your Applet a title and click “Finish”
-
Now go https://ifttt.com/maker_webhooks and click on “Documentation” In the upper right corner
-
You need to copy the web address shown there including your key, that key is personal and should not be shared, should look something like this:
https://maker.ifttt.com/trigger/{event}/with/key/FollowedByYourUniqueKey
-
Replace
{event}
with the event name we gave our trigger, in this case “soundflowtrigger”
So it will look like this:
https://maker.ifttt.com/trigger/soundflowtrigger/with/key/FollowedByYourUniqueKey
-
Install the IFTTT iOS or Android app and login, make sure you enable notifications.
-
Run this script from Soundflow and you should get a push notification on your phone from the IFTTT app saying “Soundflow is done”, remember to replace the url with yours.
sf.net.httpRequest({
url: 'https://maker.ifttt.com/trigger/soundflowtrigger/with/key/FollowedByYourUniqueKey' ,
method: 'POST',
});
Linked from:
- Kitch Membery @Kitch2021-06-16 20:27:54.869Z
Hi @Nacho_Sotelo,
Thanks for joining me in the SoundFlow Weekly Webinar today :-)
To answer your question about how to ensure that scripts like this send notifications even if they fail. You can use a try, catch, finally setup;
Here is simple example
function main() { //Initialize didComplete variable to false, let didComplete = false; try { //Add your script here in the "try" block. //If the script is successful in getting to the following line, didComplete will be set to true. didComplete = true; } catch (err) { //If something in the "try" block fails the "catch" block will be run and didComplete will be set to false. didComplete = false; } finally { //The "finally" block will always run even if your script fails. You can then use an if statement to decipher if the script completed. if (didComplete === true) { log('Script Succeeded'); } else { log('Script failed'); } } } main();
I hope that helps :-)
Rock on!- NNacho @Nacho_Sotelo
Thank you @Kitch !
I just implemented this with another applet on IFTTT and its working perfectly, thank you so much
- Kitch Membery @Kitch2021-06-16 20:58:05.774Z
Great to hear, legend!
Have a great day.
Rock on
- AIn reply toNacho_Sotelo⬆:Andrew Sherman @Andrew_Sherman
This is so useful, thank you Nacho. I implemented this using Integromat, for anyone who uses Integromat instead of IFTTT, and I imagine the process is similar for Zapier etc.
- Get the Integromat app
- Set up a webhook in a new Integromat scenario
- Use Soundflow to trigger HTTP post (see first post above) using your new webhook address.
- In reply toNacho_Sotelo⬆:Arvid van den Bosch @Arvid_van_den_Bosch
Hi @Nacho_Sotelo !
Great step-by-step tutorial!
Simply every step was exactly as the website :)Do you have any idea how to send values as JSON to IFTTT by using sf.net.httpRequest?
I noticed you can send a JSON string like this: { "value1" : "", "value2" : "", "value3" : "" } but I'm not sure how to do it in Soundflow.
Erik
- NNacho @Nacho_Sotelo
I'm not sure how to do that or if its possible at all, maybe @Kitch can help :)