Advertisement
AymenFatnassi

Untitled

Feb 16th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.26 KB | None | 0 0
  1. [
  2. {
  3. "id": "d2e7b5cb.f69ed8",
  4. "type": "tab",
  5. "label": "Orchestrateu",
  6. "disabled": false,
  7. "info": ""
  8. },
  9. {
  10. "id": "fde533e9.f9824",
  11. "type": "tab",
  12. "label": "SMS",
  13. "disabled": false,
  14. "info": ""
  15. },
  16. {
  17. "id": "6c666456.db14fc",
  18. "type": "tab",
  19. "label": "TEST",
  20. "disabled": false,
  21. "info": ""
  22. },
  23. {
  24. "id": "6d0ce5ce.5d24ec",
  25. "type": "subflow",
  26. "name": "Subflow 1",
  27. "info": "",
  28. "in": [],
  29. "out": []
  30. },
  31. {
  32. "id": "200ac30a.27ebac",
  33. "type": "ui_group",
  34. "z": "",
  35. "name": "G1",
  36. "tab": "250f8afc.467546",
  37. "disp": true,
  38. "width": "6",
  39. "collapse": false
  40. },
  41. {
  42. "id": "c1a6f53b.1eb3f8",
  43. "type": "ui_group",
  44. "z": "",
  45. "name": "G2",
  46. "tab": "250f8afc.467546",
  47. "disp": true,
  48. "width": "6",
  49. "collapse": false
  50. },
  51. {
  52. "id": "250f8afc.467546",
  53. "type": "ui_tab",
  54. "z": "",
  55. "name": "FORUM",
  56. "icon": "dashboard"
  57. },
  58. {
  59. "id": "7c8a3ba9.cb2ed4",
  60. "type": "ui_group",
  61. "z": "",
  62. "name": "G3",
  63. "tab": "469d4fbc.ac4ef",
  64. "disp": true,
  65. "width": "6",
  66. "collapse": false
  67. },
  68. {
  69. "id": "469d4fbc.ac4ef",
  70. "type": "ui_tab",
  71. "z": "",
  72. "name": "FORUM",
  73. "icon": "dashboard"
  74. },
  75. {
  76. "id": "7aaa61a5.f07b8",
  77. "type": "ui_group",
  78. "z": "",
  79. "name": "G3",
  80. "tab": "6c6e6fbf.a1b42",
  81. "disp": true,
  82. "width": "6",
  83. "collapse": false
  84. },
  85. {
  86. "id": "6c6e6fbf.a1b42",
  87. "type": "ui_tab",
  88. "z": "",
  89. "name": "FORUM",
  90. "icon": "dashboard"
  91. },
  92. {
  93. "id": "78aa453d.2dd74c",
  94. "type": "ui_group",
  95. "z": "",
  96. "name": "test",
  97. "tab": "6438ccac.a98f34",
  98. "order": 1,
  99. "disp": true,
  100. "width": "10",
  101. "collapse": true
  102. },
  103. {
  104. "id": "6438ccac.a98f34",
  105. "type": "ui_tab",
  106. "z": "",
  107. "name": "test",
  108. "icon": "dashboard",
  109. "order": 26
  110. },
  111. {
  112. "id": "ac0bce80.593b4",
  113. "type": "ui_group",
  114. "z": "",
  115. "name": "Default",
  116. "tab": "9e4fa9f0.91c508",
  117. "disp": true,
  118. "width": "6",
  119. "collapse": false
  120. },
  121. {
  122. "id": "9e4fa9f0.91c508",
  123. "type": "ui_tab",
  124. "z": "",
  125. "name": "Start",
  126. "icon": "dashboard"
  127. },
  128. {
  129. "id": "d839c03d.ba1ac",
  130. "type": "ui_group",
  131. "z": "",
  132. "name": "Default",
  133. "tab": "ff7ade28.a1968",
  134. "disp": true,
  135. "width": "6",
  136. "collapse": false
  137. },
  138. {
  139. "id": "ff7ade28.a1968",
  140. "type": "ui_tab",
  141. "z": "",
  142. "name": "Start",
  143. "icon": "dashboard"
  144. },
  145. {
  146. "id": "c66a21a.5f1cce",
  147. "type": "ui_group",
  148. "z": "",
  149. "name": "Group 1",
  150. "tab": "cc4cdba2.ad0688",
  151. "order": 1,
  152. "disp": true,
  153. "width": "6",
  154. "collapse": false
  155. },
  156. {
  157. "id": "cc4cdba2.ad0688",
  158. "type": "ui_tab",
  159. "z": "",
  160. "name": "Curing",
  161. "icon": "dashboard"
  162. },
  163. {
  164. "id": "f078cc91.eea1d",
  165. "type": "ui_group",
  166. "z": "",
  167. "name": "G1",
  168. "tab": "18b59351.d592cd",
  169. "disp": true,
  170. "width": "6",
  171. "collapse": false
  172. },
  173. {
  174. "id": "b3141261.96b46",
  175. "type": "ui_group",
  176. "z": "",
  177. "name": "G2",
  178. "tab": "18b59351.d592cd",
  179. "disp": true,
  180. "width": "6",
  181. "collapse": false
  182. },
  183. {
  184. "id": "18b59351.d592cd",
  185. "type": "ui_tab",
  186. "z": "",
  187. "name": "FORUM",
  188. "icon": "dashboard"
  189. },
  190. {
  191. "id": "40f026d0.83abb8",
  192. "type": "ui_group",
  193. "z": "",
  194. "name": "test",
  195. "tab": "1f9d25b3.9f449a",
  196. "order": 1,
  197. "disp": true,
  198. "width": "10",
  199. "collapse": true
  200. },
  201. {
  202. "id": "1f9d25b3.9f449a",
  203. "type": "ui_tab",
  204. "z": "",
  205. "name": "test",
  206. "icon": "dashboard",
  207. "order": 26
  208. },
  209. {
  210. "id": "36c0065b.e395da",
  211. "type": "ui_group",
  212. "z": "",
  213. "name": "test",
  214. "tab": "5b789ba9.680dc4",
  215. "order": 1,
  216. "disp": true,
  217. "width": "10",
  218. "collapse": true
  219. },
  220. {
  221. "id": "5b789ba9.680dc4",
  222. "type": "ui_tab",
  223. "z": "",
  224. "name": "test",
  225. "icon": "dashboard",
  226. "order": 26
  227. },
  228. {
  229. "id": "c97c0ce7.5b82c",
  230. "type": "ui_group",
  231. "z": "",
  232. "name": "G1",
  233. "tab": "12965d16.36fb53",
  234. "disp": true,
  235. "width": "6",
  236. "collapse": false
  237. },
  238. {
  239. "id": "544684bb.f98dac",
  240. "type": "ui_group",
  241. "z": "",
  242. "name": "G2",
  243. "tab": "12965d16.36fb53",
  244. "disp": true,
  245. "width": "6",
  246. "collapse": false
  247. },
  248. {
  249. "id": "12965d16.36fb53",
  250. "type": "ui_tab",
  251. "z": "",
  252. "name": "FORUM",
  253. "icon": "dashboard"
  254. },
  255. {
  256. "id": "b6b1c559.dbda58",
  257. "type": "ui_group",
  258. "z": "",
  259. "name": "Menu",
  260. "tab": "2545a80.7f1ef58",
  261. "disp": true,
  262. "width": "6",
  263. "collapse": false
  264. },
  265. {
  266. "id": "695f5d8.5cf29a4",
  267. "type": "ui_group",
  268. "z": "",
  269. "name": "Group 2",
  270. "tab": "2545a80.7f1ef58",
  271. "order": 3,
  272. "disp": true,
  273. "width": "6",
  274. "collapse": false
  275. },
  276. {
  277. "id": "26c0267e.b06baa",
  278. "type": "ui_group",
  279. "z": "",
  280. "name": "Group 1",
  281. "tab": "2545a80.7f1ef58",
  282. "order": 2,
  283. "disp": true,
  284. "width": "6",
  285. "collapse": false
  286. },
  287. {
  288. "id": "eb71d297.94d6d",
  289. "type": "ui_group",
  290. "z": "",
  291. "name": "Group 3",
  292. "tab": "2545a80.7f1ef58",
  293. "order": 4,
  294. "disp": true,
  295. "width": "6",
  296. "collapse": false
  297. },
  298. {
  299. "id": "2545a80.7f1ef58",
  300. "type": "ui_tab",
  301. "z": "",
  302. "name": "Home",
  303. "icon": "dashboard"
  304. },
  305. {
  306. "id": "3f39840d.e89c2c",
  307. "type": "ui_group",
  308. "z": "",
  309. "name": "Default",
  310. "tab": "50d001af.6b483",
  311. "order": 3,
  312. "disp": true,
  313. "width": "6",
  314. "collapse": false
  315. },
  316. {
  317. "id": "1bc6c539.45d6bb",
  318. "type": "twitter-credentials",
  319. "z": "",
  320. "screen_name": ""
  321. },
  322. {
  323. "id": "32963089.85c",
  324. "type": "ui_group",
  325. "z": "",
  326. "name": "Activate things",
  327. "tab": "56fa6345.87e26c",
  328. "disp": true,
  329. "width": "6",
  330. "collapse": false
  331. },
  332. {
  333. "id": "c60347de.e14a48",
  334. "type": "ui_base",
  335. "theme": {
  336. "name": "theme-light",
  337. "lightTheme": {
  338. "default": "#0094CE",
  339. "baseColor": "#0094CE",
  340. "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
  341. "edited": true,
  342. "reset": false
  343. },
  344. "darkTheme": {
  345. "default": "#097479",
  346. "baseColor": "#097479",
  347. "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
  348. "edited": false
  349. },
  350. "customTheme": {
  351. "name": "Untitled Theme 1",
  352. "default": "#4B7930",
  353. "baseColor": "#4B7930",
  354. "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
  355. },
  356. "themeState": {
  357. "base-color": {
  358. "default": "#0094CE",
  359. "value": "#0094CE",
  360. "edited": false
  361. },
  362. "page-titlebar-backgroundColor": {
  363. "value": "#0094CE",
  364. "edited": false
  365. },
  366. "page-backgroundColor": {
  367. "value": "#fafafa",
  368. "edited": false
  369. },
  370. "page-sidebar-backgroundColor": {
  371. "value": "#ffffff",
  372. "edited": false
  373. },
  374. "group-textColor": {
  375. "value": "#1bbfff",
  376. "edited": false
  377. },
  378. "group-borderColor": {
  379. "value": "#ffffff",
  380. "edited": false
  381. },
  382. "group-backgroundColor": {
  383. "value": "#ffffff",
  384. "edited": false
  385. },
  386. "widget-textColor": {
  387. "value": "#111111",
  388. "edited": false
  389. },
  390. "widget-backgroundColor": {
  391. "value": "#0094ce",
  392. "edited": false
  393. },
  394. "widget-borderColor": {
  395. "value": "#ffffff",
  396. "edited": false
  397. },
  398. "base-font": {
  399. "value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
  400. }
  401. },
  402. "angularTheme": {
  403. "primary": "indigo",
  404. "accents": "blue",
  405. "warn": "red",
  406. "background": "grey"
  407. }
  408. },
  409. "site": {
  410. "name": "Node-RED Dashboard",
  411. "hideToolbar": "false",
  412. "allowSwipe": "false",
  413. "allowTempTheme": "true",
  414. "dateFormat": "DD/MM/YYYY",
  415. "sizes": {
  416. "sx": 48,
  417. "sy": 48,
  418. "gx": 6,
  419. "gy": 6,
  420. "cx": 6,
  421. "cy": 6,
  422. "px": 0,
  423. "py": 0
  424. }
  425. }
  426. },
  427. {
  428. "id": "56fa6345.87e26c",
  429. "type": "ui_tab",
  430. "z": "",
  431. "name": "Home",
  432. "icon": "dashboard"
  433. },
  434. {
  435. "id": "e29414e4.f85c08",
  436. "type": "ui_link",
  437. "name": "Link 3",
  438. "icon": "open_in_browser",
  439. "target": "newtab",
  440. "order": 3
  441. },
  442. {
  443. "id": "e43192a0.db4c8",
  444. "type": "ui_group",
  445. "name": "Group 1",
  446. "tab": "",
  447. "order": 1,
  448. "disp": true,
  449. "width": 6
  450. },
  451. {
  452. "id": "c245fb89.feb748",
  453. "type": "ui_group",
  454. "z": "",
  455. "name": "Color picker",
  456. "tab": "56fa6345.87e26c",
  457. "order": 2,
  458. "disp": true,
  459. "width": "6",
  460. "collapse": false
  461. },
  462. {
  463. "id": "21cd8c10.521ec4",
  464. "type": "ui_group",
  465. "z": "",
  466. "name": "Chart",
  467. "tab": "56fa6345.87e26c",
  468. "disp": true,
  469. "width": "6",
  470. "collapse": false
  471. },
  472. {
  473. "id": "c99a12e8.10b7b",
  474. "type": "mqtt-broker",
  475. "z": "",
  476. "name": "",
  477. "broker": "192.168.1.154",
  478. "port": "1883",
  479. "clientid": "",
  480. "usetls": false,
  481. "compatmode": true,
  482. "keepalive": "60",
  483. "cleansession": true,
  484. "birthTopic": "",
  485. "birthQos": "0",
  486. "birthPayload": "",
  487. "closeTopic": "",
  488. "closeQos": "0",
  489. "closePayload": "",
  490. "willTopic": "",
  491. "willQos": "0",
  492. "willPayload": ""
  493. },
  494. {
  495. "id": "4f45f82.3e08908",
  496. "type": "mqtt-broker",
  497. "z": "",
  498. "name": "",
  499. "broker": "localhost",
  500. "port": "1883",
  501. "clientid": "client3",
  502. "usetls": false,
  503. "compatmode": true,
  504. "keepalive": "60",
  505. "cleansession": true,
  506. "birthTopic": "",
  507. "birthQos": "0",
  508. "birthPayload": "",
  509. "closeTopic": "",
  510. "closeQos": "0",
  511. "closePayload": "",
  512. "willTopic": "",
  513. "willQos": "0",
  514. "willPayload": ""
  515. },
  516. {
  517. "id": "da929653.2f78e8",
  518. "type": "google-credentials",
  519. "z": "",
  520. "displayName": ""
  521. },
  522. {
  523. "id": "ebf889d0.5ad188",
  524. "type": "twilio-api",
  525. "z": "",
  526. "name": "aquarium",
  527. "sid": "AC6fe12939d1255befd1a33be86bb75bdb",
  528. "from": "+33644643390"
  529. },
  530. {
  531. "id": "3fba9747.2c35d8",
  532. "type": "mqtt in",
  533. "z": "d2e7b5cb.f69ed8",
  534. "name": "",
  535. "topic": "aquarium/1/sensors/ph",
  536. "qos": "2",
  537. "broker": "c99a12e8.10b7b",
  538. "x": 120,
  539. "y": 120,
  540. "wires": [
  541. [
  542. "b9f086a2.b184c8"
  543. ]
  544. ]
  545. },
  546. {
  547. "id": "7bc21a06.68a864",
  548. "type": "mqtt in",
  549. "z": "d2e7b5cb.f69ed8",
  550. "name": "",
  551. "topic": "aquarium/1/sensors/light",
  552. "qos": "2",
  553. "broker": "c99a12e8.10b7b",
  554. "x": 130,
  555. "y": 200,
  556. "wires": [
  557. [
  558. "59be4f35.c032e"
  559. ]
  560. ]
  561. },
  562. {
  563. "id": "c15f77f8.6e9018",
  564. "type": "mqtt in",
  565. "z": "d2e7b5cb.f69ed8",
  566. "name": "",
  567. "topic": "aquarium/1/sensors/temperature",
  568. "qos": "2",
  569. "broker": "c99a12e8.10b7b",
  570. "x": 150,
  571. "y": 340,
  572. "wires": [
  573. [
  574. "7b0d86c8.c43d08"
  575. ]
  576. ]
  577. },
  578. {
  579. "id": "b4dbbcd1.dd929",
  580. "type": "mqtt in",
  581. "z": "d2e7b5cb.f69ed8",
  582. "name": "",
  583. "topic": "aquarium/1/sensors/turbidite",
  584. "qos": "2",
  585. "broker": "c99a12e8.10b7b",
  586. "x": 140,
  587. "y": 460,
  588. "wires": [
  589. [
  590. "7964781d.7b8b98"
  591. ]
  592. ]
  593. },
  594. {
  595. "id": "4f2392b8.fcbf0c",
  596. "type": "mqtt in",
  597. "z": "d2e7b5cb.f69ed8",
  598. "name": "",
  599. "topic": "aquarium/1/sensors/water",
  600. "qos": "2",
  601. "broker": "c99a12e8.10b7b",
  602. "x": 130,
  603. "y": 620,
  604. "wires": [
  605. [
  606. "264d7b03.2360b4"
  607. ]
  608. ]
  609. },
  610. {
  611. "id": "a29be208.1ee1a",
  612. "type": "google calendar out",
  613. "z": "d2e7b5cb.f69ed8",
  614. "google": "da929653.2f78e8",
  615. "name": "",
  616. "calendar": "",
  617. "x": 790,
  618. "y": 620,
  619. "wires": []
  620. },
  621. {
  622. "id": "264d7b03.2360b4",
  623. "type": "function",
  624. "z": "d2e7b5cb.f69ed8",
  625. "name": "start",
  626. "func": "var addEvent = flow.get(\"waterLevelAlert\") || 0;\n\nvar d = new Date();\n\nvar year = d.getFullYear();\nvar month = d.getMonth();\nvar day = d.getDate();\nvar hour = d.getHours();\nvar min = d.getMinutes();\nvar sec = d.getSeconds();\n\nvar debut = year.toString()+\"-\"+month.toString()+\"-\"+day.toString()+\"T\"+hour.toString()+\":\"+min.toString()+\":\"+sec.toString()+\"-03:00\";\n\n\nm= msg.payload;\nmsg.payload = null;\nif (m>160)\n{\n if(!addEvent){\n var date = new Date();\n \n msg.payload= {\n summary : \"Aquarium\",\n description: \"Niveau d'eau est bas\",\n start: {dateTime: \"2019-02-05T15:00:00-03:00\"},\n end: {dateTime: \"2019-02-05T16:00:00-03:00\"},\n };\n flow.set(\"waterLevelAlert\",1);\n }\n} else {\n flow.set(\"waterLevelAlert\",0);\n \n}\n\nreturn msg;\n",
  627. "outputs": 1,
  628. "noerr": 0,
  629. "x": 430,
  630. "y": 620,
  631. "wires": [
  632. [
  633. "ae39e78b.ad6278"
  634. ]
  635. ]
  636. },
  637. {
  638. "id": "ae39e78b.ad6278",
  639. "type": "switch",
  640. "z": "d2e7b5cb.f69ed8",
  641. "name": "",
  642. "property": "payload",
  643. "propertyType": "msg",
  644. "rules": [
  645. {
  646. "t": "nnull"
  647. }
  648. ],
  649. "checkall": "true",
  650. "repair": false,
  651. "outputs": 1,
  652. "x": 590,
  653. "y": 620,
  654. "wires": [
  655. [
  656. "a29be208.1ee1a"
  657. ]
  658. ]
  659. },
  660. {
  661. "id": "b7f77470.6d9998",
  662. "type": "google calendar out",
  663. "z": "d2e7b5cb.f69ed8",
  664. "google": "da929653.2f78e8",
  665. "name": "",
  666. "calendar": "",
  667. "x": 750,
  668. "y": 1680,
  669. "wires": []
  670. },
  671. {
  672. "id": "fb5189d5.99e518",
  673. "type": "function",
  674. "z": "d2e7b5cb.f69ed8",
  675. "name": "start",
  676. "func": "m= msg.payload;\n\nvar d = new Date();\n\nvar year = d.getFullYear();\nvar month = d.getMonth()+1;\nvar day = d.getDate();\nvar hour = d.getHours();\nvar min = d.getMinutes();\nvar sec = d.getSeconds();\n\nvar debut = year.toString()+\"-\"+month.toString()+\"-\"+day.toString()+\"T\"+hour.toString()+\":\"+min.toString()+\":\"+sec.toString()+\"-03:00\";\nhour = hour+1;\nvar fin = year.toString()+\"-\"+month.toString()+\"-\"+day.toString()+\"T\"+hour.toString()+\":\"+min.toString()+\":\"+sec.toString()+\"-03:00\";\n\nif (m)\n{\nmsg.payload= {\nsummary : \"m.summary\",\ndescription: \"m.description\",\nstart: {dateTime: debut},\nend: {dateTime: fin},\n};\n} \n\nreturn msg;\n",
  677. "outputs": 1,
  678. "noerr": 0,
  679. "x": 450,
  680. "y": 1700,
  681. "wires": [
  682. [
  683. "b7f77470.6d9998",
  684. "bacbc7e0.dfee18"
  685. ]
  686. ]
  687. },
  688. {
  689. "id": "9490cf6a.4faa5",
  690. "type": "inject",
  691. "z": "d2e7b5cb.f69ed8",
  692. "name": "",
  693. "topic": "",
  694. "payload": "",
  695. "payloadType": "date",
  696. "repeat": "",
  697. "crontab": "",
  698. "once": false,
  699. "onceDelay": 0.1,
  700. "x": 180,
  701. "y": 1660,
  702. "wires": [
  703. [
  704. "fb5189d5.99e518"
  705. ]
  706. ]
  707. },
  708. {
  709. "id": "4ed064ed.85ba1c",
  710. "type": "http response",
  711. "z": "fde533e9.f9824",
  712. "name": "",
  713. "statusCode": "",
  714. "headers": {},
  715. "x": 530,
  716. "y": 740,
  717. "wires": []
  718. },
  719. {
  720. "id": "561fc51f.18ed1c",
  721. "type": "http request",
  722. "z": "fde533e9.f9824",
  723. "name": "",
  724. "method": "POST",
  725. "ret": "txt",
  726. "url": "192.168.1.108:5000/chart/phChart",
  727. "tls": "",
  728. "x": 310,
  729. "y": 720,
  730. "wires": [
  731. [
  732. "4ed064ed.85ba1c",
  733. "2da2401.47de6c"
  734. ]
  735. ]
  736. },
  737. {
  738. "id": "ac5afa09.c7ff88",
  739. "type": "inject",
  740. "z": "fde533e9.f9824",
  741. "name": "",
  742. "topic": "",
  743. "payload": "{\"x\":\"Mon, 04 Feb 2019 21:41:49 GMT\",\"y\":12}",
  744. "payloadType": "json",
  745. "repeat": "",
  746. "crontab": "",
  747. "once": false,
  748. "onceDelay": 0.1,
  749. "x": 110,
  750. "y": 720,
  751. "wires": [
  752. [
  753. "561fc51f.18ed1c"
  754. ]
  755. ]
  756. },
  757. {
  758. "id": "2da2401.47de6c",
  759. "type": "debug",
  760. "z": "fde533e9.f9824",
  761. "name": "",
  762. "active": true,
  763. "tosidebar": true,
  764. "console": false,
  765. "tostatus": false,
  766. "complete": "false",
  767. "x": 560,
  768. "y": 620,
  769. "wires": []
  770. },
  771. {
  772. "id": "b7d6a1eb.35f1d",
  773. "type": "http response",
  774. "z": "d2e7b5cb.f69ed8",
  775. "name": "",
  776. "statusCode": "",
  777. "headers": {},
  778. "x": 770,
  779. "y": 200,
  780. "wires": []
  781. },
  782. {
  783. "id": "ea8ecbca.dad678",
  784. "type": "http request",
  785. "z": "d2e7b5cb.f69ed8",
  786. "name": "",
  787. "method": "POST",
  788. "ret": "txt",
  789. "url": "192.168.1.108:5000/chart/lightChart",
  790. "tls": "",
  791. "x": 570,
  792. "y": 200,
  793. "wires": [
  794. [
  795. "b7d6a1eb.35f1d"
  796. ]
  797. ]
  798. },
  799. {
  800. "id": "2302a6fd.92c1ea",
  801. "type": "debug",
  802. "z": "d2e7b5cb.f69ed8",
  803. "name": "",
  804. "active": true,
  805. "tosidebar": true,
  806. "console": false,
  807. "tostatus": false,
  808. "complete": "false",
  809. "x": 570,
  810. "y": 260,
  811. "wires": []
  812. },
  813. {
  814. "id": "59be4f35.c032e",
  815. "type": "function",
  816. "z": "d2e7b5cb.f69ed8",
  817. "name": "",
  818. "func": "var temp = new Date();\nvar m = msg.payload;\n\nmsg.payload={\n \"x\": temp,\n \"y\":m\n};\n\n\nreturn msg;",
  819. "outputs": 1,
  820. "noerr": 0,
  821. "x": 350,
  822. "y": 200,
  823. "wires": [
  824. [
  825. "2302a6fd.92c1ea",
  826. "ea8ecbca.dad678"
  827. ]
  828. ]
  829. },
  830. {
  831. "id": "f610bc.9cef5f48",
  832. "type": "http response",
  833. "z": "d2e7b5cb.f69ed8",
  834. "name": "",
  835. "statusCode": "",
  836. "headers": {},
  837. "x": 770,
  838. "y": 120,
  839. "wires": []
  840. },
  841. {
  842. "id": "cf9809b0.99c628",
  843. "type": "http request",
  844. "z": "d2e7b5cb.f69ed8",
  845. "name": "",
  846. "method": "POST",
  847. "ret": "txt",
  848. "url": "192.168.1.108:5000/chart/phChart",
  849. "tls": "",
  850. "x": 570,
  851. "y": 120,
  852. "wires": [
  853. [
  854. "f610bc.9cef5f48"
  855. ]
  856. ]
  857. },
  858. {
  859. "id": "b9f086a2.b184c8",
  860. "type": "function",
  861. "z": "d2e7b5cb.f69ed8",
  862. "name": "",
  863. "func": "var temp = new Date();\nvar m = msg.payload;\n\nmsg.payload={\n \"x\": temp,\n \"y\":m\n};\n\n\nreturn msg;",
  864. "outputs": 1,
  865. "noerr": 0,
  866. "x": 350,
  867. "y": 120,
  868. "wires": [
  869. [
  870. "cf9809b0.99c628"
  871. ]
  872. ]
  873. },
  874. {
  875. "id": "f1f32f9a.c3915",
  876. "type": "http response",
  877. "z": "d2e7b5cb.f69ed8",
  878. "name": "",
  879. "statusCode": "",
  880. "headers": {},
  881. "x": 830,
  882. "y": 340,
  883. "wires": []
  884. },
  885. {
  886. "id": "81740bf3.a080e8",
  887. "type": "http request",
  888. "z": "d2e7b5cb.f69ed8",
  889. "name": "",
  890. "method": "POST",
  891. "ret": "txt",
  892. "url": "192.168.1.108:5000/chart/lightChart",
  893. "tls": "",
  894. "x": 630,
  895. "y": 340,
  896. "wires": [
  897. [
  898. "f1f32f9a.c3915"
  899. ]
  900. ]
  901. },
  902. {
  903. "id": "9e6627de.241178",
  904. "type": "debug",
  905. "z": "d2e7b5cb.f69ed8",
  906. "name": "",
  907. "active": true,
  908. "tosidebar": true,
  909. "console": false,
  910. "tostatus": false,
  911. "complete": "false",
  912. "x": 630,
  913. "y": 400,
  914. "wires": []
  915. },
  916. {
  917. "id": "7b0d86c8.c43d08",
  918. "type": "function",
  919. "z": "d2e7b5cb.f69ed8",
  920. "name": "",
  921. "func": "var temp = new Date();\nvar m = msg.payload;\n\nmsg.payload={\n \"x\": temp,\n \"y\":m\n};\n\n\nreturn msg;",
  922. "outputs": 1,
  923. "noerr": 0,
  924. "x": 410,
  925. "y": 340,
  926. "wires": [
  927. [
  928. "9e6627de.241178",
  929. "81740bf3.a080e8"
  930. ]
  931. ]
  932. },
  933. {
  934. "id": "715bb994.290718",
  935. "type": "http response",
  936. "z": "d2e7b5cb.f69ed8",
  937. "name": "",
  938. "statusCode": "",
  939. "headers": {},
  940. "x": 830,
  941. "y": 460,
  942. "wires": []
  943. },
  944. {
  945. "id": "7b309d94.652dc4",
  946. "type": "http request",
  947. "z": "d2e7b5cb.f69ed8",
  948. "name": "",
  949. "method": "POST",
  950. "ret": "txt",
  951. "url": "192.168.1.108:5000/chart/turbiditeChart",
  952. "tls": "",
  953. "x": 630,
  954. "y": 460,
  955. "wires": [
  956. [
  957. "715bb994.290718"
  958. ]
  959. ]
  960. },
  961. {
  962. "id": "c2ea60d.7edf9a",
  963. "type": "debug",
  964. "z": "d2e7b5cb.f69ed8",
  965. "name": "",
  966. "active": true,
  967. "tosidebar": true,
  968. "console": false,
  969. "tostatus": false,
  970. "complete": "false",
  971. "x": 630,
  972. "y": 520,
  973. "wires": []
  974. },
  975. {
  976. "id": "7964781d.7b8b98",
  977. "type": "function",
  978. "z": "d2e7b5cb.f69ed8",
  979. "name": "",
  980. "func": "var temp = new Date();\nvar m = msg.payload;\n\nmsg.payload={\n \"x\": temp,\n \"y\":m\n};\n\n\nreturn msg;",
  981. "outputs": 1,
  982. "noerr": 0,
  983. "x": 410,
  984. "y": 460,
  985. "wires": [
  986. [
  987. "c2ea60d.7edf9a",
  988. "7b309d94.652dc4"
  989. ]
  990. ]
  991. },
  992. {
  993. "id": "a68c16bb.923348",
  994. "type": "http response",
  995. "z": "d2e7b5cb.f69ed8",
  996. "name": "",
  997. "statusCode": "",
  998. "headers": {},
  999. "x": 850,
  1000. "y": 1340,
  1001. "wires": []
  1002. },
  1003. {
  1004. "id": "23bf148.b9b67ec",
  1005. "type": "http request",
  1006. "z": "d2e7b5cb.f69ed8",
  1007. "name": "",
  1008. "method": "POST",
  1009. "ret": "txt",
  1010. "url": "192.168.1.108:5000/chart/waterChart",
  1011. "tls": "",
  1012. "x": 650,
  1013. "y": 1340,
  1014. "wires": [
  1015. [
  1016. "a68c16bb.923348"
  1017. ]
  1018. ]
  1019. },
  1020. {
  1021. "id": "ddf504f2.a76d98",
  1022. "type": "debug",
  1023. "z": "d2e7b5cb.f69ed8",
  1024. "name": "",
  1025. "active": true,
  1026. "tosidebar": true,
  1027. "console": false,
  1028. "tostatus": false,
  1029. "complete": "false",
  1030. "x": 650,
  1031. "y": 1400,
  1032. "wires": []
  1033. },
  1034. {
  1035. "id": "37e36bd1.23fff4",
  1036. "type": "function",
  1037. "z": "d2e7b5cb.f69ed8",
  1038. "name": "",
  1039. "func": "var temp = new Date();\nvar m = msg.payload;\n\nmsg.payload={\n \"x\": temp,\n \"y\":m\n};\n\n\nreturn msg;",
  1040. "outputs": 1,
  1041. "noerr": 0,
  1042. "x": 430,
  1043. "y": 1340,
  1044. "wires": [
  1045. [
  1046. "ddf504f2.a76d98",
  1047. "23bf148.b9b67ec"
  1048. ]
  1049. ]
  1050. },
  1051. {
  1052. "id": "80689472.d2efb8",
  1053. "type": "debug",
  1054. "z": "d2e7b5cb.f69ed8",
  1055. "name": "",
  1056. "active": true,
  1057. "tosidebar": true,
  1058. "console": false,
  1059. "tostatus": false,
  1060. "complete": "payload",
  1061. "x": 950,
  1062. "y": 240,
  1063. "wires": []
  1064. },
  1065. {
  1066. "id": "69a99e13.49d6a",
  1067. "type": "function",
  1068. "z": "d2e7b5cb.f69ed8",
  1069. "name": "",
  1070. "func": "msg.payload=msg;\nreturn msg;",
  1071. "outputs": 1,
  1072. "noerr": 0,
  1073. "x": 770,
  1074. "y": 260,
  1075. "wires": [
  1076. [
  1077. "80689472.d2efb8"
  1078. ]
  1079. ]
  1080. },
  1081. {
  1082. "id": "815a2f74.dfe4b",
  1083. "type": "mqtt in",
  1084. "z": "d2e7b5cb.f69ed8",
  1085. "name": "",
  1086. "topic": "aquarium/1/status/light",
  1087. "qos": "2",
  1088. "broker": "c99a12e8.10b7b",
  1089. "x": 120,
  1090. "y": 760,
  1091. "wires": [
  1092. [
  1093. "4d56389b.2e7b08",
  1094. "dfd84866.ea1a78"
  1095. ]
  1096. ]
  1097. },
  1098. {
  1099. "id": "9bb3572a.4a5578",
  1100. "type": "http response",
  1101. "z": "d2e7b5cb.f69ed8",
  1102. "name": "",
  1103. "statusCode": "",
  1104. "headers": {},
  1105. "x": 770,
  1106. "y": 760,
  1107. "wires": []
  1108. },
  1109. {
  1110. "id": "9bd88702.c80b88",
  1111. "type": "http request",
  1112. "z": "d2e7b5cb.f69ed8",
  1113. "name": "",
  1114. "method": "POST",
  1115. "ret": "txt",
  1116. "url": "192.168.1.108:5000/chart/phChart",
  1117. "tls": "",
  1118. "x": 570,
  1119. "y": 760,
  1120. "wires": [
  1121. [
  1122. "9bb3572a.4a5578"
  1123. ]
  1124. ]
  1125. },
  1126. {
  1127. "id": "4d56389b.2e7b08",
  1128. "type": "function",
  1129. "z": "d2e7b5cb.f69ed8",
  1130. "name": "",
  1131. "func": "var etat = false;\nvar m = msg.payload;\n\nif (m === 1)\n{\n etat = ture ;\n}\n\nmsg.payload={\n \"y\":etat\n};\n\n\nreturn msg;",
  1132. "outputs": 1,
  1133. "noerr": 0,
  1134. "x": 350,
  1135. "y": 760,
  1136. "wires": [
  1137. [
  1138. "8e4d233.d6321e"
  1139. ]
  1140. ]
  1141. },
  1142. {
  1143. "id": "3cdf46bf.7fb9fa",
  1144. "type": "mqtt in",
  1145. "z": "d2e7b5cb.f69ed8",
  1146. "name": "",
  1147. "topic": "aquarium/1/status/lightForced",
  1148. "qos": "2",
  1149. "broker": "c99a12e8.10b7b",
  1150. "x": 140,
  1151. "y": 840,
  1152. "wires": [
  1153. [
  1154. "dbb38429.5c0578"
  1155. ]
  1156. ]
  1157. },
  1158. {
  1159. "id": "5149cf91.74007",
  1160. "type": "http response",
  1161. "z": "d2e7b5cb.f69ed8",
  1162. "name": "",
  1163. "statusCode": "",
  1164. "headers": {},
  1165. "x": 770,
  1166. "y": 840,
  1167. "wires": []
  1168. },
  1169. {
  1170. "id": "4671698f.0dee58",
  1171. "type": "http request",
  1172. "z": "d2e7b5cb.f69ed8",
  1173. "name": "",
  1174. "method": "POST",
  1175. "ret": "txt",
  1176. "url": "192.168.1.108:5000/chart/phChart",
  1177. "tls": "",
  1178. "x": 570,
  1179. "y": 840,
  1180. "wires": [
  1181. [
  1182. "5149cf91.74007"
  1183. ]
  1184. ]
  1185. },
  1186. {
  1187. "id": "4ccdaeb8.9d389",
  1188. "type": "function",
  1189. "z": "d2e7b5cb.f69ed8",
  1190. "name": "",
  1191. "func": "var etat = false;\nvar m = msg.payload;\n\nif (m === 1)\n{\n etat = ture ;\n}\n\nmsg.payload={\n \"y\":etat\n};\n\n\nreturn msg;",
  1192. "outputs": 1,
  1193. "noerr": 0,
  1194. "x": 350,
  1195. "y": 840,
  1196. "wires": [
  1197. [
  1198. "4671698f.0dee58"
  1199. ]
  1200. ]
  1201. },
  1202. {
  1203. "id": "dbb38429.5c0578",
  1204. "type": "debug",
  1205. "z": "d2e7b5cb.f69ed8",
  1206. "name": "",
  1207. "active": true,
  1208. "tosidebar": true,
  1209. "console": false,
  1210. "tostatus": false,
  1211. "complete": "payload",
  1212. "x": 370,
  1213. "y": 880,
  1214. "wires": []
  1215. },
  1216. {
  1217. "id": "8e4d233.d6321e",
  1218. "type": "debug",
  1219. "z": "d2e7b5cb.f69ed8",
  1220. "name": "",
  1221. "active": true,
  1222. "tosidebar": true,
  1223. "console": false,
  1224. "tostatus": false,
  1225. "complete": "payload",
  1226. "x": 510,
  1227. "y": 700,
  1228. "wires": []
  1229. },
  1230. {
  1231. "id": "fd082bc.189c4d8",
  1232. "type": "mqtt in",
  1233. "z": "d2e7b5cb.f69ed8",
  1234. "name": "",
  1235. "topic": "aquarium/1/status/",
  1236. "qos": "2",
  1237. "broker": "c99a12e8.10b7b",
  1238. "x": 170,
  1239. "y": 1480,
  1240. "wires": [
  1241. [
  1242. "198f8908.b8ca57"
  1243. ]
  1244. ]
  1245. },
  1246. {
  1247. "id": "ed385032.ba002",
  1248. "type": "http response",
  1249. "z": "d2e7b5cb.f69ed8",
  1250. "name": "",
  1251. "statusCode": "",
  1252. "headers": {},
  1253. "x": 810,
  1254. "y": 1480,
  1255. "wires": []
  1256. },
  1257. {
  1258. "id": "fbc57232.5fde7",
  1259. "type": "http request",
  1260. "z": "d2e7b5cb.f69ed8",
  1261. "name": "",
  1262. "method": "POST",
  1263. "ret": "txt",
  1264. "url": "192.168.1.108:5000/chart/phChart",
  1265. "tls": "",
  1266. "x": 610,
  1267. "y": 1480,
  1268. "wires": [
  1269. [
  1270. "ed385032.ba002"
  1271. ]
  1272. ]
  1273. },
  1274. {
  1275. "id": "61a39aef.5bc3b4",
  1276. "type": "function",
  1277. "z": "d2e7b5cb.f69ed8",
  1278. "name": "",
  1279. "func": "var temp = new Date();\nvar m = msg.payload;\n\nmsg.payload={\n \"x\": temp,\n \"y\":m\n};\n\n\nreturn msg;",
  1280. "outputs": 1,
  1281. "noerr": 0,
  1282. "x": 390,
  1283. "y": 1480,
  1284. "wires": [
  1285. [
  1286. "fbc57232.5fde7"
  1287. ]
  1288. ]
  1289. },
  1290. {
  1291. "id": "198f8908.b8ca57",
  1292. "type": "debug",
  1293. "z": "d2e7b5cb.f69ed8",
  1294. "name": "",
  1295. "active": true,
  1296. "tosidebar": true,
  1297. "console": false,
  1298. "tostatus": false,
  1299. "complete": "false",
  1300. "x": 410,
  1301. "y": 1520,
  1302. "wires": []
  1303. },
  1304. {
  1305. "id": "98adffc1.6af27",
  1306. "type": "mqtt in",
  1307. "z": "d2e7b5cb.f69ed8",
  1308. "name": "",
  1309. "topic": "aquarium/1/status/lightForced",
  1310. "qos": "2",
  1311. "broker": "c99a12e8.10b7b",
  1312. "x": 140,
  1313. "y": 1200,
  1314. "wires": [
  1315. [
  1316. "a34e17f5.8d6548"
  1317. ]
  1318. ]
  1319. },
  1320. {
  1321. "id": "1dfe293a.9a4067",
  1322. "type": "http response",
  1323. "z": "d2e7b5cb.f69ed8",
  1324. "name": "",
  1325. "statusCode": "",
  1326. "headers": {},
  1327. "x": 770,
  1328. "y": 1200,
  1329. "wires": []
  1330. },
  1331. {
  1332. "id": "44284b83.b39754",
  1333. "type": "http request",
  1334. "z": "d2e7b5cb.f69ed8",
  1335. "name": "",
  1336. "method": "POST",
  1337. "ret": "txt",
  1338. "url": "192.168.1.108:5000/chart/phChart",
  1339. "tls": "",
  1340. "x": 570,
  1341. "y": 1200,
  1342. "wires": [
  1343. [
  1344. "1dfe293a.9a4067"
  1345. ]
  1346. ]
  1347. },
  1348. {
  1349. "id": "a34e17f5.8d6548",
  1350. "type": "function",
  1351. "z": "d2e7b5cb.f69ed8",
  1352. "name": "",
  1353. "func": "var temp = new Date();\nvar m = msg.payload;\n\nmsg.payload={\n \"x\": temp,\n \"y\":m\n};\n\n\nreturn msg;",
  1354. "outputs": 1,
  1355. "noerr": 0,
  1356. "x": 390,
  1357. "y": 1200,
  1358. "wires": [
  1359. [
  1360. "44284b83.b39754"
  1361. ]
  1362. ]
  1363. },
  1364. {
  1365. "id": "de0e9072.f370a",
  1366. "type": "debug",
  1367. "z": "d2e7b5cb.f69ed8",
  1368. "name": "",
  1369. "active": true,
  1370. "tosidebar": true,
  1371. "console": false,
  1372. "tostatus": false,
  1373. "complete": "false",
  1374. "x": 370,
  1375. "y": 1240,
  1376. "wires": []
  1377. },
  1378. {
  1379. "id": "2017d50f.b71a0a",
  1380. "type": "mqtt in",
  1381. "z": "d2e7b5cb.f69ed8",
  1382. "name": "",
  1383. "topic": "aquarium/1/status/heater",
  1384. "qos": "2",
  1385. "broker": "c99a12e8.10b7b",
  1386. "x": 970,
  1387. "y": 760,
  1388. "wires": [
  1389. [
  1390. "3a42315f.5104ee"
  1391. ]
  1392. ]
  1393. },
  1394. {
  1395. "id": "deca244.d2223d8",
  1396. "type": "http response",
  1397. "z": "d2e7b5cb.f69ed8",
  1398. "name": "",
  1399. "statusCode": "",
  1400. "headers": {},
  1401. "x": 1610,
  1402. "y": 760,
  1403. "wires": []
  1404. },
  1405. {
  1406. "id": "6c2b4684.342318",
  1407. "type": "http request",
  1408. "z": "d2e7b5cb.f69ed8",
  1409. "name": "",
  1410. "method": "POST",
  1411. "ret": "txt",
  1412. "url": "192.168.1.108:5000/chart/phChart",
  1413. "tls": "",
  1414. "x": 1410,
  1415. "y": 760,
  1416. "wires": [
  1417. [
  1418. "deca244.d2223d8"
  1419. ]
  1420. ]
  1421. },
  1422. {
  1423. "id": "203d9284.d44fde",
  1424. "type": "function",
  1425. "z": "d2e7b5cb.f69ed8",
  1426. "name": "",
  1427. "func": "var etat = false;\nvar m = msg.payload;\n\nif (m === 1)\n{\n etat = ture ;\n}\n\nmsg.payload={\n \"y\":etat\n};\n\n\nreturn msg;",
  1428. "outputs": 1,
  1429. "noerr": 0,
  1430. "x": 1190,
  1431. "y": 760,
  1432. "wires": [
  1433. [
  1434. "6c2b4684.342318"
  1435. ]
  1436. ]
  1437. },
  1438. {
  1439. "id": "3a42315f.5104ee",
  1440. "type": "debug",
  1441. "z": "d2e7b5cb.f69ed8",
  1442. "name": "",
  1443. "active": true,
  1444. "tosidebar": true,
  1445. "console": false,
  1446. "tostatus": false,
  1447. "complete": "false",
  1448. "x": 1190,
  1449. "y": 720,
  1450. "wires": []
  1451. },
  1452. {
  1453. "id": "394a603b.a4d6e",
  1454. "type": "mqtt in",
  1455. "z": "d2e7b5cb.f69ed8",
  1456. "name": "",
  1457. "topic": "aquarium/1/status/heaterForced",
  1458. "qos": "2",
  1459. "broker": "c99a12e8.10b7b",
  1460. "x": 990,
  1461. "y": 840,
  1462. "wires": [
  1463. [
  1464. "8c160fcd.912e4"
  1465. ]
  1466. ]
  1467. },
  1468. {
  1469. "id": "ed4500.2de66b",
  1470. "type": "http response",
  1471. "z": "d2e7b5cb.f69ed8",
  1472. "name": "",
  1473. "statusCode": "",
  1474. "headers": {},
  1475. "x": 1650,
  1476. "y": 840,
  1477. "wires": []
  1478. },
  1479. {
  1480. "id": "ad02c67.e358b38",
  1481. "type": "http request",
  1482. "z": "d2e7b5cb.f69ed8",
  1483. "name": "",
  1484. "method": "POST",
  1485. "ret": "txt",
  1486. "url": "192.168.1.108:5000/chart/phChart",
  1487. "tls": "",
  1488. "x": 1450,
  1489. "y": 840,
  1490. "wires": [
  1491. [
  1492. "ed4500.2de66b"
  1493. ]
  1494. ]
  1495. },
  1496. {
  1497. "id": "6048b4d5.8b69ec",
  1498. "type": "function",
  1499. "z": "d2e7b5cb.f69ed8",
  1500. "name": "",
  1501. "func": "var etat = false;\nvar m = msg.payload;\n\nif (m === 1)\n{\n etat = ture ;\n}\n\nmsg.payload={\n \"y\":etat\n};\n\n\nreturn msg;",
  1502. "outputs": 1,
  1503. "noerr": 0,
  1504. "x": 1230,
  1505. "y": 840,
  1506. "wires": [
  1507. [
  1508. "ad02c67.e358b38"
  1509. ]
  1510. ]
  1511. },
  1512. {
  1513. "id": "8c160fcd.912e4",
  1514. "type": "debug",
  1515. "z": "d2e7b5cb.f69ed8",
  1516. "name": "",
  1517. "active": true,
  1518. "tosidebar": true,
  1519. "console": false,
  1520. "tostatus": false,
  1521. "complete": "false",
  1522. "x": 1230,
  1523. "y": 880,
  1524. "wires": []
  1525. },
  1526. {
  1527. "id": "5f9c015e.325cf",
  1528. "type": "mqtt in",
  1529. "z": "d2e7b5cb.f69ed8",
  1530. "name": "",
  1531. "topic": "aquarium/1/status/heaterThreshold",
  1532. "qos": "2",
  1533. "broker": "c99a12e8.10b7b",
  1534. "x": 160,
  1535. "y": 1020,
  1536. "wires": [
  1537. [
  1538. "12bbb615.07284a"
  1539. ]
  1540. ]
  1541. },
  1542. {
  1543. "id": "99bb6ae6.9675f8",
  1544. "type": "http response",
  1545. "z": "d2e7b5cb.f69ed8",
  1546. "name": "",
  1547. "statusCode": "",
  1548. "headers": {},
  1549. "x": 810,
  1550. "y": 1020,
  1551. "wires": []
  1552. },
  1553. {
  1554. "id": "810c228e.d547e",
  1555. "type": "http request",
  1556. "z": "d2e7b5cb.f69ed8",
  1557. "name": "",
  1558. "method": "POST",
  1559. "ret": "txt",
  1560. "url": "192.168.1.108:5000/chart/phChart",
  1561. "tls": "",
  1562. "x": 610,
  1563. "y": 1020,
  1564. "wires": [
  1565. [
  1566. "99bb6ae6.9675f8"
  1567. ]
  1568. ]
  1569. },
  1570. {
  1571. "id": "12bbb615.07284a",
  1572. "type": "function",
  1573. "z": "d2e7b5cb.f69ed8",
  1574. "name": "",
  1575. "func": "var temp = new Date();\nvar m = msg.payload;\n\nmsg.payload={\n \"x\": temp,\n \"y\":m\n};\n\n\nreturn msg;",
  1576. "outputs": 1,
  1577. "noerr": 0,
  1578. "x": 390,
  1579. "y": 1020,
  1580. "wires": [
  1581. [
  1582. "810c228e.d547e"
  1583. ]
  1584. ]
  1585. },
  1586. {
  1587. "id": "f24fa2c3.feaf6",
  1588. "type": "debug",
  1589. "z": "d2e7b5cb.f69ed8",
  1590. "name": "",
  1591. "active": true,
  1592. "tosidebar": true,
  1593. "console": false,
  1594. "tostatus": false,
  1595. "complete": "false",
  1596. "x": 390,
  1597. "y": 1060,
  1598. "wires": []
  1599. },
  1600. {
  1601. "id": "dfd84866.ea1a78",
  1602. "type": "debug",
  1603. "z": "d2e7b5cb.f69ed8",
  1604. "name": "",
  1605. "active": true,
  1606. "tosidebar": true,
  1607. "console": false,
  1608. "tostatus": false,
  1609. "complete": "payload",
  1610. "x": 310,
  1611. "y": 700,
  1612. "wires": []
  1613. },
  1614. {
  1615. "id": "bacbc7e0.dfee18",
  1616. "type": "debug",
  1617. "z": "d2e7b5cb.f69ed8",
  1618. "name": "",
  1619. "active": true,
  1620. "tosidebar": true,
  1621. "console": false,
  1622. "tostatus": false,
  1623. "complete": "false",
  1624. "x": 840,
  1625. "y": 1840,
  1626. "wires": []
  1627. },
  1628. {
  1629. "id": "3ad7d32e.ec4bec",
  1630. "type": "twilio out",
  1631. "z": "fde533e9.f9824",
  1632. "twilio": "ebf889d0.5ad188",
  1633. "twilioType": "sms",
  1634. "url": "",
  1635. "number": "",
  1636. "name": "",
  1637. "x": 780,
  1638. "y": 1380,
  1639. "wires": []
  1640. },
  1641. {
  1642. "id": "5a7d423a.fac32c",
  1643. "type": "function",
  1644. "z": "fde533e9.f9824",
  1645. "name": "",
  1646. "func": "var numStr = JSON.parse(msg.payload);\nvar num = parseInt(numStr.numberPhone,10);\nmsg.topic=num;\nmsg.payload = \"test SMS\";\nreturn msg;",
  1647. "outputs": 1,
  1648. "noerr": 0,
  1649. "x": 520,
  1650. "y": 1380,
  1651. "wires": [
  1652. [
  1653. "3ad7d32e.ec4bec",
  1654. "3e496fff.8dfbb"
  1655. ]
  1656. ]
  1657. },
  1658. {
  1659. "id": "624dea8b.ff0594",
  1660. "type": "inject",
  1661. "z": "fde533e9.f9824",
  1662. "name": "",
  1663. "topic": "",
  1664. "payload": "",
  1665. "payloadType": "date",
  1666. "repeat": "",
  1667. "crontab": "",
  1668. "once": false,
  1669. "onceDelay": 0.1,
  1670. "x": 180,
  1671. "y": 1380,
  1672. "wires": [
  1673. []
  1674. ]
  1675. },
  1676. {
  1677. "id": "4a75db6e.8dc534",
  1678. "type": "debug",
  1679. "z": "fde533e9.f9824",
  1680. "name": "",
  1681. "active": true,
  1682. "tosidebar": true,
  1683. "console": false,
  1684. "tostatus": false,
  1685. "complete": "payload",
  1686. "x": 800,
  1687. "y": 1560,
  1688. "wires": []
  1689. },
  1690. {
  1691. "id": "3fb09087.fe25",
  1692. "type": "http in",
  1693. "z": "fde533e9.f9824",
  1694. "name": "",
  1695. "url": "/numberPhone",
  1696. "method": "post",
  1697. "upload": false,
  1698. "swaggerDoc": "",
  1699. "x": 220,
  1700. "y": 1220,
  1701. "wires": [
  1702. [
  1703. "e4a3affb.b417",
  1704. "5a7d423a.fac32c",
  1705. "4a75db6e.8dc534"
  1706. ]
  1707. ]
  1708. },
  1709. {
  1710. "id": "e4a3affb.b417",
  1711. "type": "http response",
  1712. "z": "fde533e9.f9824",
  1713. "name": "",
  1714. "statusCode": "",
  1715. "headers": {},
  1716. "x": 500,
  1717. "y": 1200,
  1718. "wires": []
  1719. },
  1720. {
  1721. "id": "3e496fff.8dfbb",
  1722. "type": "debug",
  1723. "z": "fde533e9.f9824",
  1724. "name": "",
  1725. "active": true,
  1726. "tosidebar": true,
  1727. "console": false,
  1728. "tostatus": false,
  1729. "complete": "true",
  1730. "x": 420,
  1731. "y": 1580,
  1732. "wires": []
  1733. },
  1734. {
  1735. "id": "78920ebf.760f6",
  1736. "type": "mqtt in",
  1737. "z": "6c666456.db14fc",
  1738. "name": "",
  1739. "topic": "aquarium/1/actionneur/pompe",
  1740. "qos": "2",
  1741. "broker": "4f45f82.3e08908",
  1742. "x": 520,
  1743. "y": 140,
  1744. "wires": [
  1745. [
  1746. "23426765.920c28"
  1747. ]
  1748. ]
  1749. },
  1750. {
  1751. "id": "a82eef7a.0cf0f",
  1752. "type": "mqtt in",
  1753. "z": "6c666456.db14fc",
  1754. "name": "",
  1755. "topic": "aquarium/1/actionneur/lampe",
  1756. "qos": "2",
  1757. "broker": "4f45f82.3e08908",
  1758. "x": 520,
  1759. "y": 220,
  1760. "wires": [
  1761. [
  1762. "9641a918.d50788"
  1763. ]
  1764. ]
  1765. },
  1766. {
  1767. "id": "393667d3.dca658",
  1768. "type": "mqtt in",
  1769. "z": "6c666456.db14fc",
  1770. "name": "",
  1771. "topic": "aquarium/1/actionneur/heating",
  1772. "qos": "2",
  1773. "broker": "4f45f82.3e08908",
  1774. "x": 520,
  1775. "y": 300,
  1776. "wires": [
  1777. [
  1778. "b0d5d40b.fbabc8"
  1779. ]
  1780. ]
  1781. },
  1782. {
  1783. "id": "23426765.920c28",
  1784. "type": "mqtt out",
  1785. "z": "6c666456.db14fc",
  1786. "name": "",
  1787. "topic": "aquarium/1/actionneur/pompe",
  1788. "qos": "",
  1789. "retain": "",
  1790. "broker": "c99a12e8.10b7b",
  1791. "x": 970,
  1792. "y": 140,
  1793. "wires": []
  1794. },
  1795. {
  1796. "id": "9641a918.d50788",
  1797. "type": "mqtt out",
  1798. "z": "6c666456.db14fc",
  1799. "name": "",
  1800. "topic": "aquarium/1/actionneur/lampe",
  1801. "qos": "",
  1802. "retain": "",
  1803. "broker": "c99a12e8.10b7b",
  1804. "x": 940,
  1805. "y": 220,
  1806. "wires": []
  1807. },
  1808. {
  1809. "id": "b0d5d40b.fbabc8",
  1810. "type": "mqtt out",
  1811. "z": "6c666456.db14fc",
  1812. "name": "",
  1813. "topic": "aquarium/1/actionneur/heating",
  1814. "qos": "",
  1815. "retain": "",
  1816. "broker": "c99a12e8.10b7b",
  1817. "x": 930,
  1818. "y": 300,
  1819. "wires": []
  1820. },
  1821. {
  1822. "id": "c3662dcc.21214",
  1823. "type": "mqtt in",
  1824. "z": "6c666456.db14fc",
  1825. "name": "",
  1826. "topic": "aquarium/1/settings/temperature",
  1827. "qos": "2",
  1828. "broker": "4f45f82.3e08908",
  1829. "x": 210,
  1830. "y": 420,
  1831. "wires": [
  1832. [
  1833. "90ab8e88.84626"
  1834. ]
  1835. ]
  1836. },
  1837. {
  1838. "id": "23028ca2.3f9684",
  1839. "type": "mqtt in",
  1840. "z": "6c666456.db14fc",
  1841. "name": "",
  1842. "topic": "aquarium/1/settings/lamp",
  1843. "qos": "2",
  1844. "broker": "4f45f82.3e08908",
  1845. "x": 532.857177734375,
  1846. "y": 486,
  1847. "wires": [
  1848. [
  1849. "338f9129.1407ee"
  1850. ]
  1851. ]
  1852. },
  1853. {
  1854. "id": "1cbe5bfa.9856f4",
  1855. "type": "mqtt in",
  1856. "z": "6c666456.db14fc",
  1857. "name": "",
  1858. "topic": "aquarium/1/settings/feeding/tour",
  1859. "qos": "2",
  1860. "broker": "4f45f82.3e08908",
  1861. "x": 510,
  1862. "y": 620,
  1863. "wires": [
  1864. [
  1865. "7191e143.d23bb"
  1866. ]
  1867. ]
  1868. },
  1869. {
  1870. "id": "e3a6e5b8.50b388",
  1871. "type": "mqtt in",
  1872. "z": "6c666456.db14fc",
  1873. "name": "",
  1874. "topic": "aquarium/1/settings/pH",
  1875. "qos": "2",
  1876. "broker": "4f45f82.3e08908",
  1877. "x": 520,
  1878. "y": 560,
  1879. "wires": [
  1880. [
  1881. "e3bffe81.53a17"
  1882. ]
  1883. ]
  1884. },
  1885. {
  1886. "id": "37078791.078538",
  1887. "type": "mqtt in",
  1888. "z": "6c666456.db14fc",
  1889. "name": "",
  1890. "topic": "aquarium/1/settings/feeding/frequence",
  1891. "qos": "2",
  1892. "broker": "4f45f82.3e08908",
  1893. "x": 530,
  1894. "y": 680,
  1895. "wires": [
  1896. [
  1897. "ff4e8eda.c2619"
  1898. ]
  1899. ]
  1900. },
  1901. {
  1902. "id": "90ab8e88.84626",
  1903. "type": "mqtt out",
  1904. "z": "6c666456.db14fc",
  1905. "name": "",
  1906. "topic": "aquarium/1/settings/temperature",
  1907. "qos": "0",
  1908. "retain": "",
  1909. "broker": "c99a12e8.10b7b",
  1910. "x": 850,
  1911. "y": 420,
  1912. "wires": []
  1913. },
  1914. {
  1915. "id": "338f9129.1407ee",
  1916. "type": "mqtt out",
  1917. "z": "6c666456.db14fc",
  1918. "name": "",
  1919. "topic": "aquarium/1/settings/lamp",
  1920. "qos": "",
  1921. "retain": "",
  1922. "broker": "c99a12e8.10b7b",
  1923. "x": 950,
  1924. "y": 500,
  1925. "wires": []
  1926. },
  1927. {
  1928. "id": "e3bffe81.53a17",
  1929. "type": "mqtt out",
  1930. "z": "6c666456.db14fc",
  1931. "name": "",
  1932. "topic": "aquarium/1/settings/pH",
  1933. "qos": "",
  1934. "retain": "",
  1935. "broker": "c99a12e8.10b7b",
  1936. "x": 930,
  1937. "y": 560,
  1938. "wires": []
  1939. },
  1940. {
  1941. "id": "7191e143.d23bb",
  1942. "type": "mqtt out",
  1943. "z": "6c666456.db14fc",
  1944. "name": "",
  1945. "topic": "aquarium/1/settings/feeding/tour",
  1946. "qos": "",
  1947. "retain": "",
  1948. "broker": "c99a12e8.10b7b",
  1949. "x": 970,
  1950. "y": 620,
  1951. "wires": []
  1952. },
  1953. {
  1954. "id": "ff4e8eda.c2619",
  1955. "type": "mqtt out",
  1956. "z": "6c666456.db14fc",
  1957. "name": "",
  1958. "topic": "aquarium/1/settings/feeding/frequence",
  1959. "qos": "",
  1960. "retain": "",
  1961. "broker": "c99a12e8.10b7b",
  1962. "x": 990,
  1963. "y": 680,
  1964. "wires": []
  1965. },
  1966. {
  1967. "id": "b62509a.3d98df8",
  1968. "type": "inject",
  1969. "z": "6c666456.db14fc",
  1970. "name": "",
  1971. "topic": "",
  1972. "payload": "{\"max\":30,\"min\":21}",
  1973. "payloadType": "json",
  1974. "repeat": "",
  1975. "crontab": "",
  1976. "once": false,
  1977. "onceDelay": 0.1,
  1978. "x": 230,
  1979. "y": 360,
  1980. "wires": [
  1981. [
  1982. "90ab8e88.84626"
  1983. ]
  1984. ]
  1985. },
  1986. {
  1987. "id": "7ef37ae2.3832f4",
  1988. "type": "mqtt in",
  1989. "z": "6c666456.db14fc",
  1990. "name": "",
  1991. "topic": "aquarium/1/sensors/ph",
  1992. "qos": "2",
  1993. "broker": "4f45f82.3e08908",
  1994. "x": 340,
  1995. "y": 1040,
  1996. "wires": [
  1997. [
  1998. "336cdab9.16d1c6"
  1999. ]
  2000. ]
  2001. },
  2002. {
  2003. "id": "4c8a9ea1.d5e1f",
  2004. "type": "mqtt in",
  2005. "z": "6c666456.db14fc",
  2006. "name": "",
  2007. "topic": "aquarium/1/sensors/light",
  2008. "qos": "2",
  2009. "broker": "4f45f82.3e08908",
  2010. "x": 350,
  2011. "y": 1120,
  2012. "wires": [
  2013. [
  2014. "ec79372e.164798"
  2015. ]
  2016. ]
  2017. },
  2018. {
  2019. "id": "3c83101e.b957d",
  2020. "type": "mqtt in",
  2021. "z": "6c666456.db14fc",
  2022. "name": "",
  2023. "topic": "aquarium/1/sensors/temperature",
  2024. "qos": "2",
  2025. "broker": "4f45f82.3e08908",
  2026. "x": 370,
  2027. "y": 1180,
  2028. "wires": [
  2029. [
  2030. "719637ac.862f78"
  2031. ]
  2032. ]
  2033. },
  2034. {
  2035. "id": "53cae248.32defc",
  2036. "type": "mqtt in",
  2037. "z": "6c666456.db14fc",
  2038. "name": "",
  2039. "topic": "aquarium/1/sensors/turbidite",
  2040. "qos": "2",
  2041. "broker": "4f45f82.3e08908",
  2042. "x": 360,
  2043. "y": 1260,
  2044. "wires": [
  2045. [
  2046. "4e8fd1a7.72afc"
  2047. ]
  2048. ]
  2049. },
  2050. {
  2051. "id": "336cdab9.16d1c6",
  2052. "type": "debug",
  2053. "z": "6c666456.db14fc",
  2054. "name": "",
  2055. "active": false,
  2056. "tosidebar": true,
  2057. "console": false,
  2058. "tostatus": false,
  2059. "complete": "false",
  2060. "x": 630,
  2061. "y": 1040,
  2062. "wires": []
  2063. },
  2064. {
  2065. "id": "4814b052.1d5d3",
  2066. "type": "debug",
  2067. "z": "6c666456.db14fc",
  2068. "name": "",
  2069. "active": true,
  2070. "tosidebar": true,
  2071. "console": false,
  2072. "tostatus": false,
  2073. "complete": "false",
  2074. "x": 624,
  2075. "y": 1122,
  2076. "wires": []
  2077. },
  2078. {
  2079. "id": "ec79372e.164798",
  2080. "type": "debug",
  2081. "z": "6c666456.db14fc",
  2082. "name": "",
  2083. "active": true,
  2084. "tosidebar": true,
  2085. "console": false,
  2086. "tostatus": false,
  2087. "complete": "false",
  2088. "x": 624,
  2089. "y": 1122,
  2090. "wires": []
  2091. },
  2092. {
  2093. "id": "719637ac.862f78",
  2094. "type": "debug",
  2095. "z": "6c666456.db14fc",
  2096. "name": "",
  2097. "active": true,
  2098. "tosidebar": true,
  2099. "console": false,
  2100. "tostatus": false,
  2101. "complete": "false",
  2102. "x": 630,
  2103. "y": 1200,
  2104. "wires": []
  2105. },
  2106. {
  2107. "id": "4e8fd1a7.72afc",
  2108. "type": "debug",
  2109. "z": "6c666456.db14fc",
  2110. "name": "",
  2111. "active": true,
  2112. "tosidebar": true,
  2113. "console": false,
  2114. "tostatus": false,
  2115. "complete": "false",
  2116. "x": 630,
  2117. "y": 1280,
  2118. "wires": []
  2119. },
  2120. {
  2121. "id": "29b0da2e.289696",
  2122. "type": "mqtt in",
  2123. "z": "6c666456.db14fc",
  2124. "name": "",
  2125. "topic": "aquarium/1/sensors/water",
  2126. "qos": "2",
  2127. "broker": "4f45f82.3e08908",
  2128. "x": 370,
  2129. "y": 1360,
  2130. "wires": [
  2131. [
  2132. "3d5518b5.96ec38"
  2133. ]
  2134. ]
  2135. },
  2136. {
  2137. "id": "3d5518b5.96ec38",
  2138. "type": "debug",
  2139. "z": "6c666456.db14fc",
  2140. "name": "",
  2141. "active": false,
  2142. "tosidebar": true,
  2143. "console": false,
  2144. "tostatus": false,
  2145. "complete": "false",
  2146. "x": 650,
  2147. "y": 1380,
  2148. "wires": []
  2149. }
  2150. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement