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}/events/tag
- 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}/events/tag?eventid=string&tag=string' \
-H 'Authorization: YOUR_API_KEY_HERE'Event stored OK
The friendly name of the link that created the event. This will also be the same identifier that is seen at the beginning of the link_id field.
Present in MotionStoppedEvent. References the UTC timestamp of preceding MotionDetectedEvent.
Array of float, of length guardian_config.motion_events.density_window -1 (Nominally len 7). Corresponds to the motion intensity values in the integration buffer at the time of the DetectedEvent.
Identifiers of the link that generated a MotionDetectedEvent message in the format of link_dst_name.link_src_name.
The loc_name field provides a description based the information available as to where motion was likely to have occurred within the network.
The friendly name of the link that received the event. This will also be the same identifier that is seen at the end of the link_id field.
Motion detection parameters from event generator. Used for debug and sensitivity calibration purposes. Present in MotionStoppedEvent on newer firmware.
Feedback of armed from GuardianConfig.motion_events
If 0, this event will not be stored in history or pushed to the user.
Event identifier
{ "_id": "string", "category": "Link", "loc": [ null ], "detail": { "property1": "string", "property2": "string" }, "link_dst_name": "string", "network_id": 0, "ts": 0.1, "evt_detected_ts": 0.1, "intensity_window": [ 0.1 ], "link_id": "string", "loc_name": "string", "tag": "string", "link_src_name": "string", "guardian_id": "string", "node_id": 0, "deviceId": "string", "node_name": "string", "debug": { "linkSens": {}, "msad": [ … ], "links": [ … ], "mconf": [ … ], "sens": 1 }, "armed": 0, "event": "MotionDetectedEvent", "_consumer": "string", "data": { "title": "string", "uuid": "string", "id": 0, "first_name": "string", "last_name": "string", "sub": "string", "user": { … } } }
Event category (for filtering)
Event identifier
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/events/create
- 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}/events/create' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"ts": 0.1,
"guardian_id": "string",
"network_id": 0,
"category": "Link",
"event": "MotionDetectedEvent",
"deviceId": "string"
}'- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/events/pairs
- 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}/events/pairs?from=0&to=0&last=0' \
-H 'Authorization: YOUR_API_KEY_HERE'OK
Array of MotionDetectedEvent & MotionStoppedEvent pairs.
Integer showing success code of pairing. 0 means complete failure, 1 means success, 2 means partial success.
{ "pairs": [ { … } ], "status": 0, "failures": [ { … } ] }