Cloud Output
Last updated
Last updated
The cloud output is in an early stage, and currently has three properties: Update, Notify, and Store, as pictured in the image below.
Update: The Update function replaces a "most recent value" in the database. For example, if I'm only interested in what the temperature is when I wake up, I could write an equation that goes When sound is greater than 50 (i.e. my alarm goes off), update. I could then look at the latest result from the cloud and see the most recent temperature. I am not interested in keeping the data from yesterday and the day before, so I am ok simply replacing it with a new reading.
Notify: The Notify function sends me a mobile notification. I can write the text of the notification if I so choose. For example, if I wanted to get a notification every time somebody opened a private cabinet in my home, I could make an equation such as When distance is greater than 700, notify, and I could add the text "Intruder alert." Please note that for Android users, you will have to allow notifications the first time you use this function. Also, notifications will not come in while you are on the IF Magic App, so to see the notifications, exit the app.
Store: The Store function is similar to the update function, except that instead of replacing a most recent value, it logs the data. For example, I could write an equation that goes When temperature is greater than 80, update. The update will send data from all ports on the Device, so if I also have a light sensor, I will get that data as well.
NOTE - All cloud outputs require WiFi connection. When you cast any equation with a cloud output, the cast screen will prompt you for your WiFi network name and password. In addition, when a Device goes into cloud mode, you will not be able to connect to it over bluetooth from the app. Therefore, when you are casting the equation, you will be prompted to select a reset port. Make sure the reset port does not have any other modules in it. When you wish to connect to the Device from the app again, place a button into the reset port and hold it for 5 seconds.