Cognitive Systems WiFi Motion AppCloud API (v1-5-x)
The AppCloud APIs are used by mobile applications to communicate with the Cognitive Systems Infrastructure.
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/
https://docs.cognitivesystems.com/api/v1/
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/event_tag
https://docs.cognitivesystems.com/api/v1/event_tag
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/event_tag \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"network_id": 1,
"eventid": "abc123",
"tag": "False"
}'
{ "id": "string", "guardian_id": "string", "network_id": 0, "timestamp": 0, "event_type": "string", "event_category": "string", "link_id": "string", "icon_url": "string", "text": "string", "tag": "string", "data": { "property1": "string", "property2": "string" } }
Request
Returns historical motion densities for a given period of time. Densities are percentages representing how many samples within a bucket-size had motion values greater than zero.
For example, if the bucket size was 60 seconds, and 11 of the 12 possible 5s buckets had motion then a value of 91.6 would be returned.
It should be noted that data is stored in two resolutions:
1s intervals for the last 24 hours. 5s intervals for the last week. Which means that densities computed on data within the last 24 hours may be retrieved with this request at sub 5s bucket sizes.
This request may return data at a coarser resolution than the requested bucket size, if data at that resolution is not available.
Timestamp ranges are limited by Halo Home to only include times over which the network was last claimed.
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/motion_history_densities
https://docs.cognitivesystems.com/api/v1/motion_history_densities
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/motion_history_densities?network_id=1&from=0&to=0&bucket=1&last=400' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ [ 0.02777777777777778, 1591686000 ], [ 0, 1591686900 ], [ 0.016666666666666666, 1591687800 ] ]
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/network_statuses
https://docs.cognitivesystems.com/api/v1/network_statuses
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/network_statuses?network_id=1' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "last_motion": 0, "motion_tripped": 0 }