triggers
PlaceOS Triggers
PlaceOS service handling events and conditional triggers.
Contributing
See CONTRIBUTING.md
.
Environment Variables
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
Bindings
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
}
}
Repository
triggers
Owner
Statistic
- 0
- 1
- 2
- 0
- 16
- 17 days ago
- June 24, 2019
License
MIT License
Links
Synced at
Thu, 26 Dec 2024 03:34:18 GMT
Languages