Advertisement
Khaki93

Config Pimatic

Aug 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.98 KB | None | 0 0
  1. {
  2.   "settings": {
  3.     "httpServer": {
  4.       "enabled": true,
  5.       "port": 81
  6.     },
  7.     "database": {
  8.       "deviceAttributeLogging": [
  9.         {
  10.           "deviceId": "*",
  11.           "attributeName": "*",
  12.           "type": "*",
  13.           "interval": "0",
  14.           "expire": "7d"
  15.         },
  16.         {
  17.           "deviceId": "*",
  18.           "attributeName": "*",
  19.           "type": "continuous",
  20.           "interval": "5min",
  21.           "expire": "7d"
  22.         },
  23.         {
  24.           "deviceId": "*",
  25.           "attributeName": "temperature",
  26.           "type": "number",
  27.           "expire": "1y"
  28.         },
  29.         {
  30.           "deviceId": "*",
  31.           "attributeName": "humidity",
  32.           "type": "number",
  33.           "expire": "1y"
  34.         }
  35.       ],
  36.       "messageLogging": [
  37.         {
  38.           "level": "*",
  39.           "tags": [],
  40.           "expire": "7d"
  41.         },
  42.         {
  43.           "level": "debug",
  44.           "tags": [],
  45.           "expire": "0"
  46.         }
  47.       ]
  48.     },
  49.     "authentication": {
  50.       "secret": ""
  51.     },
  52.     "httpsServer": {
  53.       "enabled": true,
  54.       "port": 445,
  55.       "hostname": "X.Y.Z.A",
  56.       "keyFile": "ca/pimatic-ssl/private/privkey.pem",
  57.       "certFile": "ca/pimatic-ssl/public/cert.pem",
  58.       "rootCertFile": "ca/certs/cacert.crt"
  59.     },
  60.     "cors": {},
  61.     "gui": {}
  62.   },
  63.   "plugins": [
  64.     {
  65.       "plugin": "cron"
  66.     },
  67.     {
  68.       "plugin": "mobile-frontend"
  69.     },
  70.     {
  71.       "driverOptions": {
  72.         "serialDevice": "/dev/ttyUSB0",
  73.         "baudrate": 115200
  74.       },
  75.       "enableReceiving": true,
  76.       "receiverPin": 0,
  77.       "transmitterPin": 4,
  78.       "debug": false,
  79.       "rfrepeats": 7,
  80.       "plugin": "homeduino",
  81.       "active": true
  82.     },
  83.     {
  84.       "bus": "/dev/i2c-1",
  85.       "address": 63,
  86.       "rows": 4,
  87.       "cols": 20,
  88.       "plugin": "lcd",
  89.       "active": true
  90.     },
  91.     {
  92.       "boards": [
  93.         {
  94.           "id": "1",
  95.           "boardType": "raspi-io"
  96.         },
  97.         {
  98.           "id": "2",
  99.           "boardType": "expander",
  100.           "port": "1",
  101.           "controller": "PCA9685"
  102.         },
  103.         {
  104.           "id": "3",
  105.           "boardType": "expander",
  106.           "port": "1",
  107.           "controller": "PCA9685",
  108.           "address": "0x40"
  109.         }
  110.       ],
  111.       "debug": false,
  112.       "plugin": "johnny-five",
  113.       "active": true
  114.     },
  115.     {
  116.       "debug": false,
  117.       "plugin": "ping",
  118.       "active": true
  119.     },
  120.     {
  121.       "debug": false,
  122.       "plugin": "gpio",
  123.       "active": true
  124.     },
  125.     {
  126.       "debug": false,
  127.       "plugin": "led-light",
  128.       "active": true
  129.     },
  130.     {
  131.       "plugin": "shell-execute",
  132.       "active": true
  133.     },
  134.     {
  135.       "plugin": "sysinfo",
  136.       "active": true
  137.     },
  138.     {
  139.       "plugin": "tplink-smartplug",
  140.       "active": true
  141.     }
  142.   ],
  143.   "devices": [
  144.     {
  145.       "class": "SystemSensor",
  146.       "id": "syssensor",
  147.       "name": "Systemstatus",
  148.       "attributes": [
  149.         {
  150.           "name": "cpu"
  151.         },
  152.         {
  153.           "name": "memory"
  154.         },
  155.         {
  156.           "name": "diskusage",
  157.           "path": "/",
  158.           "interval": 3600000
  159.         }
  160.       ]
  161.     }
  162.   ],
  163.   "rules": [],
  164.   "pages": [
  165.     {
  166.       "id": "favourite",
  167.       "name": "Favourites",
  168.       "devices": [
  169.         {
  170.           "deviceId": "syssensor"
  171.         }
  172.       ]
  173.     }
  174.   ],
  175.   "groups": [],
  176.   "users": [
  177.     {
  178.       "username": "",
  179.       "password": "",
  180.       "role": "admin"
  181.     }
  182.   ],
  183.   "roles": [
  184.     {
  185.       "name": "admin",
  186.       "permissions": {
  187.         "pages": "write",
  188.         "rules": "write",
  189.         "variables": "write",
  190.         "messages": "write",
  191.         "events": "write",
  192.         "devices": "write",
  193.         "groups": "write",
  194.         "plugins": "write",
  195.         "updates": "write",
  196.         "database": "write",
  197.         "config": "write",
  198.         "controlDevices": true,
  199.         "restart": true
  200.       }
  201.     }
  202.   ],
  203.   "variables": []
  204. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement