Guest User

config.json

a guest
Apr 8th, 2015
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. "settings":{
  3. "httpServer":{
  4. "enabled":true,
  5. "port":5002,
  6. "debug":true,
  7. "logLevel":"debug"
  8. },
  9. "database":{
  10. "deviceAttributeLogging":[
  11. {
  12. "deviceId":"",
  13. "attributeName":"",
  14. "type":"",
  15. "interval":"0",
  16. "expire":"7d"
  17. },
  18. {
  19. "deviceId":"",
  20. "attributeName":"",
  21. "type":"continuous",
  22. "interval":"5min",
  23. "expire":"7d"
  24. },
  25. {
  26. "deviceId":"",
  27. "attributeName":"temperature",
  28. "type":"number",
  29. "expire":"1y"
  30. },
  31. {
  32. "deviceId":"",
  33. "attributeName":"humidity",
  34. "type":"number",
  35. "expire":"1y"
  36. }
  37. ],
  38. "messageLogging":[
  39. {
  40. "level":"",
  41. "tags":[
  42.  
  43. ],
  44. "expire":"7d"
  45. },
  46. {
  47. "level":"debug",
  48. "tags":[
  49.  
  50. ],
  51. "expire":"0"
  52. }
  53. ]
  54. },
  55. "authentication":{
  56. "secret":"y9hs8rSYUU4XSqVT1wGaORQqwsCvFQOejL/uTIWH2MzpB33jeDPaosCKYXCiZ5Wx+DEMpCcQwsEdLFSuS5r+Ng=="
  57. },
  58. "httpsServer":{
  59.  
  60. },
  61. "gui":{
  62.  
  63. }
  64. },
  65. "plugins":[
  66. {
  67. "plugin":"cron"
  68. },
  69. {
  70. "plugin":"ping"
  71. },
  72. {
  73. "plugin":"mobile-frontend"
  74. },
  75. {
  76. "plugin":"homeduino",
  77. "driver":"gpio",
  78. "driverOptions":{
  79.  
  80. },
  81. "receiverPin":1,
  82. "transmitterPin":0
  83. },
  84. {
  85. "plugin":"pushover",
  86. "user":"ubs1knEqh6d8f8eajU4UwomDsV84X6",
  87. "token":"aGqagECwKBn5KfqFYDasJ7mDUa3zgL"
  88. },
  89. {
  90. "plugin":"max-thermostat",
  91. "host":"192.168.178.74",
  92. "port":62910
  93. },
  94. {
  95. "plugin":"weather"
  96. },
  97. {
  98. "plugin":"sunrise",
  99. "latitude":49.504333,
  100. "longitude":7.83735
  101. },
  102. {
  103. "plugin":"dhtxx"
  104. },
  105. {
  106. "plugin":"mail"
  107. },
  108. {
  109. "plugin":"openweather"
  110. },
  111. {
  112. "plugin":"sysinfo"
  113. },
  114. {
  115. "plugin":"shell-execute"
  116. }
  117. ],
  118. "devices":[
  119. {
  120. "id":"my-sensor",
  121. "name":"dht22 example",
  122. "class":"DHTxxSensor",
  123. "type":22,
  124. "gpio":23,
  125. "interval":6000
  126. },
  127. {
  128. "class":"SystemSensor",
  129. "id":"syssensor",
  130. "name":"System",
  131. "attributes":[
  132. {
  133. "name":"cpu"
  134. },
  135. {
  136. "name":"memory"
  137. },
  138. {
  139. "name":"diskusage",
  140. "path":"/"
  141. },
  142. {
  143. "name":"dbsize"
  144. },
  145. {
  146. "name":"temperature",
  147. "interval":5000
  148. }
  149. ]
  150. },
  151. {
  152. "id":"weather",
  153. "class":"WeatherDevice",
  154. "name":"Wetter in Kaiserslautern",
  155. "location":"Kaiserslautern, Germany",
  156. "degreeType":"C",
  157. "lang":"de-DE",
  158. "timeout":3600000
  159. },
  160. {
  161. "id":"sonnenaufgang",
  162. "name":"Sonnenaufgang",
  163. "class":"ShellSensor",
  164. "attributeName":"time",
  165. "attributeType":"string",
  166. "attributeUnit":"",
  167. "command":"curl -s http://weather.yahooapis.com/forecastrss?w=12835500|grep astronomy| awk -F\" '{print $2}'|{ date -f - +%R; }",
  168. "interval":43200
  169. },
  170. {
  171. "id":"sonnenuntergang",
  172. "name":"Sonnenuntergang",
  173. "class":"ShellSensor",
  174. "attributeName":"time",
  175. "attributeType":"string",
  176. "attributeUnit":"",
  177. "command":"curl -s http://weather.yahooapis.com/forecastrss?w=12835500|grep astronomy| awk -F\" '{print $4}'|{ date -f - +%R; }",
  178. "interval":43200
  179. },
  180. {
  181. "id":"Wanddose3",
  182. "name":"Wanddose 3",
  183. "class":"HomeduinoRFSwitch",
  184. "protocols":[
  185. {
  186. "name":"switch1",
  187. "options":{
  188. "unit":2,
  189. "id":6311046
  190. }
  191. }
  192. ]
  193. },
  194. {
  195. "id":"Wanddose2",
  196. "name":"Wanddose 2",
  197. "class":"HomeduinoRFSwitch",
  198. "protocols":[
  199. {
  200. "name":"switch1",
  201. "options":{
  202. "unit":1,
  203. "id":6311046
  204. }
  205. }
  206. ]
  207. },
  208. {
  209. "id":"WanddosePC",
  210. "name":"Wanddose Computer",
  211. "class":"HomeduinoRFSwitch",
  212. "protocols":[
  213. {
  214. "name":"switch1",
  215. "options":{
  216. "unit":0,
  217. "id":6311046
  218. }
  219. }
  220. ]
  221. },
  222. {
  223. "id":"TV",
  224. "name":"TV",
  225. "class":"HomeduinoRFSwitch",
  226. "protocols":[
  227. {
  228. "name":"switch1",
  229. "options":{
  230. "unit":0,
  231. "id":15896446
  232. }
  233. }
  234. ]
  235. },
  236. {
  237. "id":"TVLight",
  238. "name":"TV Licht",
  239. "class":"HomeduinoRFSwitch",
  240. "protocols":[
  241. {
  242. "name":"switch1",
  243. "options":{
  244. "unit":1,
  245. "id":15896446
  246. }
  247. }
  248. ]
  249. },
  250. {
  251. "id":"Leiste2",
  252. "name":"Steckdosen Leiste Fenster",
  253. "class":"HomeduinoRFSwitch",
  254. "protocols":[
  255. {
  256. "name":"switch1",
  257. "options":{
  258. "unit":2,
  259. "id":15896446
  260. }
  261. }
  262. ]
  263. },
  264. {
  265. "id":"jo",
  266. "name":"my smartphone",
  267. "class":"PingPresence",
  268. "host":"192.168.178.50",
  269. "interval":10000
  270. },
  271. {
  272. "id":"SchlafzimmerFensterLinks",
  273. "class":"MaxThermostatDevice",
  274. "name":"Heizung Schlafzimmer Fenster links",
  275. "deviceNo":"0f7022",
  276. "comfyTemp":20,
  277. "ecoTemp":15,
  278. "actTemp":17,
  279. "mode":"auto",
  280. "battery":"ok"
  281. },
  282. {
  283. "id":"WohzimmerFenster",
  284. "class":"MaxThermostatDevice",
  285. "name":"Heizung Wohnzimmer Fenster",
  286. "deviceNo":"0f6d75",
  287. "comfyTemp":21,
  288. "ecoTemp":15,
  289. "actTemp":17,
  290. "mode":"auto",
  291. "battery":"ok"
  292. },
  293. {
  294. "id":"window-livingroom",
  295. "class":"MaxContactSensor",
  296. "name":"Wohnzimmer Balkontuer",
  297. "deviceNo":"10951e"
  298. }
  299. ],
  300. "rules":[
  301. {
  302.  
  303. }
  304. ],
  305. "pages":[
  306. {
  307. "id":"wohnzimmer",
  308. "name":"Wohnzimmer",
  309. "devices":[
  310. {
  311. "deviceId":"WohzimmerFenster"
  312. },
  313. {
  314. "deviceId":"WanddosePC"
  315. },
  316. {
  317. "deviceId":"Wanddose3"
  318. },
  319. {
  320. "deviceId":"TV"
  321. },
  322. {
  323. "deviceId":"Leiste2"
  324. },
  325. {
  326. "deviceId":"TVLight"
  327. },
  328. {
  329. "deviceId":"my-sensor"
  330. },
  331. {
  332. "deviceId":"window-livingroom"
  333. }
  334. ]
  335. },
  336. {
  337. "id":"schalfzimmer",
  338. "name":"Schalfzimmer",
  339. "devices":[
  340. {
  341. "deviceId":"Wanddose2"
  342. },
  343. {
  344. "deviceId":"SchlafzimmerFensterLinks"
  345. }
  346. ]
  347. },
  348. {
  349. "id":"bad",
  350. "name":"Bad",
  351. "devices":[
  352.  
  353. ]
  354. },
  355. {
  356. "id":"kuche",
  357. "name":"Küche",
  358. "devices":[
  359.  
  360. ]
  361. },
  362. {
  363. "id":"esszimmer",
  364. "name":"Esszimmer",
  365. "devices":[
  366.  
  367. ]
  368. },
  369. {
  370. "id":"diele",
  371. "name":"Diele",
  372. "devices":[
  373.  
  374. ]
  375. },
  376. {
  377. "id":"system",
  378. "name":"System",
  379. "devices":[
  380. {
  381. "deviceId":"syssensor"
  382. },
  383. {
  384. "deviceId":"jo"
  385. },
  386. {
  387. "deviceId":"my-sensor"
  388. },
  389. {
  390. "deviceId":"weather"
  391. },
  392. {
  393. "deviceId":"sonnenaufgang"
  394. },
  395. {
  396. "deviceId":"sonnenuntergang"
  397. }
  398. ]
  399. }
  400. ],
  401. "groups":[
  402. {
  403. "id":"steckdosen",
  404. "name":"Steckdosen",
  405. "devices":[
  406. "WanddosePC",
  407. "Wanddose3",
  408. "Wanddose2",
  409. "TV",
  410. "TVLight",
  411. "Leiste2"
  412. ],
  413. "rules":[
  414.  
  415. ],
  416. "variables":[
  417.  
  418. ]
  419. },
  420. {
  421. "id":"heizung",
  422. "name":"Heizung",
  423. "devices":[
  424. "SchlafzimmerFensterLinks",
  425. "WohzimmerFenster"
  426. ],
  427. "rules":[
  428.  
  429. ],
  430. "variables":[
  431.  
  432. ]
  433. }
  434. ],
  435. "users":[
  436. {
  437. "username":"admin",
  438. "password":"admin",
  439. "role":"admin"
  440. }
  441. ],
  442. "roles":[
  443. {
  444. "name":"admin",
  445. "permissions":{
  446. "pages":"write",
  447. "rules":"write",
  448. "variables":"write",
  449. "messages":"write",
  450. "events":"write",
  451. "devices":"write",
  452. "groups":"write",
  453. "plugins":"write",
  454. "updates":"write",
  455. "database":"write",
  456. "config":"write",
  457. "controlDevices":true,
  458. "restart":true
  459. }
  460. }
  461. ],
  462. "variables":[
  463.  
  464. ]
  465. }
RAW Paste Data