Allow `image` view to use a HA camera snapshot
See original GitHub issueI am using the image view as the default view in my cards. For the image view, I’m using the snapshot URL of my cameras. This provides a snapshot from each camera every few seconds. Works great for my Reolink cameras, which support Basic authentication, but not for my Amcrest camera, which only supports Digest.
Amcrest:
image:
src: http://admin:password1@192.168.x.x/cgi-bin/snapshot.cgi1
refresh_seconds: 5
Reolink:
image:
src: >-
http://192.168.x.x/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=xxx&user=admin&password=password&width=640&height=360
refresh_seconds: 5
Entering the Amcrest URL in the browser pops up a browser dialog for username and password. After entering the camera credentials, the snapshot from the camera loads. Using that URL is the Frigate card results in a broken image and HTTP 401 responses: Failed to load resource: the server responded with a status of 401 (Unauthorized)
.
Ideally the Frigate card would extract the credentials from the image URL and use those. Alternatively there could be additional username and password fields for the image configuration.
Love the card. Thanks for the great work!
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Not shy about a breaking change, would rather get it right. I think I like your option 1, maybe a tweak:
FYI: I went with the follow tweak to better match the existing naming scheme: