IFTTT Using Math with Ingredients?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members.

Is there a way to use math with IFTTT? I see that the amount of fuel is off a bit, and would like the multiply the number or add some together. Is there a way to modify the numbers that are sent in the notification?
Photo of bartekd

bartekd

  • 250 Points 250 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
I don't believe there is. (But I'll double check) You could export the data into a Google spreadsheet and then do the math there. Would that meet your need?
Photo of bartekd

bartekd

  • 250 Points 250 badge 2x thumb
I have been exporting the data in a google spreadsheet but I would rather receive real time notifications for the numbers based on my calculations. I am also calculating things because I am in Canada, like km instead of miles and liters instead of gallons so I would like the notification in real time.
Thanks for looking into it. It would be great if it's possible to do this.
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
Hi, bartekd. I confirmed there's no way to do math in the recipe itself, but one of our server engineers suggested the following:
"There's another DIY way, which is to set up a server that can receive incoming webhooks from IFTTT and send outgoing webhooks after doing the transformation: https://ifttt.com/maker"
Photo of bartekd

bartekd

  • 250 Points 250 badge 2x thumb
Thanks for getting back to me, and looking into it. The DIY method may work for me. Is there a template or any documentation you can point me to that could get me started?
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
I hope Ashok's info below is helpful, bartekd!
Photo of bartekd

bartekd

  • 250 Points 250 badge 2x thumb
Yes, thank  you for your prompt replies Amy. :)
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
You're welcome!
Photo of Ashok Aiyar

Ashok Aiyar

  • 1,172 Points 1k badge 2x thumb
I use the IFTTT Maker channel to send URLs for a DIY project monitoring one of my cats. Here's what you need - either access to a publicly accessible webserver, or set one up yourself. I went the latter route - RPi3+ lighttpd (bound to a non-standard port, my ISP doesn't allow inbound traffic to TCP port 80). Then I bought a Google domain and use the Linux dyndns client to update my DNS record whenever the IP assigned by my ISP changes. The IFTTT maker channel has instructions on how to craft a web request - https://ifttt.com/channels/maker/acti...
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
Thanks for pitching in here, Ashok!
Photo of bartekd

bartekd

  • 250 Points 250 badge 2x thumb
Great, thanks Ashok, I will play around with it. Thanks for your help!
Photo of Nathan

Nathan

  • 2,128 Points 2k badge 2x thumb
You can do maths in IFTTT if you are exporting to Google sheets. Just use functions. For example the recipe could be "=ingredient+ingredient2|||=ingredient2/ingredient1
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
Hey, Nathan! Great to see you popping back in! :)
Photo of bartekd

bartekd

  • 250 Points 250 badge 2x thumb
Thanks Nathan. I am using google sheets with my ifttt recipes, but the math that I was asking for was for the actual alerts on my phone.

This conversation is no longer open for comments or replies.