|
- #!/bin/bash
- BASE_URL="http://localhost:1902"
-
- echo "Adding all trackers individually..."
-
- echo "1. Adding tracker C83F8F17DB35..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "a3c1b2e4-9f73-4c1f-8c87-52e4d9cf9a01",
- "name": "INGICS-TASTO",
- "mac": "C83F8F17DB35",
- "status": "1",
- "model": "MNBT01G",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "2. Adding tracker C300003947DF..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "d91a7b4f-02f6-44b6-9fa0-ff6df1c2e7b3",
- "name": "RUSSI",
- "mac": "C300003947DF",
- "status": "1",
- "model": "B7",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "3. Adding tracker C300003B1E20..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "5f1a9c3d-4b6f-4f88-9c92-df5c2d37c2aa",
- "name": "PETRELLA",
- "mac": "C300003B1E20",
- "status": "1",
- "model": "MWC01",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "4. Adding tracker C300003946B5..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "8b7d42e9-4db5-4f42-a6c1-4e9f0c3e7d12",
- "name": "AMOROSA-S",
- "mac": "C300003946B5",
- "status": "1",
- "model": "MWB01",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "5. Adding tracker C300003946AC..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "1e93b3fd-7d67-4a53-9c7a-0f0a8e7e41c6",
- "name": "GALLO",
- "mac": "C300003946AC",
- "status": "1",
- "model": "MWB01",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "6. Adding tracker C300003946B1..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "e2b9d6cc-7d89-46bb-9e45-2b7f71e4a4d0",
- "name": "SMISEK",
- "mac": "C300003946B1",
- "status": "1",
- "model": "MWB01",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "7. Adding tracker C300003B1E21..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "6cfdeab2-03c4-41d7-9c1d-5f7bcb8c0b6b",
- "name": "ROMAGNUOLO",
- "mac": "C300003B1E21",
- "status": "1",
- "model": "MWC01",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "8. Adding tracker C300003947C4..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "fa73b6dd-9941-4d25-8a9a-8df3b09a9d77",
- "name": "BC-43",
- "mac": "C300003947C4",
- "status": "1",
- "model": "B7",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "9. Adding tracker C300003947E2..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "9c55d03e-2db1-4b0a-b1ac-8b60f60e712d",
- "name": "AMOROSA-F",
- "mac": "C300003947E2",
- "status": "1",
- "model": "B7",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "10. Adding tracker C300003B1E1F..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "2a00e3b4-4a12-4f70-a4c4-408a1779e251",
- "name": "DINONNO",
- "mac": "C300003B1E1F",
- "status": "1",
- "model": "MWC01",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "11. Adding tracker C7AE561E38B7..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "bf6d6c84-5e1a-4b83-a10f-0e9cf2a198c3",
- "name": "ismarch-X6",
- "mac": "C7AE561E38B7",
- "status": "1",
- "model": "B7",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "12. Adding tracker E01F9A7A47D2..."
- curl -s -X POST "$BASE_URL/reslevis/postTracker" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "41c4c6b2-9c3d-48d6-aea6-7c1bcfdfb2b7",
- "name": "ismarch-C2",
- "mac": "E01F9A7A47D2",
- "status": "1",
- "model": "B7",
- "position": "",
- "notes": "",
- "x": 0,
- "y": 0,
- "floor": null,
- "building": null
- }'
- echo -e "\n"
-
- sleep 1
-
- echo "All trackers added! Listing all trackers..."
- curl -X GET "$BASE_URL/reslevis/getTrackers"
- echo -e "\n"
|