The Core APIs facilitate the creation, configuration, and management of WiFi Motion networks via RESTful APIs. It offers interfaces for accessing topologies, events, motion data, and more.
Cognitive Systems App Core API
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/live
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/live' \
-H 'Authorization: YOUR_API_KEY_HERE'OK.
The first entry is a string representing the MAC addresses near which motion has been localized. If present, the second entry is p_confidence a float representing how sure the algorithm is of its decision.
User indicated location of the device being localized to in loc field (if provided, empty string otherwise)
The location confidence information as an array of number (float) for the corresponding loc output index. Available as debug output values when Guardian Config -> live_motion -> loc_conf_enable = 1. Supported as of GuardianCore = 0.7.2
Response
application/json
{ "ts": 1749733674.23, "links": [ "csi-b-a01b23345678.012ab345c678", "csi-b-a01b23345678.012ab345c67d", "csi-b-a01b23345678.a1234b5c67de" ], "data": { "lraw": [ … ], "mconf": [ … ], "mkai": [ … ], "msad": [ … ], "throughput": [ … ] }, "loc": [ "nomotion" ], "interval": 500, "count": 1, "last_motion": 1749730197.74 }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/pubnub
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/pubnub' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"subscribeKey": "string",
"publishKey": "string",
"authKey": "string",
"channel": "string",
"ttl": 300
}'Response
application/json
{ "status": 0, "success": 0 }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/refresh
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/refresh' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"ttl": 120
}'Response
application/json
{ "status": 0, "success": 0 }