Closed MisterWil closed 6 years ago
PUT https://my.goabode.com/api/v1/cams/ZB:fbb601/capture
Response:
{"code":200,"message":"OK"}
GET https://my.goabode.com/api/v1/timeline?device_id=&dir=next&event_label=Image+Capture&from=&last_seen=&last_utc=&size=100&to= Response:
[
{
"id": "71739948",
"event_utc": "1503518105",
"nest_activity_zones": null,
"nest_has_motion": null,
"nest_has_sound": null,
"nest_has_person": null,
"date": "08/23/2017",
"time": "12:55 PM",
"is_alarm": "0",
"event_cid": "",
"event_code": "5001",
"device_id": "ZB:fbb601",
"device_type_id": "27",
"device_type": "Motion Camera",
"device_name": "Downstairs Motion Camera",
"file_path": "api/storage/fbb601/2017-08-23/195505UTC/001.jpg",
"deep_link": null,
"app_deep_link": null,
"file_size": "30852",
"file_count": "1",
"file_is_del": "0",
"event_type": "Image Capture",
"severity": "6",
"pos": "l",
"color": "#40bbea",
"viewed_by_uid": "",
"user_id": "3614",
"user_name": "Wil",
"mobile_name": "",
"parent_tid": "",
"icon": "assets/email/motion-camera.png",
"app_type": "WebApp",
"file_del_at": "",
"event_name": "Downstairs Motion Camera Image Capture",
"event_by": ""
}
]
GET https://my.goabode.com/api/storage/fbb601/2017-08-23/195505UTC/001.jpg Response: 304 FOUND Location header points to where to find the image on Amazon AWS.
Might be able to catch image capture events through the event service's timeline notification
Timeline events through event service: 'com.goabode.gateway.timeline'
Add the ability to download and trigger photos for motion cameras.