fork download
  1. [
  2. {
  3. "id": "9e5f7de6.8391",
  4. "type": "subflow",
  5. "name": "Lấy dữ từ iNut",
  6. "info": "",
  7. "in": [
  8. {
  9. "x": 50,
  10. "y": 30,
  11. "wires": [
  12. {
  13. "id": "392fc2c7.a2619e"
  14. }
  15. ]
  16. }
  17. ],
  18. "out": [
  19. {
  20. "x": 859.0000343322754,
  21. "y": 98.00000190734863,
  22. "wires": [
  23. {
  24. "id": "11ef360b.3d1f8a",
  25. "port": 0
  26. }
  27. ]
  28. },
  29. {
  30. "x": 968.0000343322754,
  31. "y": 102.00000286102295,
  32. "wires": [
  33. {
  34. "id": "11ef360b.3d1f8a",
  35. "port": 1
  36. }
  37. ]
  38. },
  39. {
  40. "x": 1048.9999732971191,
  41. "y": 101.00000381469727,
  42. "wires": [
  43. {
  44. "id": "11ef360b.3d1f8a",
  45. "port": 2
  46. }
  47. ]
  48. },
  49. {
  50. "x": 1059,
  51. "y": 253,
  52. "wires": [
  53. {
  54. "id": "11ef360b.3d1f8a",
  55. "port": 3
  56. }
  57. ]
  58. },
  59. {
  60. "x": 1102,
  61. "y": 318,
  62. "wires": [
  63. {
  64. "id": "11ef360b.3d1f8a",
  65. "port": 4
  66. }
  67. ]
  68. },
  69. {
  70. "x": 1116,
  71. "y": 399,
  72. "wires": [
  73. {
  74. "id": "11ef360b.3d1f8a",
  75. "port": 5
  76. }
  77. ]
  78. },
  79. {
  80. "x": 1108,
  81. "y": 444,
  82. "wires": [
  83. {
  84. "id": "11ef360b.3d1f8a",
  85. "port": 6
  86. }
  87. ]
  88. },
  89. {
  90. "x": 1006,
  91. "y": 489,
  92. "wires": [
  93. {
  94. "id": "11ef360b.3d1f8a",
  95. "port": 7
  96. }
  97. ]
  98. }
  99. ],
  100. "inputLabels": [
  101. "Nhận đầu vào MQTT IN từ iNut cảm biến"
  102. ],
  103. "outputLabels": [
  104. "Luồng cảm biến 1",
  105. "Luồng cảm biến 2",
  106. "Luồng cảm biến 3",
  107. "Luồng cảm biến 4",
  108. "Luồng cảm biến 5",
  109. "Luồng cảm biến 6",
  110. "Luồng cảm biến 7",
  111. "Luồng cảm biến 8"
  112. ]
  113. },
  114. {
  115. "id": "392fc2c7.a2619e",
  116. "type": "json",
  117. "z": "9e5f7de6.8391",
  118. "name": "",
  119. "property": "payload",
  120. "action": "",
  121. "pretty": false,
  122. "x": 165,
  123. "y": 84,
  124. "wires": [
  125. [
  126. "7848dd38.f27dd4"
  127. ]
  128. ]
  129. },
  130. {
  131. "id": "11ef360b.3d1f8a",
  132. "type": "switch",
  133. "z": "9e5f7de6.8391",
  134. "name": "Phân luồn",
  135. "property": "relayId",
  136. "propertyType": "msg",
  137. "rules": [
  138. {
  139. "t": "eq",
  140. "v": "0",
  141. "vt": "num"
  142. },
  143. {
  144. "t": "eq",
  145. "v": "1",
  146. "vt": "str"
  147. },
  148. {
  149. "t": "eq",
  150. "v": "2",
  151. "vt": "str"
  152. },
  153. {
  154. "t": "eq",
  155. "v": "3",
  156. "vt": "str"
  157. },
  158. {
  159. "t": "eq",
  160. "v": "4",
  161. "vt": "str"
  162. },
  163. {
  164. "t": "eq",
  165. "v": "5",
  166. "vt": "str"
  167. },
  168. {
  169. "t": "eq",
  170. "v": "6",
  171. "vt": "str"
  172. },
  173. {
  174. "t": "eq",
  175. "v": "7",
  176. "vt": "str"
  177. }
  178. ],
  179. "checkall": "true",
  180. "repair": false,
  181. "outputs": 8,
  182. "x": 825.9869575500488,
  183. "y": 288.1562738418579,
  184. "wires": [
  185. [],
  186. [],
  187. [],
  188. [],
  189. [],
  190. [],
  191. [],
  192. []
  193. ]
  194. },
  195. {
  196. "id": "7848dd38.f27dd4",
  197. "type": "function",
  198. "z": "9e5f7de6.8391",
  199. "name": "Lặp",
  200. "func": "if (!msg.states) {\n msg.states = msg.payload\n msg.i = 0\n return msg;\n} else {\n msg.i++\n if (msg.states[msg.i])\n return msg;\n}\n",
  201. "outputs": 1,
  202. "noerr": 0,
  203. "x": 327.89060974121094,
  204. "y": 83.33600330352783,
  205. "wires": [
  206. [
  207. "c1d0a733.267448"
  208. ]
  209. ]
  210. },
  211. {
  212. "id": "c1d0a733.267448",
  213. "type": "function",
  214. "z": "9e5f7de6.8391",
  215. "name": "Lấy trạng thái thiết bị",
  216. "func": "msg.relayId = msg.i\nmsg.payload = msg.states[msg.i].state\nreturn msg;",
  217. "outputs": 1,
  218. "noerr": 0,
  219. "x": 477.89060974121094,
  220. "y": 183.33600330352783,
  221. "wires": [
  222. [
  223. "7848dd38.f27dd4",
  224. "11ef360b.3d1f8a"
  225. ]
  226. ]
  227. },
  228. {
  229. "id": "87304a85.351228",
  230. "type": "mqtt in",
  231. "z": "ea534c6b.f0835",
  232. "name": "[MQTT-IN]iNut cảm biến - iNut S1",
  233. "topic": "request/seiatq62VLblmZSIg29IHdstGYu1/HJc3_qgo7/e485ed4bfd6583c6e0164af43279d5fe501816880883",
  234. "qos": "2",
  235. "broker": "24871657.178dca",
  236. "x": 210,
  237. "y": 500,
  238. "wires": [
  239. [
  240. "f62c0e73.5e1ad"
  241. ]
  242. ]
  243. },
  244. {
  245. "id": "4c9f5715.66e948",
  246. "type": "ui_gauge",
  247. "z": "ea534c6b.f0835",
  248. "name": "Độ ẩm",
  249. "group": "11a5ecb8.ecad63",
  250. "order": 3,
  251. "width": "6",
  252. "height": "3",
  253. "gtype": "gage",
  254. "title": "Độ ẩm",
  255. "label": "%",
  256. "format": "{{value}}",
  257. "min": 0,
  258. "max": "100",
  259. "colors": [
  260. "#00b500",
  261. "#e6e600",
  262. "#ca3838"
  263. ],
  264. "seg1": "",
  265. "seg2": "",
  266. "x": 730,
  267. "y": 620,
  268. "wires": []
  269. },
  270. {
  271. "id": "b0089678.8dc978",
  272. "type": "ui_gauge",
  273. "z": "ea534c6b.f0835",
  274. "name": "Ánh sáng",
  275. "group": "11a5ecb8.ecad63",
  276. "order": 4,
  277. "width": "6",
  278. "height": "3",
  279. "gtype": "gage",
  280. "title": "Ánh sáng",
  281. "label": "",
  282. "format": "{{value}}",
  283. "min": 0,
  284. "max": "1024",
  285. "colors": [
  286. "#00b500",
  287. "#e6e600",
  288. "#ca3838"
  289. ],
  290. "seg1": "",
  291. "seg2": "",
  292. "x": 740,
  293. "y": 660,
  294. "wires": []
  295. },
  296. {
  297. "id": "e2ace30b.dea68",
  298. "type": "ui_gauge",
  299. "z": "ea534c6b.f0835",
  300. "name": "Nhiệt độ",
  301. "group": "11a5ecb8.ecad63",
  302. "order": 2,
  303. "width": "6",
  304. "height": "3",
  305. "gtype": "gage",
  306. "title": "Nhiệt độ",
  307. "label": "oC",
  308. "format": "{{value}}",
  309. "min": 0,
  310. "max": "50",
  311. "colors": [
  312. "#00b500",
  313. "#e6e600",
  314. "#ca3838"
  315. ],
  316. "seg1": "",
  317. "seg2": "",
  318. "x": 740,
  319. "y": 580,
  320. "wires": []
  321. },
  322. {
  323. "id": "f62c0e73.5e1ad",
  324. "type": "subflow:9e5f7de6.8391",
  325. "z": "ea534c6b.f0835",
  326. "x": 500,
  327. "y": 500,
  328. "wires": [
  329. [
  330. "675ac4f4.a1b64c"
  331. ],
  332. [
  333. "eb8dcb27.517228"
  334. ],
  335. [
  336. "7e0b91.bfa5847"
  337. ],
  338. [
  339. "7f23463a.5d44e8"
  340. ],
  341. [
  342. "e2ace30b.dea68"
  343. ],
  344. [
  345. "4c9f5715.66e948"
  346. ],
  347. [
  348. "b0089678.8dc978"
  349. ],
  350. []
  351. ]
  352. },
  353. {
  354. "id": "1b14fe0e.f2b7d2",
  355. "type": "function",
  356. "z": "ea534c6b.f0835",
  357. "name": "",
  358. "func": "var command = msg.topic + ' ';\nif (msg.payload == 1) {\n command = command + '1 OFF';\n} else {\n command = command + '1 ON';\n}\nmsg.payload = {\n id: 0,\n command: command\n}\nreturn msg;",
  359. "outputs": 1,
  360. "noerr": 0,
  361. "x": 630,
  362. "y": 200,
  363. "wires": [
  364. [
  365. "f9c1936.9eab47"
  366. ]
  367. ]
  368. },
  369. {
  370. "id": "774936e9.7c02f8",
  371. "type": "ui_button",
  372. "z": "ea534c6b.f0835",
  373. "name": "",
  374. "group": "5b49ef2b.a1fed",
  375. "order": 6,
  376. "width": "2",
  377. "height": "2",
  378. "passthru": false,
  379. "label": "OFF",
  380. "color": "",
  381. "bgcolor": "",
  382. "icon": "",
  383. "payload": "1",
  384. "payloadType": "num",
  385. "topic": "RELAY",
  386. "x": 450,
  387. "y": 220,
  388. "wires": [
  389. [
  390. "1b14fe0e.f2b7d2"
  391. ]
  392. ]
  393. },
  394. {
  395. "id": "3db91843.2aa9a8",
  396. "type": "ui_button",
  397. "z": "ea534c6b.f0835",
  398. "name": "",
  399. "group": "5b49ef2b.a1fed",
  400. "order": 4,
  401. "width": "2",
  402. "height": "2",
  403. "passthru": false,
  404. "label": "ON",
  405. "color": "",
  406. "bgcolor": "",
  407. "icon": "",
  408. "payload": "0",
  409. "payloadType": "num",
  410. "topic": "RELAY",
  411. "x": 450,
  412. "y": 180,
  413. "wires": [
  414. [
  415. "1b14fe0e.f2b7d2"
  416. ]
  417. ]
  418. },
  419. {
  420. "id": "e4a4a7b7.9e4158",
  421. "type": "function",
  422. "z": "ea534c6b.f0835",
  423. "name": "",
  424. "func": "var command = msg.topic + ' ';\nif (msg.payload == 1) {\n command = command + '2 OFF';\n} else {\n command = command + '2 ON';\n}\nmsg.payload = {\n id: 0,\n command: command\n}\nreturn msg;",
  425. "outputs": 1,
  426. "noerr": 0,
  427. "x": 630,
  428. "y": 280,
  429. "wires": [
  430. [
  431. "25f3a776.ce7338"
  432. ]
  433. ]
  434. },
  435. {
  436. "id": "bc1bd05f.90f8f",
  437. "type": "ui_button",
  438. "z": "ea534c6b.f0835",
  439. "name": "",
  440. "group": "5b49ef2b.a1fed",
  441. "order": 9,
  442. "width": "2",
  443. "height": "2",
  444. "passthru": false,
  445. "label": "OFF",
  446. "color": "",
  447. "bgcolor": "",
  448. "icon": "",
  449. "payload": "1",
  450. "payloadType": "num",
  451. "topic": "RELAY",
  452. "x": 450,
  453. "y": 300,
  454. "wires": [
  455. [
  456. "e4a4a7b7.9e4158"
  457. ]
  458. ]
  459. },
  460. {
  461. "id": "e5a38610.c7e988",
  462. "type": "ui_button",
  463. "z": "ea534c6b.f0835",
  464. "name": "",
  465. "group": "5b49ef2b.a1fed",
  466. "order": 7,
  467. "width": "2",
  468. "height": "2",
  469. "passthru": false,
  470. "label": "ON",
  471. "color": "",
  472. "bgcolor": "",
  473. "icon": "",
  474. "payload": "0",
  475. "payloadType": "num",
  476. "topic": "RELAY",
  477. "x": 450,
  478. "y": 260,
  479. "wires": [
  480. [
  481. "e4a4a7b7.9e4158"
  482. ]
  483. ]
  484. },
  485. {
  486. "id": "47b60d1.95f97f4",
  487. "type": "function",
  488. "z": "ea534c6b.f0835",
  489. "name": "",
  490. "func": "var command = msg.topic + ' ';\nif (msg.payload == 1) {\n command = command + '3 OFF';\n} else {\n command = command + '3 ON';\n}\nmsg.payload = {\n id: 0,\n command: command\n}\nreturn msg;",
  491. "outputs": 1,
  492. "noerr": 0,
  493. "x": 630,
  494. "y": 360,
  495. "wires": [
  496. [
  497. "129029e7.6d29b6"
  498. ]
  499. ]
  500. },
  501. {
  502. "id": "b32f036.28cd7",
  503. "type": "ui_button",
  504. "z": "ea534c6b.f0835",
  505. "name": "",
  506. "group": "5b49ef2b.a1fed",
  507. "order": 12,
  508. "width": "2",
  509. "height": "2",
  510. "passthru": false,
  511. "label": "OFF",
  512. "color": "",
  513. "bgcolor": "",
  514. "icon": "",
  515. "payload": "1",
  516. "payloadType": "num",
  517. "topic": "RELAY",
  518. "x": 450,
  519. "y": 380,
  520. "wires": [
  521. [
  522. "47b60d1.95f97f4"
  523. ]
  524. ]
  525. },
  526. {
  527. "id": "d46e168f.dd8c28",
  528. "type": "ui_button",
  529. "z": "ea534c6b.f0835",
  530. "name": "",
  531. "group": "5b49ef2b.a1fed",
  532. "order": 10,
  533. "width": "2",
  534. "height": "2",
  535. "passthru": false,
  536. "label": "ON",
  537. "color": "",
  538. "bgcolor": "",
  539. "icon": "",
  540. "payload": "0",
  541. "payloadType": "num",
  542. "topic": "RELAY",
  543. "x": 450,
  544. "y": 340,
  545. "wires": [
  546. [
  547. "47b60d1.95f97f4"
  548. ]
  549. ]
  550. },
  551. {
  552. "id": "7167a74c.1a2a58",
  553. "type": "function",
  554. "z": "ea534c6b.f0835",
  555. "name": "",
  556. "func": "var command = msg.topic + ' ';\nif (msg.payload == 1) {\n command = command + '0 OFF';\n} else {\n command = command + '0 ON';\n}\nmsg.payload = {\n id: 0,\n command: command\n}\nreturn msg;",
  557. "outputs": 1,
  558. "noerr": 0,
  559. "x": 630,
  560. "y": 120,
  561. "wires": [
  562. [
  563. "3bcc169e.fda59a"
  564. ]
  565. ]
  566. },
  567. {
  568. "id": "7332184a.f3c8c8",
  569. "type": "ui_button",
  570. "z": "ea534c6b.f0835",
  571. "name": "",
  572. "group": "5b49ef2b.a1fed",
  573. "order": 3,
  574. "width": "2",
  575. "height": "2",
  576. "passthru": false,
  577. "label": "OFF",
  578. "color": "",
  579. "bgcolor": "",
  580. "icon": "",
  581. "payload": "1",
  582. "payloadType": "num",
  583. "topic": "RELAY",
  584. "x": 450,
  585. "y": 140,
  586. "wires": [
  587. [
  588. "7167a74c.1a2a58"
  589. ]
  590. ]
  591. },
  592. {
  593. "id": "c71a0c33.079e2",
  594. "type": "ui_button",
  595. "z": "ea534c6b.f0835",
  596. "name": "",
  597. "group": "5b49ef2b.a1fed",
  598. "order": 1,
  599. "width": "2",
  600. "height": "2",
  601. "passthru": false,
  602. "label": "ON",
  603. "color": "",
  604. "bgcolor": "",
  605. "icon": "",
  606. "payload": "0",
  607. "payloadType": "num",
  608. "topic": "RELAY",
  609. "x": 450,
  610. "y": 100,
  611. "wires": [
  612. [
  613. "7167a74c.1a2a58"
  614. ]
  615. ]
  616. },
  617. {
  618. "id": "c24652d5.b3b5f",
  619. "type": "ui_text",
  620. "z": "ea534c6b.f0835",
  621. "group": "11a5ecb8.ecad63",
  622. "order": 1,
  623. "width": 0,
  624. "height": 0,
  625. "name": "",
  626. "label": "Status",
  627. "format": "{{msg.payload}}",
  628. "layout": "row-spread",
  629. "x": 1330,
  630. "y": 800,
  631. "wires": []
  632. },
  633. {
  634. "id": "5672da4a.913b44",
  635. "type": "change",
  636. "z": "ea534c6b.f0835",
  637. "name": "ONLINE",
  638. "rules": [
  639. {
  640. "t": "set",
  641. "p": "payload",
  642. "pt": "msg",
  643. "to": "ONLINE",
  644. "tot": "str"
  645. }
  646. ],
  647. "action": "",
  648. "property": "",
  649. "from": "",
  650. "to": "",
  651. "reg": false,
  652. "x": 1180,
  653. "y": 720,
  654. "wires": [
  655. [
  656. "c24652d5.b3b5f",
  657. "dcc1d2bd.cff21"
  658. ]
  659. ]
  660. },
  661. {
  662. "id": "797be1ee.956fc",
  663. "type": "switch",
  664. "z": "ea534c6b.f0835",
  665. "name": "Kiểm tra ONLINE",
  666. "property": "payload.status",
  667. "propertyType": "msg",
  668. "rules": [
  669. {
  670. "t": "eq",
  671. "v": "0",
  672. "vt": "num"
  673. },
  674. {
  675. "t": "eq",
  676. "v": "-1",
  677. "vt": "num"
  678. }
  679. ],
  680. "checkall": "true",
  681. "repair": false,
  682. "outputs": 2,
  683. "x": 990,
  684. "y": 760,
  685. "wires": [
  686. [
  687. "5672da4a.913b44"
  688. ],
  689. [
  690. "c103d0ee.365d3"
  691. ]
  692. ]
  693. },
  694. {
  695. "id": "c103d0ee.365d3",
  696. "type": "change",
  697. "z": "ea534c6b.f0835",
  698. "name": "OFFLINE",
  699. "rules": [
  700. {
  701. "t": "set",
  702. "p": "payload",
  703. "pt": "msg",
  704. "to": "OFFLINE",
  705. "tot": "str"
  706. }
  707. ],
  708. "action": "",
  709. "property": "",
  710. "from": "",
  711. "to": "",
  712. "reg": false,
  713. "x": 1180,
  714. "y": 800,
  715. "wires": [
  716. [
  717. "c24652d5.b3b5f"
  718. ]
  719. ]
  720. },
  721. {
  722. "id": "b497ce31.5f802",
  723. "type": "json",
  724. "z": "ea534c6b.f0835",
  725. "name": "",
  726. "property": "payload",
  727. "action": "",
  728. "pretty": false,
  729. "x": 830,
  730. "y": 760,
  731. "wires": [
  732. [
  733. "797be1ee.956fc"
  734. ]
  735. ]
  736. },
  737. {
  738. "id": "e91d6e1b.e5a9",
  739. "type": "http request",
  740. "z": "ea534c6b.f0835",
  741. "name": "[REST][GET]iNut cảm biến - iNut S1",
  742. "method": "GET",
  743. "ret": "txt",
  744. "url": "https://c...content-available-to-author-only...e.vn/api/1.0/request/seiatq62VLblmZSIg29IHdstGYu1/HJc3_qgo7/e485ed4bfd6583c6e0164af43279d5fe501816880883/req_device",
  745. "tls": "",
  746. "x": 550,
  747. "y": 700,
  748. "wires": [
  749. [
  750. "b497ce31.5f802"
  751. ]
  752. ]
  753. },
  754. {
  755. "id": "2b5847e8.499c78",
  756. "type": "inject",
  757. "z": "ea534c6b.f0835",
  758. "name": "",
  759. "topic": "",
  760. "payload": "",
  761. "payloadType": "date",
  762. "repeat": "",
  763. "crontab": "",
  764. "once": true,
  765. "onceDelay": 0.1,
  766. "x": 290,
  767. "y": 700,
  768. "wires": [
  769. [
  770. "e91d6e1b.e5a9"
  771. ]
  772. ]
  773. },
  774. {
  775. "id": "952229a5.078ec8",
  776. "type": "http request",
  777. "z": "ea534c6b.f0835",
  778. "name": "[REST][POST]iNut cảm biến - iNut S1",
  779. "method": "POST",
  780. "ret": "txt",
  781. "url": "https://c...content-available-to-author-only...e.vn/api/1.0/request/seiatq62VLblmZSIg29IHdstGYu1/HJc3_qgo7/e485ed4bfd6583c6e0164af43279d5fe501816880883/req_device_toggle",
  782. "tls": "",
  783. "x": 410,
  784. "y": 760,
  785. "wires": [
  786. [
  787. "a7944d9c.c1d61"
  788. ]
  789. ]
  790. },
  791. {
  792. "id": "3bcc169e.fda59a",
  793. "type": "link out",
  794. "z": "ea534c6b.f0835",
  795. "name": "OUT_RES_PORT",
  796. "links": [
  797. "ac8d2df6.d4d8f"
  798. ],
  799. "x": 735,
  800. "y": 120,
  801. "wires": []
  802. },
  803. {
  804. "id": "ac8d2df6.d4d8f",
  805. "type": "link in",
  806. "z": "ea534c6b.f0835",
  807. "name": "REST_POST",
  808. "links": [
  809. "129029e7.6d29b6",
  810. "3bcc169e.fda59a",
  811. "25f3a776.ce7338",
  812. "f9c1936.9eab47"
  813. ],
  814. "x": 195,
  815. "y": 760,
  816. "wires": [
  817. [
  818. "952229a5.078ec8"
  819. ]
  820. ]
  821. },
  822. {
  823. "id": "f9c1936.9eab47",
  824. "type": "link out",
  825. "z": "ea534c6b.f0835",
  826. "name": "OUT_RES_PORT",
  827. "links": [
  828. "ac8d2df6.d4d8f"
  829. ],
  830. "x": 735,
  831. "y": 200,
  832. "wires": []
  833. },
  834. {
  835. "id": "25f3a776.ce7338",
  836. "type": "link out",
  837. "z": "ea534c6b.f0835",
  838. "name": "OUT_RES_PORT",
  839. "links": [
  840. "ac8d2df6.d4d8f"
  841. ],
  842. "x": 735,
  843. "y": 280,
  844. "wires": []
  845. },
  846. {
  847. "id": "129029e7.6d29b6",
  848. "type": "link out",
  849. "z": "ea534c6b.f0835",
  850. "name": "OUT_RES_PORT",
  851. "links": [
  852. "ac8d2df6.d4d8f"
  853. ],
  854. "x": 735,
  855. "y": 360,
  856. "wires": []
  857. },
  858. {
  859. "id": "675ac4f4.a1b64c",
  860. "type": "ui_gauge",
  861. "z": "ea534c6b.f0835",
  862. "name": "",
  863. "group": "5b49ef2b.a1fed",
  864. "order": 2,
  865. "width": "2",
  866. "height": "2",
  867. "gtype": "donut",
  868. "title": "RELAY 1",
  869. "label": "units",
  870. "format": "{{value}}",
  871. "min": 0,
  872. "max": "1",
  873. "colors": [
  874. "#00b500",
  875. "#e6e600",
  876. "#ca3838"
  877. ],
  878. "seg1": "",
  879. "seg2": "",
  880. "x": 740,
  881. "y": 420,
  882. "wires": []
  883. },
  884. {
  885. "id": "7e0b91.bfa5847",
  886. "type": "ui_gauge",
  887. "z": "ea534c6b.f0835",
  888. "name": "",
  889. "group": "5b49ef2b.a1fed",
  890. "order": 8,
  891. "width": "2",
  892. "height": "2",
  893. "gtype": "donut",
  894. "title": "\bRELAY 3",
  895. "label": "units",
  896. "format": "{{value}}",
  897. "min": 0,
  898. "max": "1",
  899. "colors": [
  900. "#00b500",
  901. "#e6e600",
  902. "#ca3838"
  903. ],
  904. "seg1": "",
  905. "seg2": "",
  906. "x": 740,
  907. "y": 500,
  908. "wires": []
  909. },
  910. {
  911. "id": "7f23463a.5d44e8",
  912. "type": "ui_gauge",
  913. "z": "ea534c6b.f0835",
  914. "name": "",
  915. "group": "5b49ef2b.a1fed",
  916. "order": 11,
  917. "width": "2",
  918. "height": "2",
  919. "gtype": "donut",
  920. "title": "\bRELAY 4",
  921. "label": "units",
  922. "format": "{{value}}",
  923. "min": 0,
  924. "max": "1",
  925. "colors": [
  926. "#00b500",
  927. "#e6e600",
  928. "#ca3838"
  929. ],
  930. "seg1": "",
  931. "seg2": "",
  932. "x": 740,
  933. "y": 540,
  934. "wires": []
  935. },
  936. {
  937. "id": "eb8dcb27.517228",
  938. "type": "ui_gauge",
  939. "z": "ea534c6b.f0835",
  940. "name": "",
  941. "group": "5b49ef2b.a1fed",
  942. "order": 5,
  943. "width": "2",
  944. "height": "2",
  945. "gtype": "donut",
  946. "title": "RELAY 2",
  947. "label": "units",
  948. "format": "{{value}}",
  949. "min": 0,
  950. "max": "1",
  951. "colors": [
  952. "#00b500",
  953. "#e6e600",
  954. "#ca3838"
  955. ],
  956. "seg1": "",
  957. "seg2": "",
  958. "x": 740,
  959. "y": 460,
  960. "wires": []
  961. },
  962. {
  963. "id": "6c57c801.796138",
  964. "type": "link out",
  965. "z": "ea534c6b.f0835",
  966. "name": "RELOAD",
  967. "links": [
  968. "a8967c26.04679"
  969. ],
  970. "x": 1775,
  971. "y": 720,
  972. "wires": []
  973. },
  974. {
  975. "id": "a8967c26.04679",
  976. "type": "link in",
  977. "z": "ea534c6b.f0835",
  978. "name": "RELOAD",
  979. "links": [
  980. "6c57c801.796138"
  981. ],
  982. "x": 335,
  983. "y": 660,
  984. "wires": [
  985. [
  986. "e91d6e1b.e5a9"
  987. ]
  988. ]
  989. },
  990. {
  991. "id": "a7944d9c.c1d61",
  992. "type": "change",
  993. "z": "ea534c6b.f0835",
  994. "name": "",
  995. "rules": [
  996. {
  997. "t": "set",
  998. "p": "topic",
  999. "pt": "msg",
  1000. "to": "POST",
  1001. "tot": "str"
  1002. }
  1003. ],
  1004. "action": "",
  1005. "property": "",
  1006. "from": "",
  1007. "to": "",
  1008. "reg": false,
  1009. "x": 660,
  1010. "y": 760,
  1011. "wires": [
  1012. [
  1013. "b497ce31.5f802"
  1014. ]
  1015. ]
  1016. },
  1017. {
  1018. "id": "dcc1d2bd.cff21",
  1019. "type": "switch",
  1020. "z": "ea534c6b.f0835",
  1021. "name": "",
  1022. "property": "topic",
  1023. "propertyType": "msg",
  1024. "rules": [
  1025. {
  1026. "t": "eq",
  1027. "v": "POST",
  1028. "vt": "str"
  1029. }
  1030. ],
  1031. "checkall": "true",
  1032. "repair": false,
  1033. "outputs": 1,
  1034. "x": 1330,
  1035. "y": 720,
  1036. "wires": [
  1037. [
  1038. "40aa71f1.670a6",
  1039. "8d353a9.7e0cec8"
  1040. ]
  1041. ]
  1042. },
  1043. {
  1044. "id": "40aa71f1.670a6",
  1045. "type": "delay",
  1046. "z": "ea534c6b.f0835",
  1047. "name": "",
  1048. "pauseType": "delay",
  1049. "timeout": "50",
  1050. "timeoutUnits": "milliseconds",
  1051. "rate": "1",
  1052. "nbRateUnits": "1",
  1053. "rateUnits": "second",
  1054. "randomFirst": "1",
  1055. "randomLast": "5",
  1056. "randomUnits": "seconds",
  1057. "drop": false,
  1058. "x": 1470,
  1059. "y": 720,
  1060. "wires": [
  1061. [
  1062. "9e747e85.10923"
  1063. ]
  1064. ]
  1065. },
  1066. {
  1067. "id": "9e747e85.10923",
  1068. "type": "change",
  1069. "z": "ea534c6b.f0835",
  1070. "name": "",
  1071. "rules": [
  1072. {
  1073. "t": "delete",
  1074. "p": "topic",
  1075. "pt": "msg"
  1076. }
  1077. ],
  1078. "action": "",
  1079. "property": "",
  1080. "from": "",
  1081. "to": "",
  1082. "reg": false,
  1083. "x": 1650,
  1084. "y": 720,
  1085. "wires": [
  1086. [
  1087. "6c57c801.796138"
  1088. ]
  1089. ]
  1090. },
  1091. {
  1092. "id": "8d353a9.7e0cec8",
  1093. "type": "delay",
  1094. "z": "ea534c6b.f0835",
  1095. "name": "",
  1096. "pauseType": "delay",
  1097. "timeout": "250",
  1098. "timeoutUnits": "milliseconds",
  1099. "rate": "1",
  1100. "nbRateUnits": "1",
  1101. "rateUnits": "second",
  1102. "randomFirst": "1",
  1103. "randomLast": "5",
  1104. "randomUnits": "seconds",
  1105. "drop": false,
  1106. "x": 1470,
  1107. "y": 760,
  1108. "wires": [
  1109. [
  1110. "9e747e85.10923"
  1111. ]
  1112. ]
  1113. },
  1114. {
  1115. "id": "24871657.178dca",
  1116. "type": "mqtt-broker",
  1117. "name": "",
  1118. "broker": "mqtt.mysmarthome.vn",
  1119. "port": "1883",
  1120. "clientid": "",
  1121. "usetls": false,
  1122. "compatmode": true,
  1123. "keepalive": "60",
  1124. "cleansession": true,
  1125. "willTopic": "",
  1126. "willQos": "0",
  1127. "willPayload": "",
  1128. "birthTopic": "",
  1129. "birthQos": "0",
  1130. "birthPayload": ""
  1131. },
  1132. {
  1133. "id": "11a5ecb8.ecad63",
  1134. "type": "ui_group",
  1135. "z": "",
  1136. "name": "Group 2",
  1137. "tab": "31998151.aea28e",
  1138. "order": 2,
  1139. "disp": false,
  1140. "width": "6",
  1141. "collapse": false
  1142. },
  1143. {
  1144. "id": "5b49ef2b.a1fed",
  1145. "type": "ui_group",
  1146. "z": "",
  1147. "name": "Group 1",
  1148. "tab": "31998151.aea28e",
  1149. "order": 1,
  1150. "disp": false,
  1151. "width": "6",
  1152. "collapse": false
  1153. },
  1154. {
  1155. "id": "31998151.aea28e",
  1156. "type": "ui_tab",
  1157. "name": "Tab 1",
  1158. "icon": "dashboard",
  1159. "order": 1
  1160. }
  1161. ]
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
[
^
Main.java:2: error: class, interface, or enum expected
    {
    ^
Main.java:3: error: class, interface, or enum expected
        "id": "9e5f7de6.8391",
        ^
Main.java:3: error: class, interface, or enum expected
        "id": "9e5f7de6.8391",
            ^
Main.java:3: error: class, interface, or enum expected
        "id": "9e5f7de6.8391",
              ^
Main.java:3: error: class, interface, or enum expected
        "id": "9e5f7de6.8391",
                             ^
Main.java:4: error: class, interface, or enum expected
        "type": "subflow",
        ^
Main.java:4: error: class, interface, or enum expected
        "type": "subflow",
              ^
Main.java:4: error: class, interface, or enum expected
        "type": "subflow",
                ^
Main.java:4: error: class, interface, or enum expected
        "type": "subflow",
                         ^
Main.java:5: error: class, interface, or enum expected
        "name": "L?y d? t? iNut",
        ^
Main.java:5: error: class, interface, or enum expected
        "name": "L?y d? t? iNut",
              ^
Main.java:5: error: class, interface, or enum expected
        "name": "L?y d? t? iNut",
                ^
Main.java:5: error: class, interface, or enum expected
        "name": "L?y d? t? iNut",
                                ^
Main.java:6: error: class, interface, or enum expected
        "info": "",
        ^
Main.java:6: error: class, interface, or enum expected
        "info": "",
              ^
Main.java:6: error: class, interface, or enum expected
        "info": "",
                ^
Main.java:6: error: class, interface, or enum expected
        "info": "",
                  ^
Main.java:7: error: class, interface, or enum expected
        "in": [
        ^
Main.java:7: error: class, interface, or enum expected
        "in": [
            ^
Main.java:7: error: class, interface, or enum expected
        "in": [
              ^
Main.java:8: error: class, interface, or enum expected
            {
            ^
Main.java:9: error: class, interface, or enum expected
                "x": 50,
                ^
Main.java:9: error: class, interface, or enum expected
                "x": 50,
                   ^
Main.java:9: error: class, interface, or enum expected
                "x": 50,
                     ^
Main.java:9: error: class, interface, or enum expected
                "x": 50,
                       ^
Main.java:10: error: class, interface, or enum expected
                "y": 30,
                ^
Main.java:10: error: class, interface, or enum expected
                "y": 30,
                   ^
Main.java:10: error: class, interface, or enum expected
                "y": 30,
                     ^
Main.java:10: error: class, interface, or enum expected
                "y": 30,
                       ^
Main.java:11: error: class, interface, or enum expected
                "wires": [
                ^
Main.java:11: error: class, interface, or enum expected
                "wires": [
                       ^
Main.java:11: error: class, interface, or enum expected
                "wires": [
                         ^
Main.java:12: error: class, interface, or enum expected
                    {
                    ^
Main.java:13: error: class, interface, or enum expected
                        "id": "392fc2c7.a2619e"
                        ^
Main.java:13: error: class, interface, or enum expected
                        "id": "392fc2c7.a2619e"
                            ^
Main.java:13: error: class, interface, or enum expected
                        "id": "392fc2c7.a2619e"
                              ^
Main.java:14: error: class, interface, or enum expected
                    }
                    ^
Main.java:15: error: class, interface, or enum expected
                ]
                ^
Main.java:16: error: class, interface, or enum expected
            }
            ^
Main.java:17: error: class, interface, or enum expected
        ],
        ^
Main.java:17: error: class, interface, or enum expected
        ],
         ^
Main.java:18: error: class, interface, or enum expected
        "out": [
        ^
Main.java:18: error: class, interface, or enum expected
        "out": [
             ^
Main.java:18: error: class, interface, or enum expected
        "out": [
               ^
Main.java:19: error: class, interface, or enum expected
            {
            ^
Main.java:20: error: class, interface, or enum expected
                "x": 859.0000343322754,
                ^
Main.java:20: error: class, interface, or enum expected
                "x": 859.0000343322754,
                   ^
Main.java:20: error: class, interface, or enum expected
                "x": 859.0000343322754,
                     ^
Main.java:20: error: class, interface, or enum expected
                "x": 859.0000343322754,
                                      ^
Main.java:21: error: class, interface, or enum expected
                "y": 98.00000190734863,
                ^
Main.java:21: error: class, interface, or enum expected
                "y": 98.00000190734863,
                   ^
Main.java:21: error: class, interface, or enum expected
                "y": 98.00000190734863,
                     ^
Main.java:21: error: class, interface, or enum expected
                "y": 98.00000190734863,
                                      ^
Main.java:22: error: class, interface, or enum expected
                "wires": [
                ^
Main.java:22: error: class, interface, or enum expected
                "wires": [
                       ^
Main.java:22: error: class, interface, or enum expected
                "wires": [
                         ^
Main.java:23: error: class, interface, or enum expected
                    {
                    ^
Main.java:24: error: class, interface, or enum expected
                        "id": "11ef360b.3d1f8a",
                        ^
Main.java:24: error: class, interface, or enum expected
                        "id": "11ef360b.3d1f8a",
                            ^
Main.java:24: error: class, interface, or enum expected
                        "id": "11ef360b.3d1f8a",
                              ^
Main.java:24: error: class, interface, or enum expected
                        "id": "11ef360b.3d1f8a",
                                               ^
Main.java:25: error: class, interface, or enum expected
                        "port": 0
                        ^
Main.java:25: error: class, interface, or enum expected
                        "port": 0
                              ^
Main.java:25: error: class, interface, or enum expected
                        "port": 0
                                ^
Main.java:26: error: class, interface, or enum expected
                    }
                    ^
Main.java:27: error: class, interface, or enum expected
                ]
                ^
Main.java:28: error: class, interface, or enum expected
            },
            ^
Main.java:28: error: class, interface, or enum expected
            },
             ^
Main.java:29: error: class, interface, or enum expected
            {
            ^
Main.java:30: error: class, interface, or enum expected
                "x": 968.0000343322754,
                ^
Main.java:30: error: class, interface, or enum expected
                "x": 968.0000343322754,
                   ^
Main.java:30: error: class, interface, or enum expected
                "x": 968.0000343322754,
                     ^
Main.java:30: error: class, interface, or enum expected
                "x": 968.0000343322754,
                                      ^
Main.java:31: error: class, interface, or enum expected
                "y": 102.00000286102295,
                ^
Main.java:31: error: class, interface, or enum expected
                "y": 102.00000286102295,
                   ^
Main.java:31: error: class, interface, or enum expected
                "y": 102.00000286102295,
                     ^
Main.java:31: error: class, interface, or enum expected
                "y": 102.00000286102295,
                                       ^
Main.java:32: error: class, interface, or enum expected
                "wires": [
                ^
Main.java:32: error: class, interface, or enum expected
                "wires": [
                       ^
Main.java:32: error: class, interface, or enum expected
                "wires": [
                         ^
Main.java:33: error: class, interface, or enum expected
                    {
                    ^
Main.java:34: error: class, interface, or enum expected
                        "id": "11ef360b.3d1f8a",
                        ^
Main.java:34: error: class, interface, or enum expected
                        "id": "11ef360b.3d1f8a",
                            ^
Main.java:34: error: class, interface, or enum expected
                        "id": "11ef360b.3d1f8a",
                              ^
Main.java:34: error: class, interface, or enum expected
                        "id": "11ef360b.3d1f8a",
                                               ^
Main.java:35: error: class, interface, or enum expected
                        "port": 1
                        ^
Main.java:35: error: class, interface, or enum expected
                        "port": 1
                              ^
Main.java:35: error: class, interface, or enum expected
                        "port": 1
                                ^
Main.java:36: error: class, interface, or enum expected
                    }
                    ^
Main.java:37: error: class, interface, or enum expected
                ]
                ^
Main.java:38: error: class, interface, or enum expected
            },
            ^
Main.java:38: error: class, interface, or enum expected
            },
             ^
Main.java:39: error: class, interface, or enum expected
            {
            ^
Main.java:40: error: class, interface, or enum expected
                "x": 1048.9999732971191,
                ^
Main.java:40: error: class, interface, or enum expected
                "x": 1048.9999732971191,
                   ^
Main.java:40: error: class, interface, or enum expected
                "x": 1048.9999732971191,
                     ^
Main.java:40: error: class, interface, or enum expected
                "x": 1048.9999732971191,
                                       ^
Main.java:41: error: class, interface, or enum expected
                "y": 101.00000381469727,
                ^
Main.java:41: error: class, interface, or enum expected
                "y": 101.00000381469727,
                   ^
100 errors
stdout
Standard output is empty