AVNET's iotconnect.io cloud platform is an online service that you can use to send data to, and then show it on a dashboard*. In this blog series I'm learning how to talk to it with Node-RED.
In this post, no Node-RED. I'm testing rules and alerts. Send a mail when a condition becomes true (temperature below freeze point).
Rules are useful to manage exceptions, warnings or draw attention to a condition.
In this case I'll send a message if the temperature I'm measuring with my thing drops below 0° C.
This can reflect a real-world situation where you may have to take some measures if a device has been in freeze conditions.
Create the rule
I'll create a simple rule. It's based on a fixed condition of a single parameter:
if temp < 0, send email.
I've set it up to send an email to a single user, myself:
This is the result after saving:
Test the rule
I'm using the "inject a temperature" part of my Node-RED flow to simulate that I measure "-1 °C".
The mail arrives:
You can see the content in the header of this post.
Here's how you can monitor the rule in the console, for all your notifications:
And here how you can see the rules that were executed for a particular device:
... and you can add a tile to the dashboard created in the previous post:
You can design complex conditions and use different notification mechanisms.
The steps above will help to get started. You can build up from here.