...
Right now, our query process the data from the Arduino device and finds situations when the temperature drops by more than 20% in one minute. So, we also want to get warnings when Odysseus detects such a situation. We could now use one of these fancy new social media stuff like Twitter, but I prefer the more old-school email. That’s why I use the SMTP transport handler to directly send the result of the SASE operator to an email address using the following operator in PQL:
Code Block | ||||
---|---|---|---|---|
| ||||
out = SENDER({ SINK = 'Mail', TRANSPORT = 'SMTP', DATAHANDLER = 'Tuple', WRAPPER = 'GenericPush', PROTOCOL = 'CSV', OPTIONS = [ ['from','odysseus@example.com'], ['to','me@example.com'], ['subject','Open window'], ['host','smtp.example.com'], ['tls','true'], ['username','Alice'], ['password','***'] ] }, match) |
...