Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

432 rindas
10 KiB

  1. [
  2. {
  3. "id": "59310844a3cdc638",
  4. "type": "tab",
  5. "label": "Flow 1",
  6. "disabled": false,
  7. "info": "",
  8. "env": []
  9. },
  10. {
  11. "id": "883490d684612591",
  12. "type": "inject",
  13. "z": "59310844a3cdc638",
  14. "name": "",
  15. "props": [
  16. {
  17. "p": "payload"
  18. },
  19. {
  20. "p": "topic",
  21. "vt": "str"
  22. }
  23. ],
  24. "repeat": "",
  25. "crontab": "",
  26. "once": false,
  27. "onceDelay": 0.1,
  28. "topic": "",
  29. "payload": "",
  30. "payloadType": "date",
  31. "x": 180,
  32. "y": 240,
  33. "wires": [
  34. [
  35. "522c9262dc81a34f"
  36. ]
  37. ]
  38. },
  39. {
  40. "id": "3a198c85c047a80d",
  41. "type": "comment",
  42. "z": "59310844a3cdc638",
  43. "name": "Server components test | BEACONS LIST",
  44. "info": "",
  45. "x": 260,
  46. "y": 140,
  47. "wires": []
  48. },
  49. {
  50. "id": "522c9262dc81a34f",
  51. "type": "function",
  52. "z": "59310844a3cdc638",
  53. "name": "GET beacons",
  54. "func": "msg.url = \"http://presense-server:1902/api/beacons\";\nmsg.method = \"GET\";\nmsg.payload = \"\";\nreturn msg;",
  55. "outputs": 1,
  56. "timeout": 0,
  57. "noerr": 0,
  58. "initialize": "",
  59. "finalize": "",
  60. "libs": [],
  61. "x": 360,
  62. "y": 240,
  63. "wires": [
  64. [
  65. "2f19e204e95d32b2"
  66. ]
  67. ]
  68. },
  69. {
  70. "id": "2f19e204e95d32b2",
  71. "type": "http request",
  72. "z": "59310844a3cdc638",
  73. "name": "",
  74. "method": "use",
  75. "ret": "txt",
  76. "paytoqs": "ignore",
  77. "url": "",
  78. "tls": "",
  79. "persist": false,
  80. "proxy": "",
  81. "insecureHTTPParser": false,
  82. "authType": "",
  83. "senderr": false,
  84. "headers": [],
  85. "x": 550,
  86. "y": 240,
  87. "wires": [
  88. [
  89. "3b832f5f2a705f87"
  90. ]
  91. ]
  92. },
  93. {
  94. "id": "8a39a884d333343d",
  95. "type": "comment",
  96. "z": "59310844a3cdc638",
  97. "name": "GET beacons list",
  98. "info": "",
  99. "x": 180,
  100. "y": 200,
  101. "wires": []
  102. },
  103. {
  104. "id": "bfc307bbffd86501",
  105. "type": "inject",
  106. "z": "59310844a3cdc638",
  107. "name": "",
  108. "props": [
  109. {
  110. "p": "payload"
  111. },
  112. {
  113. "p": "topic",
  114. "vt": "str"
  115. }
  116. ],
  117. "repeat": "",
  118. "crontab": "",
  119. "once": false,
  120. "onceDelay": 0.1,
  121. "topic": "",
  122. "payload": "",
  123. "payloadType": "date",
  124. "x": 180,
  125. "y": 340,
  126. "wires": [
  127. [
  128. "368acb55a1372809"
  129. ]
  130. ]
  131. },
  132. {
  133. "id": "368acb55a1372809",
  134. "type": "function",
  135. "z": "59310844a3cdc638",
  136. "name": "POST beacons",
  137. "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;",
  138. "outputs": 1,
  139. "timeout": 0,
  140. "noerr": 0,
  141. "initialize": "",
  142. "finalize": "",
  143. "libs": [],
  144. "x": 360,
  145. "y": 340,
  146. "wires": [
  147. [
  148. "06586c5ac291f999"
  149. ]
  150. ]
  151. },
  152. {
  153. "id": "06586c5ac291f999",
  154. "type": "http request",
  155. "z": "59310844a3cdc638",
  156. "name": "",
  157. "method": "use",
  158. "ret": "txt",
  159. "paytoqs": "ignore",
  160. "url": "",
  161. "tls": "",
  162. "persist": false,
  163. "proxy": "",
  164. "insecureHTTPParser": false,
  165. "authType": "",
  166. "senderr": false,
  167. "headers": [],
  168. "x": 550,
  169. "y": 340,
  170. "wires": [
  171. [
  172. "48eb1b4c5a48a874"
  173. ]
  174. ]
  175. },
  176. {
  177. "id": "d8d3d6ee351c3fce",
  178. "type": "comment",
  179. "z": "59310844a3cdc638",
  180. "name": "POST beacons list",
  181. "info": "",
  182. "x": 190,
  183. "y": 300,
  184. "wires": []
  185. },
  186. {
  187. "id": "b03a9a99c8897f49",
  188. "type": "debug",
  189. "z": "59310844a3cdc638",
  190. "name": "debug 1",
  191. "active": true,
  192. "tosidebar": true,
  193. "console": false,
  194. "tostatus": false,
  195. "complete": "false",
  196. "statusVal": "",
  197. "statusType": "auto",
  198. "x": 860,
  199. "y": 240,
  200. "wires": []
  201. },
  202. {
  203. "id": "48eb1b4c5a48a874",
  204. "type": "debug",
  205. "z": "59310844a3cdc638",
  206. "name": "debug 2",
  207. "active": true,
  208. "tosidebar": true,
  209. "console": false,
  210. "tostatus": false,
  211. "complete": "false",
  212. "statusVal": "",
  213. "statusType": "auto",
  214. "x": 860,
  215. "y": 340,
  216. "wires": []
  217. },
  218. {
  219. "id": "3b832f5f2a705f87",
  220. "type": "json",
  221. "z": "59310844a3cdc638",
  222. "name": "",
  223. "property": "payload",
  224. "action": "",
  225. "pretty": false,
  226. "x": 710,
  227. "y": 240,
  228. "wires": [
  229. [
  230. "b03a9a99c8897f49"
  231. ]
  232. ]
  233. },
  234. {
  235. "id": "1817099dc85d0c73",
  236. "type": "inject",
  237. "z": "59310844a3cdc638",
  238. "name": "",
  239. "props": [
  240. {
  241. "p": "payload"
  242. },
  243. {
  244. "p": "topic",
  245. "vt": "str"
  246. }
  247. ],
  248. "repeat": "",
  249. "crontab": "",
  250. "once": false,
  251. "onceDelay": 0.1,
  252. "topic": "",
  253. "payload": "",
  254. "payloadType": "date",
  255. "x": 180,
  256. "y": 440,
  257. "wires": [
  258. [
  259. "3b4d5dca9051f727"
  260. ]
  261. ]
  262. },
  263. {
  264. "id": "3b4d5dca9051f727",
  265. "type": "function",
  266. "z": "59310844a3cdc638",
  267. "name": "PUT beacons",
  268. "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;",
  269. "outputs": 1,
  270. "timeout": 0,
  271. "noerr": 0,
  272. "initialize": "",
  273. "finalize": "",
  274. "libs": [],
  275. "x": 360,
  276. "y": 440,
  277. "wires": [
  278. [
  279. "213a0de12ca7b387"
  280. ]
  281. ]
  282. },
  283. {
  284. "id": "213a0de12ca7b387",
  285. "type": "http request",
  286. "z": "59310844a3cdc638",
  287. "name": "",
  288. "method": "use",
  289. "ret": "txt",
  290. "paytoqs": "ignore",
  291. "url": "",
  292. "tls": "",
  293. "persist": false,
  294. "proxy": "",
  295. "insecureHTTPParser": false,
  296. "authType": "",
  297. "senderr": false,
  298. "headers": [],
  299. "x": 550,
  300. "y": 440,
  301. "wires": [
  302. [
  303. "668a57a11d34fab9"
  304. ]
  305. ]
  306. },
  307. {
  308. "id": "9095389f88755788",
  309. "type": "comment",
  310. "z": "59310844a3cdc638",
  311. "name": "PUT beacons list",
  312. "info": "",
  313. "x": 180,
  314. "y": 400,
  315. "wires": []
  316. },
  317. {
  318. "id": "668a57a11d34fab9",
  319. "type": "debug",
  320. "z": "59310844a3cdc638",
  321. "name": "debug 4",
  322. "active": true,
  323. "tosidebar": true,
  324. "console": false,
  325. "tostatus": false,
  326. "complete": "false",
  327. "statusVal": "",
  328. "statusType": "auto",
  329. "x": 860,
  330. "y": 440,
  331. "wires": []
  332. },
  333. {
  334. "id": "9fe67862caf1033d",
  335. "type": "inject",
  336. "z": "59310844a3cdc638",
  337. "name": "",
  338. "props": [
  339. {
  340. "p": "payload"
  341. },
  342. {
  343. "p": "topic",
  344. "vt": "str"
  345. }
  346. ],
  347. "repeat": "",
  348. "crontab": "",
  349. "once": false,
  350. "onceDelay": 0.1,
  351. "topic": "",
  352. "payload": "",
  353. "payloadType": "date",
  354. "x": 180,
  355. "y": 540,
  356. "wires": [
  357. [
  358. "c52f0e6e0e08f1ca"
  359. ]
  360. ]
  361. },
  362. {
  363. "id": "c52f0e6e0e08f1ca",
  364. "type": "function",
  365. "z": "59310844a3cdc638",
  366. "name": "DELETE beacons",
  367. "func": "msg.url = \"http://presense-server:1902/api/beacons/2\";\nmsg.method = \"DELETE\";\nmsg.payload = \"\";\nreturn msg;",
  368. "outputs": 1,
  369. "timeout": 0,
  370. "noerr": 0,
  371. "initialize": "",
  372. "finalize": "",
  373. "libs": [],
  374. "x": 370,
  375. "y": 540,
  376. "wires": [
  377. [
  378. "35d94840a12ca741"
  379. ]
  380. ]
  381. },
  382. {
  383. "id": "35d94840a12ca741",
  384. "type": "http request",
  385. "z": "59310844a3cdc638",
  386. "name": "",
  387. "method": "use",
  388. "ret": "txt",
  389. "paytoqs": "ignore",
  390. "url": "",
  391. "tls": "",
  392. "persist": false,
  393. "proxy": "",
  394. "insecureHTTPParser": false,
  395. "authType": "",
  396. "senderr": false,
  397. "headers": [],
  398. "x": 550,
  399. "y": 540,
  400. "wires": [
  401. [
  402. "50c9899be46f95be"
  403. ]
  404. ]
  405. },
  406. {
  407. "id": "2475de26f85f96e5",
  408. "type": "comment",
  409. "z": "59310844a3cdc638",
  410. "name": "DELETE beacons list",
  411. "info": "",
  412. "x": 200,
  413. "y": 500,
  414. "wires": []
  415. },
  416. {
  417. "id": "50c9899be46f95be",
  418. "type": "debug",
  419. "z": "59310844a3cdc638",
  420. "name": "debug 3",
  421. "active": true,
  422. "tosidebar": true,
  423. "console": false,
  424. "tostatus": false,
  425. "complete": "false",
  426. "statusVal": "",
  427. "statusType": "auto",
  428. "x": 860,
  429. "y": 540,
  430. "wires": []
  431. }
  432. ]