You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

764 line
18 KiB

  1. [
  2. {
  3. "id": "59310844a3cdc638",
  4. "type": "tab",
  5. "label": "Flow 1",
  6. "disabled": false,
  7. "info": "",
  8. "env": []
  9. },
  10. {
  11. "id": "de9de6edefcc7ee6",
  12. "type": "group",
  13. "z": "59310844a3cdc638",
  14. "style": {
  15. "stroke": "#999999",
  16. "stroke-opacity": "1",
  17. "fill": "none",
  18. "fill-opacity": "1",
  19. "label": true,
  20. "label-position": "nw",
  21. "color": "#a4a4a4"
  22. },
  23. "nodes": [
  24. "883490d684612591",
  25. "3a198c85c047a80d",
  26. "522c9262dc81a34f",
  27. "2f19e204e95d32b2",
  28. "8a39a884d333343d",
  29. "bfc307bbffd86501",
  30. "368acb55a1372809",
  31. "06586c5ac291f999",
  32. "d8d3d6ee351c3fce",
  33. "b03a9a99c8897f49",
  34. "48eb1b4c5a48a874",
  35. "3b832f5f2a705f87",
  36. "1817099dc85d0c73",
  37. "3b4d5dca9051f727",
  38. "213a0de12ca7b387",
  39. "9095389f88755788",
  40. "668a57a11d34fab9",
  41. "9fe67862caf1033d",
  42. "c52f0e6e0e08f1ca",
  43. "35d94840a12ca741",
  44. "2475de26f85f96e5",
  45. "50c9899be46f95be"
  46. ],
  47. "x": 74,
  48. "y": 99,
  49. "w": 892,
  50. "h": 482
  51. },
  52. {
  53. "id": "f03dded513b83b0d",
  54. "type": "group",
  55. "z": "59310844a3cdc638",
  56. "style": {
  57. "stroke": "#999999",
  58. "stroke-opacity": "1",
  59. "fill": "none",
  60. "fill-opacity": "1",
  61. "label": true,
  62. "label-position": "nw",
  63. "color": "#a4a4a4"
  64. },
  65. "nodes": [
  66. "af59b1d57bce5a71",
  67. "1a1c5a74d2fc1538",
  68. "d846952c928cabfd",
  69. "e8f1a6bb67aa191e",
  70. "082bd00a6d8f4bc2",
  71. "04d408c7b56c5004",
  72. "9d98036262ab3bdc",
  73. "39131f3755e4535d",
  74. "8284044fa3903be9",
  75. "09e2fb2b15f80b1d",
  76. "4321534186191e5c",
  77. "29f7ce4208592cc7"
  78. ],
  79. "x": 74,
  80. "y": 599,
  81. "w": 892,
  82. "h": 282
  83. },
  84. {
  85. "id": "883490d684612591",
  86. "type": "inject",
  87. "z": "59310844a3cdc638",
  88. "g": "de9de6edefcc7ee6",
  89. "name": "",
  90. "props": [
  91. {
  92. "p": "payload"
  93. },
  94. {
  95. "p": "topic",
  96. "vt": "str"
  97. }
  98. ],
  99. "repeat": "",
  100. "crontab": "",
  101. "once": false,
  102. "onceDelay": 0.1,
  103. "topic": "",
  104. "payload": "",
  105. "payloadType": "date",
  106. "x": 180,
  107. "y": 240,
  108. "wires": [
  109. [
  110. "522c9262dc81a34f"
  111. ]
  112. ]
  113. },
  114. {
  115. "id": "3a198c85c047a80d",
  116. "type": "comment",
  117. "z": "59310844a3cdc638",
  118. "g": "de9de6edefcc7ee6",
  119. "name": "Server components test | BEACONS LIST",
  120. "info": "",
  121. "x": 260,
  122. "y": 140,
  123. "wires": []
  124. },
  125. {
  126. "id": "522c9262dc81a34f",
  127. "type": "function",
  128. "z": "59310844a3cdc638",
  129. "g": "de9de6edefcc7ee6",
  130. "name": "GET beacons",
  131. "func": "msg.url = \"http://presense-server:1902/api/beacons\";\nmsg.method = \"GET\";\nmsg.payload = \"\";\nreturn msg;",
  132. "outputs": 1,
  133. "timeout": 0,
  134. "noerr": 0,
  135. "initialize": "",
  136. "finalize": "",
  137. "libs": [],
  138. "x": 360,
  139. "y": 240,
  140. "wires": [
  141. [
  142. "2f19e204e95d32b2"
  143. ]
  144. ]
  145. },
  146. {
  147. "id": "2f19e204e95d32b2",
  148. "type": "http request",
  149. "z": "59310844a3cdc638",
  150. "g": "de9de6edefcc7ee6",
  151. "name": "",
  152. "method": "use",
  153. "ret": "txt",
  154. "paytoqs": "ignore",
  155. "url": "",
  156. "tls": "",
  157. "persist": false,
  158. "proxy": "",
  159. "insecureHTTPParser": false,
  160. "authType": "",
  161. "senderr": false,
  162. "headers": [],
  163. "x": 550,
  164. "y": 240,
  165. "wires": [
  166. [
  167. "3b832f5f2a705f87"
  168. ]
  169. ]
  170. },
  171. {
  172. "id": "8a39a884d333343d",
  173. "type": "comment",
  174. "z": "59310844a3cdc638",
  175. "g": "de9de6edefcc7ee6",
  176. "name": "GET beacons list",
  177. "info": "",
  178. "x": 180,
  179. "y": 200,
  180. "wires": []
  181. },
  182. {
  183. "id": "bfc307bbffd86501",
  184. "type": "inject",
  185. "z": "59310844a3cdc638",
  186. "g": "de9de6edefcc7ee6",
  187. "name": "",
  188. "props": [
  189. {
  190. "p": "payload"
  191. },
  192. {
  193. "p": "topic",
  194. "vt": "str"
  195. }
  196. ],
  197. "repeat": "",
  198. "crontab": "",
  199. "once": false,
  200. "onceDelay": 0.1,
  201. "topic": "",
  202. "payload": "",
  203. "payloadType": "date",
  204. "x": 180,
  205. "y": 340,
  206. "wires": [
  207. [
  208. "368acb55a1372809"
  209. ]
  210. ]
  211. },
  212. {
  213. "id": "368acb55a1372809",
  214. "type": "function",
  215. "z": "59310844a3cdc638",
  216. "g": "de9de6edefcc7ee6",
  217. "name": "POST beacons",
  218. "func": "msg.url = \"http://presense-server:1902/api/beacons\";\nmsg.method = \"POST\";\nmsg.payload = {\n \"timestamp\": \"2025-07-24T15:00:00.141Z\", \n \"mac\": \"C3000057B9DA\", \n \"rssi\": -66, \n \"rawData\": \"0201060303AAFE1116AAFE20000C392500000601EA01192890\",\n \"Name\": \"Beacon1\",\n \"Beacon_id\": \"1\"\n};\nreturn msg;",
  219. "outputs": 1,
  220. "timeout": 0,
  221. "noerr": 0,
  222. "initialize": "",
  223. "finalize": "",
  224. "libs": [],
  225. "x": 360,
  226. "y": 340,
  227. "wires": [
  228. [
  229. "06586c5ac291f999"
  230. ]
  231. ]
  232. },
  233. {
  234. "id": "06586c5ac291f999",
  235. "type": "http request",
  236. "z": "59310844a3cdc638",
  237. "g": "de9de6edefcc7ee6",
  238. "name": "",
  239. "method": "use",
  240. "ret": "txt",
  241. "paytoqs": "ignore",
  242. "url": "",
  243. "tls": "",
  244. "persist": false,
  245. "proxy": "",
  246. "insecureHTTPParser": false,
  247. "authType": "",
  248. "senderr": false,
  249. "headers": [],
  250. "x": 550,
  251. "y": 340,
  252. "wires": [
  253. [
  254. "48eb1b4c5a48a874"
  255. ]
  256. ]
  257. },
  258. {
  259. "id": "d8d3d6ee351c3fce",
  260. "type": "comment",
  261. "z": "59310844a3cdc638",
  262. "g": "de9de6edefcc7ee6",
  263. "name": "POST beacons list",
  264. "info": "",
  265. "x": 190,
  266. "y": 300,
  267. "wires": []
  268. },
  269. {
  270. "id": "b03a9a99c8897f49",
  271. "type": "debug",
  272. "z": "59310844a3cdc638",
  273. "g": "de9de6edefcc7ee6",
  274. "name": "debug 1",
  275. "active": true,
  276. "tosidebar": true,
  277. "console": false,
  278. "tostatus": false,
  279. "complete": "false",
  280. "statusVal": "",
  281. "statusType": "auto",
  282. "x": 860,
  283. "y": 240,
  284. "wires": []
  285. },
  286. {
  287. "id": "48eb1b4c5a48a874",
  288. "type": "debug",
  289. "z": "59310844a3cdc638",
  290. "g": "de9de6edefcc7ee6",
  291. "name": "debug 2",
  292. "active": true,
  293. "tosidebar": true,
  294. "console": false,
  295. "tostatus": false,
  296. "complete": "false",
  297. "statusVal": "",
  298. "statusType": "auto",
  299. "x": 860,
  300. "y": 340,
  301. "wires": []
  302. },
  303. {
  304. "id": "3b832f5f2a705f87",
  305. "type": "json",
  306. "z": "59310844a3cdc638",
  307. "g": "de9de6edefcc7ee6",
  308. "name": "",
  309. "property": "payload",
  310. "action": "",
  311. "pretty": false,
  312. "x": 710,
  313. "y": 240,
  314. "wires": [
  315. [
  316. "b03a9a99c8897f49"
  317. ]
  318. ]
  319. },
  320. {
  321. "id": "1817099dc85d0c73",
  322. "type": "inject",
  323. "z": "59310844a3cdc638",
  324. "g": "de9de6edefcc7ee6",
  325. "name": "",
  326. "props": [
  327. {
  328. "p": "payload"
  329. },
  330. {
  331. "p": "topic",
  332. "vt": "str"
  333. }
  334. ],
  335. "repeat": "",
  336. "crontab": "",
  337. "once": false,
  338. "onceDelay": 0.1,
  339. "topic": "",
  340. "payload": "",
  341. "payloadType": "date",
  342. "x": 180,
  343. "y": 440,
  344. "wires": [
  345. [
  346. "3b4d5dca9051f727"
  347. ]
  348. ]
  349. },
  350. {
  351. "id": "3b4d5dca9051f727",
  352. "type": "function",
  353. "z": "59310844a3cdc638",
  354. "g": "de9de6edefcc7ee6",
  355. "name": "PUT beacons",
  356. "func": "msg.url = \"http://presense-server:1902/api/beacons\";\nmsg.method = \"PUT\";\nmsg.payload = {\n \"timestamp\": \"2025-07-24T15:00:00.141Z\",\n \"mac\": \"C3000056GSZW\",\n \"rssi\": -76,\n \"rawData\": \"0201060303AAFE1116AAFE20000C392500000601EA01192890\",\n \"Name\": \"Beacon2\",\n \"Beacon_id\": \"2\"\n};\nreturn msg;",
  357. "outputs": 1,
  358. "timeout": 0,
  359. "noerr": 0,
  360. "initialize": "",
  361. "finalize": "",
  362. "libs": [],
  363. "x": 360,
  364. "y": 440,
  365. "wires": [
  366. [
  367. "213a0de12ca7b387"
  368. ]
  369. ]
  370. },
  371. {
  372. "id": "213a0de12ca7b387",
  373. "type": "http request",
  374. "z": "59310844a3cdc638",
  375. "g": "de9de6edefcc7ee6",
  376. "name": "",
  377. "method": "use",
  378. "ret": "txt",
  379. "paytoqs": "ignore",
  380. "url": "",
  381. "tls": "",
  382. "persist": false,
  383. "proxy": "",
  384. "insecureHTTPParser": false,
  385. "authType": "",
  386. "senderr": false,
  387. "headers": [],
  388. "x": 550,
  389. "y": 440,
  390. "wires": [
  391. [
  392. "668a57a11d34fab9"
  393. ]
  394. ]
  395. },
  396. {
  397. "id": "9095389f88755788",
  398. "type": "comment",
  399. "z": "59310844a3cdc638",
  400. "g": "de9de6edefcc7ee6",
  401. "name": "PUT beacons list",
  402. "info": "",
  403. "x": 180,
  404. "y": 400,
  405. "wires": []
  406. },
  407. {
  408. "id": "668a57a11d34fab9",
  409. "type": "debug",
  410. "z": "59310844a3cdc638",
  411. "g": "de9de6edefcc7ee6",
  412. "name": "debug 4",
  413. "active": true,
  414. "tosidebar": true,
  415. "console": false,
  416. "tostatus": false,
  417. "complete": "false",
  418. "statusVal": "",
  419. "statusType": "auto",
  420. "x": 860,
  421. "y": 440,
  422. "wires": []
  423. },
  424. {
  425. "id": "9fe67862caf1033d",
  426. "type": "inject",
  427. "z": "59310844a3cdc638",
  428. "g": "de9de6edefcc7ee6",
  429. "name": "",
  430. "props": [
  431. {
  432. "p": "payload"
  433. },
  434. {
  435. "p": "topic",
  436. "vt": "str"
  437. }
  438. ],
  439. "repeat": "",
  440. "crontab": "",
  441. "once": false,
  442. "onceDelay": 0.1,
  443. "topic": "",
  444. "payload": "",
  445. "payloadType": "date",
  446. "x": 180,
  447. "y": 540,
  448. "wires": [
  449. [
  450. "c52f0e6e0e08f1ca"
  451. ]
  452. ]
  453. },
  454. {
  455. "id": "c52f0e6e0e08f1ca",
  456. "type": "function",
  457. "z": "59310844a3cdc638",
  458. "g": "de9de6edefcc7ee6",
  459. "name": "DELETE beacons",
  460. "func": "msg.url = \"http://presense-server:1902/api/beacons/2\";\nmsg.method = \"DELETE\";\nmsg.payload = \"\";\nreturn msg;",
  461. "outputs": 1,
  462. "timeout": 0,
  463. "noerr": 0,
  464. "initialize": "",
  465. "finalize": "",
  466. "libs": [],
  467. "x": 370,
  468. "y": 540,
  469. "wires": [
  470. [
  471. "35d94840a12ca741"
  472. ]
  473. ]
  474. },
  475. {
  476. "id": "35d94840a12ca741",
  477. "type": "http request",
  478. "z": "59310844a3cdc638",
  479. "g": "de9de6edefcc7ee6",
  480. "name": "",
  481. "method": "use",
  482. "ret": "txt",
  483. "paytoqs": "ignore",
  484. "url": "",
  485. "tls": "",
  486. "persist": false,
  487. "proxy": "",
  488. "insecureHTTPParser": false,
  489. "authType": "",
  490. "senderr": false,
  491. "headers": [],
  492. "x": 550,
  493. "y": 540,
  494. "wires": [
  495. [
  496. "50c9899be46f95be"
  497. ]
  498. ]
  499. },
  500. {
  501. "id": "2475de26f85f96e5",
  502. "type": "comment",
  503. "z": "59310844a3cdc638",
  504. "g": "de9de6edefcc7ee6",
  505. "name": "DELETE beacons list",
  506. "info": "",
  507. "x": 200,
  508. "y": 500,
  509. "wires": []
  510. },
  511. {
  512. "id": "50c9899be46f95be",
  513. "type": "debug",
  514. "z": "59310844a3cdc638",
  515. "g": "de9de6edefcc7ee6",
  516. "name": "debug 3",
  517. "active": true,
  518. "tosidebar": true,
  519. "console": false,
  520. "tostatus": false,
  521. "complete": "false",
  522. "statusVal": "",
  523. "statusType": "auto",
  524. "x": 860,
  525. "y": 540,
  526. "wires": []
  527. },
  528. {
  529. "id": "af59b1d57bce5a71",
  530. "type": "inject",
  531. "z": "59310844a3cdc638",
  532. "g": "f03dded513b83b0d",
  533. "name": "",
  534. "props": [
  535. {
  536. "p": "payload"
  537. },
  538. {
  539. "p": "topic",
  540. "vt": "str"
  541. }
  542. ],
  543. "repeat": "",
  544. "crontab": "",
  545. "once": false,
  546. "onceDelay": 0.1,
  547. "topic": "",
  548. "payload": "",
  549. "payloadType": "date",
  550. "x": 180,
  551. "y": 740,
  552. "wires": [
  553. [
  554. "d846952c928cabfd"
  555. ]
  556. ]
  557. },
  558. {
  559. "id": "1a1c5a74d2fc1538",
  560. "type": "comment",
  561. "z": "59310844a3cdc638",
  562. "g": "f03dded513b83b0d",
  563. "name": "Server components test | SETTINGS",
  564. "info": "",
  565. "x": 240,
  566. "y": 640,
  567. "wires": []
  568. },
  569. {
  570. "id": "d846952c928cabfd",
  571. "type": "function",
  572. "z": "59310844a3cdc638",
  573. "g": "f03dded513b83b0d",
  574. "name": "POST settings",
  575. "func": "msg.url = \"http://presense-server:1902/api/settings\";\nmsg.method = \"POST\";\nmsg.payload = {\n \"location_confidence\": 10,\n \"last_seen_threshold\": 30,\n \"beacon_metrics_size\": 5,\n \"ha_send_interval\": 60,\n \"ha_send_changes_only\": true\n};\nreturn msg;",
  576. "outputs": 1,
  577. "timeout": 0,
  578. "noerr": 0,
  579. "initialize": "",
  580. "finalize": "",
  581. "libs": [],
  582. "x": 360,
  583. "y": 740,
  584. "wires": [
  585. [
  586. "e8f1a6bb67aa191e"
  587. ]
  588. ]
  589. },
  590. {
  591. "id": "e8f1a6bb67aa191e",
  592. "type": "http request",
  593. "z": "59310844a3cdc638",
  594. "g": "f03dded513b83b0d",
  595. "name": "",
  596. "method": "use",
  597. "ret": "txt",
  598. "paytoqs": "ignore",
  599. "url": "",
  600. "tls": "",
  601. "persist": false,
  602. "proxy": "",
  603. "insecureHTTPParser": false,
  604. "authType": "",
  605. "senderr": false,
  606. "headers": [],
  607. "x": 550,
  608. "y": 740,
  609. "wires": [
  610. [
  611. "04d408c7b56c5004"
  612. ]
  613. ]
  614. },
  615. {
  616. "id": "082bd00a6d8f4bc2",
  617. "type": "comment",
  618. "z": "59310844a3cdc638",
  619. "g": "f03dded513b83b0d",
  620. "name": "POST settings",
  621. "info": "",
  622. "x": 170,
  623. "y": 700,
  624. "wires": []
  625. },
  626. {
  627. "id": "04d408c7b56c5004",
  628. "type": "debug",
  629. "z": "59310844a3cdc638",
  630. "g": "f03dded513b83b0d",
  631. "name": "debug 5",
  632. "active": true,
  633. "tosidebar": true,
  634. "console": false,
  635. "tostatus": false,
  636. "complete": "false",
  637. "statusVal": "",
  638. "statusType": "auto",
  639. "x": 860,
  640. "y": 740,
  641. "wires": []
  642. },
  643. {
  644. "id": "9d98036262ab3bdc",
  645. "type": "inject",
  646. "z": "59310844a3cdc638",
  647. "g": "f03dded513b83b0d",
  648. "name": "",
  649. "props": [
  650. {
  651. "p": "payload"
  652. },
  653. {
  654. "p": "topic",
  655. "vt": "str"
  656. }
  657. ],
  658. "repeat": "",
  659. "crontab": "",
  660. "once": false,
  661. "onceDelay": 0.1,
  662. "topic": "",
  663. "payload": "",
  664. "payloadType": "date",
  665. "x": 180,
  666. "y": 840,
  667. "wires": [
  668. [
  669. "39131f3755e4535d"
  670. ]
  671. ]
  672. },
  673. {
  674. "id": "39131f3755e4535d",
  675. "type": "function",
  676. "z": "59310844a3cdc638",
  677. "g": "f03dded513b83b0d",
  678. "name": "GET settings",
  679. "func": "msg.url = \"http://presense-server:1902/api/settings\";\nmsg.method = \"GET\";\nmsg.payload = \"\";\nreturn msg;",
  680. "outputs": 1,
  681. "timeout": 0,
  682. "noerr": 0,
  683. "initialize": "",
  684. "finalize": "",
  685. "libs": [],
  686. "x": 350,
  687. "y": 840,
  688. "wires": [
  689. [
  690. "8284044fa3903be9"
  691. ]
  692. ]
  693. },
  694. {
  695. "id": "8284044fa3903be9",
  696. "type": "http request",
  697. "z": "59310844a3cdc638",
  698. "g": "f03dded513b83b0d",
  699. "name": "",
  700. "method": "use",
  701. "ret": "txt",
  702. "paytoqs": "ignore",
  703. "url": "",
  704. "tls": "",
  705. "persist": false,
  706. "proxy": "",
  707. "insecureHTTPParser": false,
  708. "authType": "",
  709. "senderr": false,
  710. "headers": [],
  711. "x": 550,
  712. "y": 840,
  713. "wires": [
  714. [
  715. "29f7ce4208592cc7"
  716. ]
  717. ]
  718. },
  719. {
  720. "id": "09e2fb2b15f80b1d",
  721. "type": "comment",
  722. "z": "59310844a3cdc638",
  723. "g": "f03dded513b83b0d",
  724. "name": "GET settings",
  725. "info": "",
  726. "x": 170,
  727. "y": 800,
  728. "wires": []
  729. },
  730. {
  731. "id": "4321534186191e5c",
  732. "type": "debug",
  733. "z": "59310844a3cdc638",
  734. "g": "f03dded513b83b0d",
  735. "name": "debug 6",
  736. "active": true,
  737. "tosidebar": true,
  738. "console": false,
  739. "tostatus": false,
  740. "complete": "false",
  741. "statusVal": "",
  742. "statusType": "auto",
  743. "x": 860,
  744. "y": 840,
  745. "wires": []
  746. },
  747. {
  748. "id": "29f7ce4208592cc7",
  749. "type": "json",
  750. "z": "59310844a3cdc638",
  751. "g": "f03dded513b83b0d",
  752. "name": "",
  753. "property": "payload",
  754. "action": "",
  755. "pretty": false,
  756. "x": 710,
  757. "y": 840,
  758. "wires": [
  759. [
  760. "4321534186191e5c"
  761. ]
  762. ]
  763. }
  764. ]