Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First of all, @MisterWil, thanks for releasing this great library to interact with the Abode API.
I recently added a camera to my Abode system and noticed that in the official Abode app, it is possible to see a preview snapshot image from the camera without taking an image capture that gets recorded to the timeline. Looking in the web app, there is an
integrations/v1/camera/[uuid]/snapshot
URL that allows retrieving the current snapshot image as a base64-encoded string. The web app uses these snapshots (converted to a data url) as a preview on the live video page.This PR adds support for retrieving a snapshot image from an Abode camera, modeled on the existing
AbodeCamera.capture()
interface. The image can either be stored to a file, similar to a captured image, or returned as a base64-encoded data url for easy use in a web app. I only have an Abode Cam 2 (thanks @kevdliu for adding support), so I have not been able to test whether this Abode API works the same for older cameras. I would appreciate further testing by users with other camera versions to make sure it is fully compatible.This PR also increases the required versions for
flake8-docstrings
andpydocstyle
in the test suite since the previously pinned versions are incompatible with the latest flake8.