Is it possible to use arithmetic functions before forwarding

Simplify IoT Development.

Moderators: violet, yexiaobo, seth.welday

Post Reply
Wio
Pre-kindergarten
Pre-kindergarten
Posts: 19
Joined: Thu Apr 28, 2016 4:07 am

Is it possible to use arithmetic functions before forwarding

Post by Wio » Thu Apr 28, 2016 5:06 am

I have the temperature sensor and a ledbar which has 10 individual bars.
If I measure temperature in degree Celsius I get a float of around 17.5 if I forward this float to the led bar all LEDs are always on(for temps above 10°) so it would be cool if I just could make an offset of minus 15 or so...

I tried sensorvalue-15 but it failed. Is this possible? If yes how? Is there a kind of manual which commands can be used?

teng.wang
Pre-kindergarten
Pre-kindergarten
Posts: 37
Joined: Fri Apr 08, 2016 10:50 am

Re: Is it possible to use arithmetic functions before forwar

Post by teng.wang » Fri Apr 29, 2016 2:22 pm

Hi Wio,

IFTTT just post the parameter to string and send to my server.

I think you can write program with python with the API.
And do math logic with program.

Python example:
https://gist.github.com/awong1900/a64bd ... ash_led-py

Wio
Pre-kindergarten
Pre-kindergarten
Posts: 19
Joined: Thu Apr 28, 2016 4:07 am

Re: Is it possible to use arithmetic functions before forwar

Post by Wio » Mon May 02, 2016 1:09 am

I don't use an additional server, I thought it might work but I could not find the right documentation...

Wio
Pre-kindergarten
Pre-kindergarten
Posts: 19
Joined: Thu Apr 28, 2016 4:07 am

Re: Is it possible to use arithmetic functions before forwar

Post by Wio » Thu May 12, 2016 7:43 am

Does this really don't work?
I like how easy the IFTTT thing is but I hate that you touch the borders of so quickly...

teng.wang
Pre-kindergarten
Pre-kindergarten
Posts: 37
Joined: Fri Apr 08, 2016 10:50 am

Re: Is it possible to use arithmetic functions before forwar

Post by teng.wang » Fri May 13, 2016 2:08 pm

Wio wrote:Does this really don't work?
I like how easy the IFTTT thing is but I hate that you touch the borders of so quickly...
LOL , I have received a lot of good ideas about IFTTT from this forum. I try next week to give you a test channel, to add this feature.

teng.wang
Pre-kindergarten
Pre-kindergarten
Posts: 37
Joined: Fri Apr 08, 2016 10:50 am

Re: Is it possible to use arithmetic functions before forwar

Post by teng.wang » Fri May 20, 2016 6:41 pm

teng.wang wrote:
Wio wrote:Does this really don't work?
I like how easy the IFTTT thing is but I hate that you touch the borders of so quickly...
LOL , I have received a lot of good ideas about IFTTT from this forum. I try next week to give you a test channel, to add this feature.

Hi wio,

I add this feature on test Channel. Invite url: https://ifttt.com/features/redeem?code= ... ba547b5b60

Now only enable on Action/Drive any Grove.

How to use:
First character need "=".
e.g.
={{Ingredient}} -15

Support operators: +, -, *, /, ().
屏幕快照 2016-05-20 18.40.26.png
Hope you like it. Any question let me know

Ten

yexiaobo
Pre-kindergarten
Pre-kindergarten
Posts: 46
Joined: Tue Dec 11, 2012 10:53 am

Re: Is it possible to use arithmetic functions before forwar

Post by yexiaobo » Fri Jun 03, 2016 3:29 pm

Hey Wio(nice name lol),

Have you tried out the new feature?
We developed it based on your suggestion.
Look forward to your feedback.
Feel free to post your project on Wio's recipe!
We will def highlight it!
http://seeed.cc/projects.html?t=Wio

Post Reply