Advertisement
Guest User

Untitled

a guest
Jun 29th, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "//": "Please only change this file when pimatic is NOT running, otherwise pimatic will overwrite your changes.",
  3.   "settings": {
  4.     "httpServer": {
  5.       "enabled": true,
  6.       "port": 80,
  7.       "debug": true,
  8.       "logLevel": "debug"
  9.     },
  10.     "database": {
  11.       "deviceAttributeLogging": [
  12.         {
  13.           "deviceId": "*",
  14.           "attributeName": "*",
  15.           "type": "*",
  16.           "interval": "0",
  17.           "expire": "7d"
  18.         },
  19.         {
  20.           "deviceId": "*",
  21.           "attributeName": "*",
  22.           "type": "continuous",
  23.           "interval": "5min",
  24.           "expire": "7d"
  25.         },
  26.         {
  27.           "deviceId": "*",
  28.           "attributeName": "temperature",
  29.           "type": "number",
  30.           "expire": "1y"
  31.         },
  32.         {
  33.           "deviceId": "*",
  34.           "attributeName": "humidity",
  35.           "type": "number",
  36.           "expire": "1y"
  37.         }
  38.       ],
  39.       "messageLogging": [
  40.         {
  41.           "level": "*",
  42.           "tags": [],
  43.           "expire": "7d"
  44.         },
  45.         {
  46.           "level": "debug",
  47.           "tags": [],
  48.           "expire": "0"
  49.         }
  50.       ]
  51.     },
  52.     "authentication": {
  53.       "secret": "RR+rRrQ9o29DcIhw4MK2q5Bov7WTNcU+C929JlCKhQROKMXjSG27IXrGaI2wRYQofYgG/aQ0C42cvPb/REBm4w=="
  54.     },
  55.     "httpsServer": {},
  56.     "gui": {}
  57.   },
  58.   "plugins": [
  59.     {
  60.       "plugin": "cron"
  61.     },
  62.     {
  63.       "plugin": "mobile-frontend"
  64.     },
  65.     {
  66.       "plugin": "homeduino",
  67.       "driver": "serialport",
  68.       "driverOptions": {
  69.         "serialDevice": "/dev/ttyUSB0",
  70.         "baudrate": 115200
  71.       },
  72.       "receiverPin": 0,
  73.       "transmitterPin": 4
  74.     },
  75.     {
  76.       "plugin": "fritz",
  77.       "url": "http://fritz.box",
  78.       "user": "username",
  79.       "password": "123456",
  80.       "interval": 60
  81.     },
  82.     {
  83.       "plugin": "shell-execute"
  84.     },
  85.     {
  86.       "plugin": "links",
  87.       "links": []
  88.     },
  89.     {
  90.       "plugin": "sunrise",
  91.       "latitude": xxx,
  92.       "longitude": yyy
  93.     },
  94.     {
  95.       "plugin": "sysinfo"
  96.     }
  97.   ],
  98.   "devices": [
  99.     {
  100.       "id": "weatherstation",
  101.       "name": "Temperatur/Feuchte",
  102.       "class": "HomeduinoRFWeatherStation",
  103.       "protocols": [
  104.         {
  105.           "name": "weather3",
  106.           "options": {
  107.             "id": 53
  108.           }
  109.         }
  110.       ],
  111.       "values": [
  112.         "temperature",
  113.         "humidity"
  114.       ]
  115.     },
  116.     {
  117.       "class": "SystemSensor",
  118.       "id": "syssensor",
  119.       "name": "System",
  120.       "attributes": [
  121.         {
  122.           "name": "cpu"
  123.         },
  124.         {
  125.           "name": "memory"
  126.         },
  127.         {
  128.           "name": "diskusage",
  129.           "path": "/"
  130.         },
  131.         {
  132.           "name": "uptime"
  133.         }
  134.       ]
  135.     },
  136.     {
  137.       "id": "sonnenstand",
  138.       "name": "Sonne",
  139.       "class": "ShellSensor",
  140.       "attributeName": "time",
  141.       "attributeType": "string",
  142.       "attributeUnit": "",
  143.       "command": "sudo bash /home/pi/sunrise.sh",
  144.       "interval": 3600000
  145.     },
  146.     {
  147.       "id": "rfswitch",
  148.       "name": "Dimmer",
  149.       "class": "HomeduinoRFDimmer",
  150.       "protocols": [
  151.         {
  152.           "name": "dimmer1",
  153.           "options": {
  154.             "id": 17494366,
  155.             "unit": 0
  156.           }
  157.         }
  158.       ]
  159.     }
  160.   ],
  161.   "rules": [
  162.     {
  163.       "id": "lichtplus",
  164.       "name": "LichtPlus_Morgens",
  165.       "rule": "if its after 5:00 and before 6:00 and every 10 seconds and $rfswitch.dimlevel < 100 then dim Dimmer to $rfswitch.dimlevel +1",
  166.       "active": true,
  167.       "logging": true
  168.     },
  169.     {
  170.       "id": "lichtminus",
  171.       "name": "LichtMinus_Abends",
  172.       "rule": "if its after 22:00 and before 22:45 and every 10 seconds and $rfswitch.dimlevel > 0 then dim Dimmer to $rfswitch.dimlevel -1",
  173.       "active": true,
  174.       "logging": true
  175.     },
  176.     {
  177.       "id": "lichtminus-mittag",
  178.       "name": "LichtMinus_Mittag",
  179.       "rule": "if its after 10:00 and before 10:45 and every 2 seconds and $rfswitch.dimlevel > 0 then dim Dimmer to $rfswitch.dimlevel -1",
  180.       "active": true,
  181.       "logging": true
  182.     },
  183.     {
  184.       "id": "lichtplus-nachmittag",
  185.       "name": "LichtPlus_Nachmittag",
  186.       "rule": "if its 45 minutes before sunset and before 21:59 and every 10 seconds and $rfswitch.dimlevel < 100 then dim Dimmer to $rfswitch.dimlevel +1",
  187.       "active": true,
  188.       "logging": true
  189.     }
  190.   ],
  191.   "pages": [
  192.     {
  193.       "id": "favourite",
  194.       "name": "Hühnerstall",
  195.       "devices": [
  196.         {
  197.           "deviceId": "weatherstation"
  198.         },
  199.         {
  200.           "deviceId": "syssensor"
  201.         },
  202.         {
  203.           "deviceId": "sonnenstand"
  204.         },
  205.         {
  206.           "deviceId": "rfswitch"
  207.         }
  208.       ]
  209.     }
  210.   ],
  211.   "groups": [
  212.     {
  213.       "id": "lichtsteuerung",
  214.       "name": "Lichtsteuerung",
  215.       "devices": [
  216.         "rfswitch"
  217.       ],
  218.       "rules": [
  219.         "lichtplus",
  220.         "lichtminus-mittag",
  221.         "lichtplus-nachmittag",
  222.         "lichtminus"
  223.       ],
  224.       "variables": []
  225.     },
  226.     {
  227.       "id": "huhnerklappe",
  228.       "name": "Hühnerklappe",
  229.       "devices": [],
  230.       "rules": [],
  231.       "variables": []
  232.     },
  233.     {
  234.       "id": "wetter",
  235.       "name": "Wetter",
  236.       "devices": [
  237.         "sonnenstand",
  238.         "weatherstation"
  239.       ],
  240.       "rules": [],
  241.       "variables": []
  242.     }
  243.   ],
  244.   "users": [
  245.     {
  246.       "username": "admin",
  247.       "password": "admin",
  248.       "role": "admin"
  249.     }
  250.   ],
  251.   "roles": [
  252.     {
  253.       "name": "admin",
  254.       "permissions": {
  255.         "pages": "write",
  256.         "rules": "write",
  257.         "variables": "write",
  258.         "messages": "write",
  259.         "events": "write",
  260.         "devices": "write",
  261.         "groups": "write",
  262.         "plugins": "write",
  263.         "updates": "write",
  264.         "database": "write",
  265.         "config": "write",
  266.         "controlDevices": true,
  267.         "restart": true
  268.       }
  269.     }
  270.   ],
  271.   "variables": []
  272. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement