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. This documentation outlines the endpoints for engaging with the WiFi Motion cloud and includes specifications for the following APIs:
The live motion API opens a web socket and triggers the network to emit recorded motion at a 500ms interval.
High-level APIs for retrieving the network's topology, last status message, or to view or modify the network's metadata.
The location data APIs expose localized motion data. Localization happens on a per mac, or custom location name base.
A set of APIs to find a network in the WiFi Motion Cloud. Individual, or groups of networks can be queried by their primary identifiers or by MAC.
APIs of the internal Home Insights Microservice. Used for motion-based activity and sleep insights.
Fine-grained network configuration. These APIs give full access to the underlying motion detection controls, but have no safeguards to prevent unwanted side effects. For friendlier configuration management, see the Network Settings APIs.
Interface to manage the access point or mesh nodes of a network. Provides APIs to find, delete or alter the configuration of nodes.
Endpoint used by WiFi Motion agent for the initial cloud connection. This API returns credentials for connecting to the MQTT broker and stores the initial network configuration. We don't recommend using this API directly.
Execute commands directly on the network's access point, or on a mesh node. We recommend using the NOC Management Page for these actions.
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/insights/version
curl -i -X GET \
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/insights/version
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/insights/sleepTimes
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/insights/sleepTimes?afrom=now-1d&ato=now&duration=1&fetchAll=0&interruption=0&networkId=0&png=0&sleepTime=23&timeZone=string&wakeTime=23'
[ { "avg_sleep_str": "00:58", "avg_wake_str": "08:30", "duration_avg_s": 27257, "duration_avg_str": "7h34m", "qry_days": 7 }, [ { … }, { … }, { … }, { … }, { … }, { … }, { … } ] ]
Starting time for report. This can be an epoch value, or can be in the form of now-1d
. Do not use quotation marks within this field.
Ending time of report. This can be an epoch value, or can be in the form of now
. Do not use quotation marks within this field.
IANA String for time Zone (Ex: America/Toronto, America/New_York). Do not use quotation marks within this field.
(BETA) Control for enabling response of different Goal calculations. Each considers the current day's activity relative to the rest of the query window, providing the window average and current delta activity values. The different integer modes [1,2,3] select the aggregations of 'day' as: today so far, Last 24hr block, Last Full calendar day. [0] for all and [-1] for none.
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/insights/activity
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/insights/activity?afrom=now-1d&ato=now&goal=0&networkId=0&png=0&timeZone=string'
[ { "qry_days": 7.010416666666667 }, [ [ … ], [ … ], [ … ], [ … ], [ … ], [ … ], [ … ] ] ]