The WiFi Motion Core Cloud APIs facilitate the creation, configuration, and management of WiFi Motion networks via RESTful APIs. Additionally, it offers interfaces for accessing topologies, events, and motion data. The only difference is that the Core APIs do not specifically reference a user, and instead provide you with the ability to query the data from any network that is available in the environment.
WiFi Motion Core APIs (v3-x-x)
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/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/mns/v3-x-x/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
{ "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 server
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/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/mns/v3-x-x/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
}'
{ "status": 0, "success": 0 }
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/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/mns/v3-x-x/network/{network_id}/motion/refresh' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"ttl": 120
}'
{ "status": 0, "success": 0 }