Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

248 linhas
5.0 KiB

  1. #!/bin/bash
  2. BASE_URL="http://localhost:1902"
  3. echo "Adding all trackers individually..."
  4. echo "1. Adding tracker C83F8F17DB35..."
  5. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  6. -H "Content-Type: application/json" \
  7. -d '{
  8. "id": "a3c1b2e4-9f73-4c1f-8c87-52e4d9cf9a01",
  9. "name": "INGICS-TASTO",
  10. "mac": "C83F8F17DB35",
  11. "status": "1",
  12. "model": "MNBT01G",
  13. "position": "",
  14. "notes": "",
  15. "x": 0,
  16. "y": 0,
  17. "floor": null,
  18. "building": null
  19. }'
  20. echo -e "\n"
  21. sleep 1
  22. echo "2. Adding tracker C300003947DF..."
  23. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  24. -H "Content-Type: application/json" \
  25. -d '{
  26. "id": "d91a7b4f-02f6-44b6-9fa0-ff6df1c2e7b3",
  27. "name": "RUSSI",
  28. "mac": "C300003947DF",
  29. "status": "1",
  30. "model": "B7",
  31. "position": "",
  32. "notes": "",
  33. "x": 0,
  34. "y": 0,
  35. "floor": null,
  36. "building": null
  37. }'
  38. echo -e "\n"
  39. sleep 1
  40. echo "3. Adding tracker C300003B1E20..."
  41. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  42. -H "Content-Type: application/json" \
  43. -d '{
  44. "id": "5f1a9c3d-4b6f-4f88-9c92-df5c2d37c2aa",
  45. "name": "PETRELLA",
  46. "mac": "C300003B1E20",
  47. "status": "1",
  48. "model": "MWC01",
  49. "position": "",
  50. "notes": "",
  51. "x": 0,
  52. "y": 0,
  53. "floor": null,
  54. "building": null
  55. }'
  56. echo -e "\n"
  57. sleep 1
  58. echo "4. Adding tracker C300003946B5..."
  59. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  60. -H "Content-Type: application/json" \
  61. -d '{
  62. "id": "8b7d42e9-4db5-4f42-a6c1-4e9f0c3e7d12",
  63. "name": "AMOROSA-S",
  64. "mac": "C300003946B5",
  65. "status": "1",
  66. "model": "MWB01",
  67. "position": "",
  68. "notes": "",
  69. "x": 0,
  70. "y": 0,
  71. "floor": null,
  72. "building": null
  73. }'
  74. echo -e "\n"
  75. sleep 1
  76. echo "5. Adding tracker C300003946AC..."
  77. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  78. -H "Content-Type: application/json" \
  79. -d '{
  80. "id": "1e93b3fd-7d67-4a53-9c7a-0f0a8e7e41c6",
  81. "name": "GALLO",
  82. "mac": "C300003946AC",
  83. "status": "1",
  84. "model": "MWB01",
  85. "position": "",
  86. "notes": "",
  87. "x": 0,
  88. "y": 0,
  89. "floor": null,
  90. "building": null
  91. }'
  92. echo -e "\n"
  93. sleep 1
  94. echo "6. Adding tracker C300003946B1..."
  95. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  96. -H "Content-Type: application/json" \
  97. -d '{
  98. "id": "e2b9d6cc-7d89-46bb-9e45-2b7f71e4a4d0",
  99. "name": "SMISEK",
  100. "mac": "C300003946B1",
  101. "status": "1",
  102. "model": "MWB01",
  103. "position": "",
  104. "notes": "",
  105. "x": 0,
  106. "y": 0,
  107. "floor": null,
  108. "building": null
  109. }'
  110. echo -e "\n"
  111. sleep 1
  112. echo "7. Adding tracker C300003B1E21..."
  113. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  114. -H "Content-Type: application/json" \
  115. -d '{
  116. "id": "6cfdeab2-03c4-41d7-9c1d-5f7bcb8c0b6b",
  117. "name": "ROMAGNUOLO",
  118. "mac": "C300003B1E21",
  119. "status": "1",
  120. "model": "MWC01",
  121. "position": "",
  122. "notes": "",
  123. "x": 0,
  124. "y": 0,
  125. "floor": null,
  126. "building": null
  127. }'
  128. echo -e "\n"
  129. sleep 1
  130. echo "8. Adding tracker C300003947C4..."
  131. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  132. -H "Content-Type: application/json" \
  133. -d '{
  134. "id": "fa73b6dd-9941-4d25-8a9a-8df3b09a9d77",
  135. "name": "BC-43",
  136. "mac": "C300003947C4",
  137. "status": "1",
  138. "model": "B7",
  139. "position": "",
  140. "notes": "",
  141. "x": 0,
  142. "y": 0,
  143. "floor": null,
  144. "building": null
  145. }'
  146. echo -e "\n"
  147. sleep 1
  148. echo "9. Adding tracker C300003947E2..."
  149. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  150. -H "Content-Type: application/json" \
  151. -d '{
  152. "id": "9c55d03e-2db1-4b0a-b1ac-8b60f60e712d",
  153. "name": "AMOROSA-F",
  154. "mac": "C300003947E2",
  155. "status": "1",
  156. "model": "B7",
  157. "position": "",
  158. "notes": "",
  159. "x": 0,
  160. "y": 0,
  161. "floor": null,
  162. "building": null
  163. }'
  164. echo -e "\n"
  165. sleep 1
  166. echo "10. Adding tracker C300003B1E1F..."
  167. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  168. -H "Content-Type: application/json" \
  169. -d '{
  170. "id": "2a00e3b4-4a12-4f70-a4c4-408a1779e251",
  171. "name": "DINONNO",
  172. "mac": "C300003B1E1F",
  173. "status": "1",
  174. "model": "MWC01",
  175. "position": "",
  176. "notes": "",
  177. "x": 0,
  178. "y": 0,
  179. "floor": null,
  180. "building": null
  181. }'
  182. echo -e "\n"
  183. sleep 1
  184. echo "11. Adding tracker C7AE561E38B7..."
  185. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  186. -H "Content-Type: application/json" \
  187. -d '{
  188. "id": "bf6d6c84-5e1a-4b83-a10f-0e9cf2a198c3",
  189. "name": "ismarch-X6",
  190. "mac": "C7AE561E38B7",
  191. "status": "1",
  192. "model": "B7",
  193. "position": "",
  194. "notes": "",
  195. "x": 0,
  196. "y": 0,
  197. "floor": null,
  198. "building": null
  199. }'
  200. echo -e "\n"
  201. sleep 1
  202. echo "12. Adding tracker E01F9A7A47D2..."
  203. curl -s -X POST "$BASE_URL/reslevis/postTracker" \
  204. -H "Content-Type: application/json" \
  205. -d '{
  206. "id": "41c4c6b2-9c3d-48d6-aea6-7c1bcfdfb2b7",
  207. "name": "ismarch-C2",
  208. "mac": "E01F9A7A47D2",
  209. "status": "1",
  210. "model": "B7",
  211. "position": "",
  212. "notes": "",
  213. "x": 0,
  214. "y": 0,
  215. "floor": null,
  216. "building": null
  217. }'
  218. echo -e "\n"
  219. sleep 1
  220. echo "All trackers added! Listing all trackers..."
  221. curl -X GET "$BASE_URL/reslevis/getTrackers"
  222. echo -e "\n"