camera snapshots are nice, easy to send via email or telegram. But how could I use snapshots in either Lovelace UI, or in custom URL?
If I save pictures in /config/www/camera-snapshots, I can access those via http://HA-address/local/camera-snapshots/[FILE NAME], which is not convenient for snapshots generated with capture time as part of name.
Basically I would like to be able to browse snapshots
So how could either
automatically add new snapshots to some lovelace card
generate file list of folder contents, which I could add as iFrame (with PHP that would be simple. With HTML seems not to be)
upload files to SMB (which is way harder than I thought it would be)
you could always generate 2 snapshots: one with a timestamp, one with “latest” instead of a timestamp.
The latest snapshot will always be overwritten with the latest snapshot and you can create a generic camera to pull the picture from that file…
For a gallery you probably need to point to a Web page that you would build yourself with some Web language script. I can’t think of a way to achieve it via HA but maybe someone else can?
That is my thought at the moment. I’m using Hass.io, and don’t know easy way to run PHP.
I’ll rsync files to NAS using another Raspberry, and use it as web front. But that 2 snapshot idea was good one, I have it in place and works nicely.