Direct Download Snapshot
CompletedAPI request similar to Direct Download video for getting a snapshot would be useful.
(I am actually surprised this function does not already exist, or if it does, I've missed it)
GET/hls/<cameraId>.<format> try method
Download snapshot of a camera archive, identified by its timestamp. It is not exactly an API method but rather a URL format which may contain any camera id (can be obtained from "id", "physicalId" or "logicalId" field via /ec2/getCamerasEx) or MAC address (not supported for certain cameras). Snapshot can be downloaded in .jpg or .png format. Example: http://<server_ip>:<port>/hls/12AB42FD5912.jpg?pos=2015-02-05T19:00
Parameters
|
Name |
Description |
Optional |
|
pos |
Snapshot time (as a string containing time in milliseconds since epoch, or a local time formatted like "YYYY-MM-DDTHH:mm:ss.zzz" - the format is auto-detected). |
true |
|
If no pos provided, then get “live” snapshot |
|
|
|
|
|
|
|
|
|
Result
Snapshot in the requested format
-
Hi Paul,
Please check the documentation for /ec2/cameraThumbnail method. I think it should solve the problem.
0 -
LoL, please don't tell me that has been there all along. You just added that right?
0 -
Actually, we just improved our time-lapse technology to deliver system updates to the past. It is still in beta.
0 -
In the documentation you have the time string as needing a unix timestamp. Which works of course but I have also used a formatted date_time which works too, other than the milliseconds are not respected…. It would be awesome if they were! That way I wouldn’t have to check the server TZ for the offset.
Consider that an official feature request.
/ec2/cameraThumbnail?cameraId=00-00-00-00-00-00&method=precise&time=2020-03-26T12:00:01.2500 -
Thank you Paul, we will do it
0 -
Great! Thanks,
If you end up implementing that, I wouldn't mind an early look at it.;-)0 -
Hi Paul, I'm checking the history and looks like 4.1 beta version supports this.
0 -
Cool! Thanks for letting me know. I'll give it at try this weekend.
0
Please sign in to leave a comment.
Comments
8 comments