Guest User

Untitled

a guest
Jul 10th, 2015
225
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/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0",
  70.         "baudrate": 115200
  71.       },
  72.       "receiverPin": 0,
  73.       "transmitterPin": 4
  74.     },
  75.     {
  76.       "plugin": "shell-execute"
  77.     },
  78.     {
  79.       "plugin": "links",
  80.       "links": [
  81.         {
  82.           "title": "Webcam",
  83.           "url": "http://192.168.1.46/videostream.asf?user=admin&pwd=ficken100&resolution=640*480",
  84.           "target": "iframe"
  85.         },
  86.         {
  87.           "title": "Webcam2",
  88.           "url": "http://home/pi/cam.html",
  89.           "target": "iframe"
  90.         }
  91.       ]
  92.     },
  93.     {
  94.       "plugin": "sunrise",
  95.       "latitude": 53.443202,
  96.       "longitude": 7.096052
  97.     },
  98.     {
  99.       "plugin": "sysinfo"
  100.     }
  101.   ],
  102.   "devices": [
  103.     {
  104.       "class": "SystemSensor",
  105.       "id": "syssensor",
  106.       "name": "System",
  107.       "attributes": [
  108.         {
  109.           "name": "cpu"
  110.         },
  111.         {
  112.           "name": "memory"
  113.         },
  114.         {
  115.           "name": "diskusage",
  116.           "path": "/"
  117.         },
  118.         {
  119.           "name": "uptime"
  120.         },
  121.         {
  122.           "name": "temperature"
  123.         }
  124.       ]
  125.     },
  126.     {
  127.       "id": "weatherstation",
  128.       "name": "Temperatur/Feuchte",
  129.       "class": "HomeduinoRFWeatherStation",
  130.       "protocols": [
  131.         {
  132.           "name": "weather3",
  133.           "options": {
  134.             "id": 53
  135.           }
  136.         }
  137.       ],
  138.       "values": [
  139.         "temperature",
  140.         "humidity"
  141.       ]
  142.     },
  143.     {
  144.       "id": "sonnenstand",
  145.       "name": "Sonne",
  146.       "class": "ShellSensor",
  147.       "attributeName": "time",
  148.       "attributeType": "string",
  149.       "attributeUnit": "",
  150.       "command": "sudo bash /home/pi/sunrise.sh",
  151.       "interval": 3600000
  152.     },
  153.     {
  154.       "id": "rfswitch",
  155.       "name": "Dimmer",
  156.       "class": "HomeduinoRFDimmer",
  157.       "protocols": [
  158.         {
  159.           "name": "dimmer1",
  160.           "options": {
  161.             "id": 17494366,
  162.             "unit": 0
  163.           }
  164.         }
  165.       ]
  166.     }
  167.   ],
  168.   "rules": [
  169.     {
  170.       "id": "lichtplus",
  171.       "name": "LichtPlus_Morgens",
  172.       "rule": "if its after 5:00 and before 6:00 and every 20 seconds and $rfswitch.dimlevel < 100 then dim Dimmer to $rfswitch.dimlevel +1",
  173.       "active": true,
  174.       "logging": true
  175.     },
  176.     {
  177.       "id": "lichtminus",
  178.       "name": "LichtMinus_Abends",
  179.       "rule": "if its after 22:00 and before 23:45 and every 20 seconds and $rfswitch.dimlevel > 0 then dim Dimmer to $rfswitch.dimlevel -1",
  180.       "active": true,
  181.       "logging": true
  182.     },
  183.     {
  184.       "id": "lichtminus-mittag",
  185.       "name": "LichtMinus_Mittag",
  186.       "rule": "if its after 10:00 and before 11:45 and every 10 seconds and $rfswitch.dimlevel > 0 then dim Dimmer to $rfswitch.dimlevel -1",
  187.       "active": true,
  188.       "logging": true
  189.     },
  190.     {
  191.       "id": "lichtplus-nachmittag",
  192.       "name": "LichtPlus_Nachmittag",
  193.       "rule": "if its after 45 minutes before sunset and before 21:59 and every 15 seconds and $rfswitch.dimlevel < 100 then dim Dimmer to $rfswitch.dimlevel +1",
  194.       "active": true,
  195.       "logging": true
  196.     }
  197.   ],
  198.   "pages": [
  199.     {
  200.       "id": "favourite",
  201.       "name": "Hühnerstall",
  202.       "devices": [
  203.         {
  204.           "deviceId": "weatherstation"
  205.         },
  206.         {
  207.           "deviceId": "sonnenstand"
  208.         },
  209.         {
  210.           "deviceId": "rfswitch"
  211.         }
  212.       ]
  213.     },
  214.     {
  215.       "id": "sytem",
  216.       "name": "System",
  217.       "devices": [
  218.         {
  219.           "deviceId": "syssensor"
  220.         }
  221.       ]
  222.     }
  223.   ],
  224.   "groups": [
  225.     {
  226.       "id": "lichtsteuerung",
  227.       "name": "Lichtsteuerung",
  228.       "devices": [
  229.         "rfswitch"
  230.       ],
  231.       "rules": [
  232.         "lichtplus",
  233.         "lichtminus-mittag",
  234.         "lichtplus-nachmittag",
  235.         "lichtminus"
  236.       ],
  237.       "variables": [
  238.         "dimmer_level"
  239.       ]
  240.     },
  241.     {
  242.       "id": "huhnerklappe",
  243.       "name": "Hühnerklappe",
  244.       "devices": [],
  245.       "rules": [],
  246.       "variables": []
  247.     },
  248.     {
  249.       "id": "wetter",
  250.       "name": "Wetter",
  251.       "devices": [
  252.         "sonnenstand",
  253.         "weatherstation"
  254.       ],
  255.       "rules": [],
  256.       "variables": []
  257.     },
  258.     {
  259.       "id": "system",
  260.       "name": "System",
  261.       "devices": [
  262.         "syssensor"
  263.       ],
  264.       "rules": [],
  265.       "variables": []
  266.     }
  267.   ],
  268.   "users": [
  269.     {
  270.       "username": "admin",
  271.       "password": "admin",
  272.       "role": "admin"
  273.     }
  274.   ],
  275.   "roles": [
  276.     {
  277.       "name": "admin",
  278.       "permissions": {
  279.         "pages": "write",
  280.         "rules": "write",
  281.         "variables": "write",
  282.         "messages": "write",
  283.         "events": "write",
  284.         "devices": "write",
  285.         "groups": "write",
  286.         "plugins": "write",
  287.         "updates": "write",
  288.         "database": "write",
  289.         "config": "write",
  290.         "controlDevices": true,
  291.         "restart": true
  292.       }
  293.     }
  294.   ],
  295.   "variables": [
  296.     {
  297.       "name": "dimmer_level",
  298.       "expression": "$rfswitch.dimlevel"
  299.     }
  300.   ]
  301. }
RAW Paste Data