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.
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/density
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/density?bucket=3600&from=0&to=0' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ [ [ … ], [ … ], [ … ], [ … ], [ … ], [ … ] ] ]
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/state_blocks
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/state_blocks?density_bucket=120&from=0&state_bucket=1800&states=0&to=0' \
-H 'Authorization: YOUR_API_KEY_HERE'
Returns any array of motion blocks. Each block summarizes locations and devices seen, as well as the time range and motion_state of the block. For each density_bucket sized time period, a breakdown of location and density is listed. The breakdown is captured in three parallel lists of locations, devices and densities. Friendly names for locations and devices are used when available, defaulting to MAC addresses (without the ":" when not available.
[ { "devices": [ … ], "location_history": [ … ], "locations": [ … ], "start": 1708632120, "state": 0, "stop": 1708632960 } ]