here is my config.json file contents:
{
"settings": {
"httpServer": {
"enabled": true,
"port": 80
},
"database": {
"deviceAttributeLogging": [
{
"deviceId": "*",
"attributeName": "*",
"type": "*",
"interval": "0",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "*",
"type": "continuous",
"interval": "5min",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "temperature",
"type": "number",
"expire": "1y"
},
{
"deviceId": "*",
"attributeName": "humidity",
"type": "number",
"expire": "1y"
}
],
"messageLogging": [
{
"level": "*",
"tags": [],
"expire": "7d"
},
{
"level": "debug",
"tags": [],
"expire": "0"
}
]
},
"authentication": {
"secret": "kTU7U1bsBA97glDEbApkC9LE8l1GC5vUoHgTPIMoR126Qw0yavC4jhMxg$
},
"httpsServer": {},
"gui": {}
},
"plugins": [
{
"plugin": "cron"
},
{
"plugin": "mobile-frontend"
},
{
"plugin": "gpio"
},
{
"plugin": "homeduino",
"driver": "serialport",
"driverOptions": {
"serialDevice": "/dev/ttyACM0",
"baudrate": 115200
}
},
{
"plugin": "sunrise",
"latitude": -25.792,
"longitude": 28.293
}
],
"devices": [
{
"id": "led-light",
"class": "GpioSwitch",
"name": "led light",
"gpio": 4,
"inverted": false,
"defaultState": false
},
{
"id": "pin-switch",
"name": "Pin Switch",
"class": "HomeduinoSwitch",
"inverted": false,
"pin": 13
}
],
"rules": [
{
"id": "auto-off",
"name": "auto off",
"rule": "if led-light is turned on for 5 seconds then switch led lig$
"active": false,
"logging": true
},
{
"id": "var1test",
"name": "var1test",
"rule": "if led-light is turned on then set $stoof = 50",
"active": true,
"logging": false
},
{
"id": "var2test",
"name": "var2test",
"rule": "if led-light is turned off then set $stoof = 0",
"active": true,
"logging": false
},
{
"id": "led-on-at-sunset",
"name": "led on at sunset",
"rule": "if sunset then switch led light on",
"active": true,
"logging": true
},
{
"id": "led-off-at-sunrise",
"name": "led off at sunrise",
"rule": "if sunrise then turn led light off",
"active": true,
"logging": true
},
{
"id": "time-led-on",
"name": "Time led on",
"rule": "if its 8:52pm then turn led-light on",
"active": true,
"logging": true
},
{
"id": "heartbeat-on",
"name": "Heartbeat_on",
"rule": "if led-light is turned on for 300 ms then turn led light of$
"active": false,
"logging": false
},
{
"id": "heartbeat-off",
"name": "Heartbeat",
"rule": "if led-light is turned off for 8 seconds then turn led ligh$
"active": true,
"logging": false
}
],
"pages": [
{
"id": "favourite",
"name": "Favourites",
"devices": [
{
"deviceId": "led-light"
}
]
},
{
"id": "variables",
"name": "Variables",
"devices": [
{
"deviceId": "led-light"
}
]
}
],
"groups": [],
"users": [
{
"username": "admin",
"password": "XXXXXXXX",
"role":"admin"
}
],
"roles": [
{
"name": "admin",
"permissions": {
"pages": "write",
"rules": "write",
"variables": "write",
"messages": "write",
"events": "write",
"devices": "write",
"groups": "write",
"plugins": "write",
"updates": "write",
"database": "write",
"config": "write",
"controlDevices": true,
"restart": true
}
}
],
"variables": [
{
"name": "stoof",
"value": 0
}
]
}