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}/config/guardian
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/config/guardian?key=string&update=true' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "history_motion": { "count": 60, "enable": 1, "interval": 5000, "flush_interval": 300 }, "device_events": { "enable": 0 }, "live_motion": { "enable": 1, "force_enable": 0, "interval": 500, "loc_conf_enable": 0 }, "link_events": { "enable": 0, "throughput_threshold": 0, "idle_link_timeout": 0, "throughput_cooldown": 0, "noise_duration": 0, "noise_cooldown": 0, "noise_threshold": 0, "throughput_duration": 0 }, "leafblower": { "cutoff": 0, "blower_size": 60, "log_debug": 0, "link_expiry": 1008, "sneaky_cutoff": -1.1, "sneaky_link_limit": 0, "whitelist": { … }, "link_limit": 3, "whitelist_enable": 0, "cycle_count": 10, "cycle_time": 0 }, "debug": { "status": 0, "leafblower": 0, "gateway": 0, "zilker": 0 }, "user_priority": [ "string" ], "motion_events": { "enable": 1, "threshold": 0, "pet_mode": 0, "cooldown": 0, "excessive_mins": 0, "excessive_density": 0.7, "armed": 1, "override": { … }, "property1": 0, "property2": 0 } }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/config/radar
- 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}/config/radar?key=string' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "dynamic_sensitivity": "string", "bridge": { "statusInterval": 60, "zmqPort": 6969, "loglevel": "debug", "zmqHost": "127.0.0.1", "linkExpiry": 120, "debug": 1, "debug_status": 0, "vault": 0 }, "motion80211": { "txEnable": { … }, "linkSens": { … }, "hyperSensOverride": [ … ], "noise_ctrl": 0, "cfrMode": "o", "dmEnable": 0, "period": 0, "meshAutoDisable": 0, "meshSoundingDisabled": [ … ], "sens": 1, "forceTxEnable": 0, "pingerEnable": { … }, "ping_rate": 100, "optmode": { … }, "mpdf_threshold": { … } } }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/config/radar
- 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}/config/radar?update=false&key=string' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"dynamic_sensitivity": "string",
"bridge": {
"statusInterval": 60,
"zmqPort": 6969,
"loglevel": "debug",
"zmqHost": "127.0.0.1",
"linkExpiry": 120,
"debug": 1,
"debug_status": 0,
"vault": 0
},
"motion80211": {
"txEnable": {
"property1": 0,
"property2": 0
},
"linkSens": {
"property1": 0,
"property2": 0
},
"hyperSensOverride": [
"string"
],
"noise_ctrl": 0,
"cfrMode": "o",
"dmEnable": 0,
"period": 0,
"meshAutoDisable": 0,
"meshSoundingDisabled": [
"string"
],
"sens": 1,
"forceTxEnable": 0,
"pingerEnable": {
"property1": 0,
"property2": 0
},
"ping_rate": 100,
"optmode": {
"property1": 0,
"property2": 0
},
"mpdf_threshold": {
"property1": 0,
"property2": 0
}
}
}'Response
application/json
{ "dynamic_sensitivity": "string", "bridge": { "statusInterval": 60, "zmqPort": 6969, "loglevel": "debug", "zmqHost": "127.0.0.1", "linkExpiry": 120, "debug": 1, "debug_status": 0, "vault": 0 }, "motion80211": { "txEnable": { … }, "linkSens": { … }, "hyperSensOverride": [ … ], "noise_ctrl": 0, "cfrMode": "o", "dmEnable": 0, "period": 0, "meshAutoDisable": 0, "meshSoundingDisabled": [ … ], "sens": 1, "forceTxEnable": 0, "pingerEnable": { … }, "ping_rate": 100, "optmode": { … }, "mpdf_threshold": { … } } }