I am not good at programming.
What I’d like to achieve is to send camera image to phone notification.
I have set it up to make Hikvision camera save line crossing image to \config\www directory. The tricky thing is each image has different name like ipAddress_LingCrossing_timestamp.jpg
I could use below shell command to get the image file name for the notification.
basename $(ls -t1 /config/www | head -n1)
But how to set the image url for the Notification? I can make it work by setting url to a fixed image name. But for this kind of dynamic one, I have no idea.
Could anyone help?
Thank you very much in advance.