Springworks/connected-office-api — pull request #10 by sommestad (2014-12-17 12:39:35+00:00)
Title: Endpoints for GETting motion events by sensor name

#### Get motion for sensor `GET` `/v1/motion_events/{sensor_name}`
Gets detected motion events for the specified sensor.

**Response**

A `HTTP 200 OK` with an array of motion events:

```json
[
{
"_id": "5230b76440823cd634000001",
"sensor_name": "Sensor 1",
"state": "motion",
"date_modified" : "2013-09-11T18:46:16.472Z",
"date_created" : "2013-09-11T18:32:31.147Z"
},
{
"_id": "5230b76440823cd634000001",
"sensor_name": "Sensor 1",
"state": "motion",
"date_modified" : "2013-09-11T16:46:16.472Z",
"date_created" : "2013-09-11T16:32:31.147Z"
}
]

```