Apilio is natively integrated with IFTTT so you can combine almost 700 different brands of devices and services in your home routines. Apilio is a fantastic complement for IFTTT because you can create routines that combine multiple conditions, actions and delays.
Why do we need Variables?
To allow you to use your devices with Apilio and build Conditions that use those devices, IFTTT can send event information over to Apilio, such as the temperature, the humidity level or for exampleā¦the number of astronauts in space. Apilio will then store this information about your devices in its āmemoryā in the form of Variables.
2 options for managing numeric variables from IFTTT
With IFTTT, you can use the following two actions when creating your own applet from scratch:
- Update a numeric variable to a new value you specify
- Do a mathematical operation (add or subtract) with a numeric variable
Letās have a look at how you can setup and manage a numeric variable via IFTTT.
Setting up a numeric variable to check how many astronauts are out there
- In Apilio, create a numeric variable called āastronautsā and set it to 6, which at the time of writing was the number of people out there in our vast space as per Nasa:
- Go to IFTTT now and select ācreateā to start building your own applet (https://ifttt.com/create).
- For the āIf thisā part, select the Space service, and the trigger āAstronaut enters spaceā
- For the āthen thatā part, select the Apilio service, and āDo a mathematical operation with a numeric variableā as your action. Then your āastronautsā variable, āaddā as your operation and add 1.
- Review and click complete to finish setting up your applet, you are done!
- You can also subtract astronauts when the come back home with the alternative trigger, āAstronaut exits Spaceā
This is just an example to show you a step-by-step setup, but the sky is the limit! Let us know how you are using your numeric variables with Apilio.
Example setup where a numeric variable is used as a counter
Do you want to know more?
Have a look at these examples with the other types of variables:
Also check: