-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requesting camera snapshot broken for older Abode cameras #60
Comments
JSON data for the Iota camera:
|
Here is for the current line of IP cameras referred to as the "abode Cam" (https://goabode.com/security-devices/security-cameras/abode-cam)
|
Fixed in abodepy-0.17.0 |
22 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was brought up in an issue over on the Home Assistant repo: home-assistant/core#29895
There was a previous issue where requesting a camera snapshot for Iota (and possibly the "newer" circular Abode streaming cameras) was broken. The solution was changing the last word for
CAMS_ID_CAPTURE_URL
in constants.py fromsnapshot
tocapture
. It appears the older streaming camera still usessnapshot
thus breaking this functionality when using the older streaming camera.I only have the Iota streaming camera but I'll need someone to provide the JSON data for the older (square) 720p streaming camera and newer (round) 1080p streaming camera. We need a way to check the type of camera when the
capture
method is being called in cameras.py.Edit: I think I have a simple and more robust fix for this in
cameras.py
. Currently, theurl
variable in thecapture
method is being defined by:url = str.replace(CONST.CAMS_ID_CAPTURE_URL, '$DEVID$', self.device_id)
Instead, we can change this to:
url = CONST.BASE_URL + self._json_state["control_url_snapshot"]
The JSON data for the Iota camera has a key called
control_url_snapshot
which specifics the URL for the snapshot feature which we can use. Two obvious benefits:This will pull the correct "control url" for whichever camera is being used. This assumes all Abode cameras have the key
control_url_snapshot
in their JSON data. I need someone to confirm this for the older 720p camera and newer 1080p camera (standalone cameras).If Abode ever updates the control URL, it won't break this
capture
method.The text was updated successfully, but these errors were encountered: