question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow `image` view to use a HA camera snapshot

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
dermotduffycommented, Feb 12, 2022

Not shy about a breaking change, would rather get it right. I think I like your option 1, maybe a tweak:

image:
  src: [camera|screensaver|url]
  url: <string>
  refresh_seconds: <int>
0reactions
dermotduffycommented, Feb 13, 2022

FYI: I went with the follow tweak to better match the existing naming scheme:

image:
  mode: [camera|screensaver|url]
  url: <string>
  refresh_seconds: <int>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Send camera snapshot notification on motion
This blueprint will send a snapshot from a camera to your phone when motion is detected. Blueprint Click the badge to import this...
Read more >
HA: Camera Snapshots - Domoticaworld.com
Take snapshot 2. Store snapshot 3. Copy to archive location. Let's first think about what should trigger the creation of a camera snapshot....
Read more >
Using http snapshot image · Issue #102 · jakowenko/double-take
I use Frigate and I have the detect role there using a low-res substream of my doorbell camera. It works great for person...
Read more >
Doorbell and Camera TV Notifications (USING HOME ...
In todays video I am going to show you how to display images from you camera and doorbell on your tv using Home...
Read more >
How to Record Security Camera Snapshots to a FTP Server
IP Security cameras allow digital transmission of video over the ... how to use the FTP upload method to transmit still snapshots to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found