PlaceOS service handling events and conditional triggers.
See CONTRIBUTING.md
.
SG_ENV
= set toproduction
for production log levelsSMTP_SERVER
= hostname of the SMTP server for sending emails. i.e. smtp.example.comSMTP_PORT
= port to connect to the SMTP serverSMTP_USER
= username if any required, will not authenticate if this is left blankSMTP_PASS
= password if requiredSMTP_SECURE
= left blank for clear text,SMTPS
for a TLS connection,STARTTLS
for negotiating TLS on an initial clear text connectionREDIS_URL
= the redis connection string, defaults toredis://localhost:6379
Trigger state is exposed through the system like a regular module.
# Binding
_TRIGGER_.trig-systemtrigid
This exposes the following data:
{
"triggered": true / false,
"trigger_count": 34,
"action_errors": 2,
"comparison_errors": 0,
"conditions": {
"comparison_1": true / false,
"time_1": true / false
}
}