pgielen wrote: ↑Monday 18 December 2023 13:12
The camera software is able to send FTP jpegs via FTP or email, but can not send a custom MQTT message or HTTP request.
IMO nothing exists. At least I did not found anything when I had to code this (& much more).
Just take care of a few traps:
-FTP server will show files during download as no file sync mechanism is in this old protocol, so you'll have issues between producer (server) & consumer (your service getting cam files) if not choosing a FTP server that can put a specific extension on part files to be able to filter those to only use full/downloaded image files only: proftpd under Linux allows this using it's hidden-store feature.
-The service that'll monitor cam(s) FTP may basically be an infinite loop that'll check for new files &, if any, process them with let's say an objective of 5s time loop to keep it reactive & being able to do the whole job far under this time slot.
I did such setup as a python service. But as this is linked to alarm setup (feeding virtual PIRs + weighting mechanism at the heart of my domoticz built alarm system to filer false positives), sending snapshots (+video at night or if not at home) in encrypted (something cam embedded mail client could not do) archives by mail (threaded, not to block the process loop under captures surges) + feeding a (python built) custom page with last cams image assemblies, changing Dahua video container (dav->mp4) for mobile compatibility etc, so that's a bit complex!
Done before Domoticz python plugins existence, that's not easy in-UI configuation (but YML files with a bit complex grammar considering features and even some cams config changes for day/night hours: Sensitivities increased at night for instance + mode enforced manually to avoid unwanted switches under lightning changes from external cameras, so this also include some cam APIs calls that are closely linked to those I use).
But all this processing is doable using python on a PI3B under 2s even under high captures surge (I have 3 cameras always on, front & back of my home + garage ; 2 others under my roof I only switch on when I suspect some weasels may seek for a new home or maternity there! So this can handle 5 cams), so your comparatively simple requirements are IMO OK.