Picture card: Display picture with most recent timestamp in filename

I have a network folder (shared over SMB and NFS) where my timelapse camera is syncing the pictures it takes to in realtime. The image files are named IMG_20130413_1745.png (for example).

Is there a way to have a lovelace card that loads the most recent picture in this network folder? Or should I somehow implement some separate system (outside of HA) where the latest image is also overwriting a separate “latestpicture.png” file and use that in the picture card?

1 Like