Initial setup of mycontroller
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"[{\"columns\":[{\"styleClass\":\"col-md-4\",\"widgets\":[{\"type\":\"mycTime\",\"config\":{\"datePattern\":\"MMM dd, yyyy\",\"refreshTime\":\"120\"},\"title\":\"MyController time\",\"titleTemplateUrl\":\"../src/templates/widget-title.html\",\"wid\":\"1454676806001-1\"},{\"type\":\"mycSunriseTime\",\"config\":{\"refreshTime\":\"300\"},\"title\":\"Sunrise and sunset time\",\"titleTemplateUrl\":\"../src/templates/widget-title.html\",\"wid\":\"1454685464871-1\"}],\"cid\":\"1574885484919-2\"},{\"styleClass\":\"col-md-4\",\"widgets\":[{\"type\":\"mycSenVars\",\"config\":{\"variableIds\":[\"3\",\"4\"],\"showIcon\":true,\"confirmationEnabled\":false,\"itemsPerRow\":\"2\",\"refreshTime\":30},\"title\":\"Garage Doors\",\"titleTemplateUrl\":\"../src/templates/widget-title.html\",\"wid\":\"1574885450524-1\"}],\"cid\":\"1574885484920-3\"},{\"styleClass\":\"col-md-4\",\"widgets\":[],\"cid\":\"1574885484921-4\"}]},{\"columns\":[{\"styleClass\":\"col-md-12\",\"widgets\":[],\"cid\":\"1574885484922-5\"}]}]"
|
||||
@@ -0,0 +1,4 @@
|
||||
northDoorOpen = mcApi.uidTag().getByUid("north-garage-door-tripped").getResource();
|
||||
southDoorOpen = mcApi.uidTag().getByUid("south-garage-door-tripped").getResource();
|
||||
|
||||
!northDoorOpen || !southDoorOpen
|
||||
19
conf/resources/templates/mc-default-rule-email-template.html
Normal file
19
conf/resources/templates/mc-default-rule-email-template.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>body {font-size: 12px;}</style>
|
||||
<body>
|
||||
<b>Dear User,</b>
|
||||
<br>
|
||||
<br>There is a rule triggered for you!
|
||||
<br>
|
||||
<br>
|
||||
<table border='0'>
|
||||
<tr><td>Rule definition name</td><td>: ${notification.ruleName}</td> <tr>
|
||||
<tr><td>Condition</td><td>: ${notification.ruleCondition}</td><tr>
|
||||
<tr><td>Actual value</td><td>: ${notification.actualValue}</td><tr>
|
||||
<tr><td>Triggered at</td><td>: ${notification.triggeredAt}</td><tr>
|
||||
</table>
|
||||
<br>
|
||||
<br>-- Powered by <a href='http://www.MyController.org'>www.MyController.org</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user