|
@@ -135,16 +135,17 @@ Version info
|
|
|
|
|
|
Events from the database. Accepts the following query string parameters:
|
|
Events from the database. Accepts the following query string parameters:
|
|
|
|
|
|
-| param | Type | Description |
|
|
|
|
-| -------------- | ---- | --------------------------------------------- |
|
|
|
|
-| `before` | int | Epoch time |
|
|
|
|
-| `after` | int | Epoch time |
|
|
|
|
-| `camera` | str | Camera name |
|
|
|
|
-| `label` | str | Label name |
|
|
|
|
-| `zone` | str | Zone name |
|
|
|
|
-| `limit` | int | Limit the number of events returned |
|
|
|
|
-| `has_snapshot` | int | Filter to events that have snapshots (0 or 1) |
|
|
|
|
-| `has_clip` | int | Filter to events that have clips (0 or 1) |
|
|
|
|
|
|
+| param | Type | Description |
|
|
|
|
+| -------------------- | ---- | --------------------------------------------- |
|
|
|
|
+| `before` | int | Epoch time |
|
|
|
|
+| `after` | int | Epoch time |
|
|
|
|
+| `camera` | str | Camera name |
|
|
|
|
+| `label` | str | Label name |
|
|
|
|
+| `zone` | str | Zone name |
|
|
|
|
+| `limit` | int | Limit the number of events returned |
|
|
|
|
+| `has_snapshot` | int | Filter to events that have snapshots (0 or 1) |
|
|
|
|
+| `has_clip` | int | Filter to events that have clips (0 or 1) |
|
|
|
|
+| `include_thumbnails` | int | Include thumbnails in the response (0 or 1) |
|
|
|
|
|
|
### `/api/events/summary`
|
|
### `/api/events/summary`
|
|
|
|
|
|
@@ -159,16 +160,17 @@ Returns data for a single event.
|
|
Returns a thumbnail for the event id optimized for notifications. Works while the event is in progress and after completion. Passing `?format=android` will convert the thumbnail to 2:1 aspect ratio.
|
|
Returns a thumbnail for the event id optimized for notifications. Works while the event is in progress and after completion. Passing `?format=android` will convert the thumbnail to 2:1 aspect ratio.
|
|
|
|
|
|
### `/api/events/<id>/snapshot.jpg`
|
|
### `/api/events/<id>/snapshot.jpg`
|
|
|
|
+
|
|
Returns the snapshot image for the event id. Works while the event is in progress and after completion.
|
|
Returns the snapshot image for the event id. Works while the event is in progress and after completion.
|
|
|
|
|
|
Accepts the following query string parameters, but they are only applied when an event is in progress. After the event is completed, the saved snapshot is returned from disk without modification:
|
|
Accepts the following query string parameters, but they are only applied when an event is in progress. After the event is completed, the saved snapshot is returned from disk without modification:
|
|
|
|
|
|
-|param|Type|Description|
|
|
|
|
-|----|-----|--|
|
|
|
|
-|`h`|int|Height in pixels|
|
|
|
|
-|`bbox`|int|Show bounding boxes for detected objects (0 or 1)|
|
|
|
|
-|`timestamp`|int|Print the timestamp in the upper left (0 or 1)|
|
|
|
|
-|`crop`|int|Crop the snapshot to the (0 or 1)|
|
|
|
|
|
|
+| param | Type | Description |
|
|
|
|
+| ----------- | ---- | ------------------------------------------------- |
|
|
|
|
+| `h` | int | Height in pixels |
|
|
|
|
+| `bbox` | int | Show bounding boxes for detected objects (0 or 1) |
|
|
|
|
+| `timestamp` | int | Print the timestamp in the upper left (0 or 1) |
|
|
|
|
+| `crop` | int | Crop the snapshot to the (0 or 1) |
|
|
|
|
|
|
### `/clips/<camera>-<id>.mp4`
|
|
### `/clips/<camera>-<id>.mp4`
|
|
|
|
|