I'll set up a rule using my device data. So I go to the rule section of the IOT platform dashboard and create a cloud rule. So I'll enter a name for the rule. So I'm going to set up a rule that triggers some behavior when my energy levels are low, so low energy rule. And this is going to apply to my esp8266 device type. So in the rule editor I can set up a condition for the rule. And I'm going to set that up using the energy property. And so when my energy levels are low I'm going to set that up using a threshold. And I'm just going to set that up to be less than 500. This is just an arbitrary number. When that rule triggers I want to set up an action. So for this action I'm going to use the cloud application that I set up. So I want to set up a web hook action. And what I'm going to get it to do is to send me a reminder event just so that I can be a little bit more motivated to exercise when I'm feeling low. So I'll put the URL in for that. it's going to be a get request and it's currently open - it doesn't require any authentication. So I'll hit finish and then I've set up my web hook action for the cloud app. So I'll select that, click OK, and then I can save this rule. And I can also activate it. So now this rule is active and whenever I receive some data that matches that condition where the energy is less than 500 it's going to trigger that API point on my cloud application. Go back to my rules. I can see there is my my rule in my list of rules and it is active. I can set up additional rules. So I'll set one up for when I have a high energy level. Again of the same property. So this time it'll be when the energy level is high. And I'm going to define that as being greater than or equal to 1000. And there are lots of different actions that I can perform I don't have to use the cloud application. I could set up an email action, an if this and that action, or a node red action. So let's configure it to send an email. And I'll just send myself a congratulatory email just to myself and that's done. So now I have the ability to send myself a nice motivating congratulatory email whenever my energy levels are high. it should motivate me to do my exercise. So I'll activate that. And again that should appear in my list of rules. by default the rules that I've set up are triggered every time the conditions are met but it is possible to customize that so they could be triggered if the conditions are met a certain number of times within a time period, only the first time, or if the conditions persist. So in the case of sending an email when I have registered a high degree of energy because I don't want to spam myself with email, what I'll do is I'll set that up so that it only sends that email if I maintain that energy level for a certain number of days. That will motivate me to keep exercising. So let's set that up so that it only triggers if it persists for two days. And then I can save that.