Configuring "Display Image" to Only Display the Newest File in a Folder
Posted: Tue Jan 08, 2019 4:52 pm
Hey Guys -
I'm trying to set up EventGhost to do something fairly simple, but having an issue getting it to do so. I have a webcam configured to automatically upload an image to a folder (local to EventGhost install) whenever it detects motion. It's configured to upload no more than 1 image every 10 seconds. I am trying to set up EventGhost to monitor that folder for new files and once one appears, display it on a monitor for 2 seconds.
I set up "Directory Watcher" and got it working correctly. I then added the "Display Image" macro and have been testing with it. My issue is that you seemingly have to configure it with a static filename. The only solutions I can see for this are:
Any suggestions would be appreciated - Thanks!
I'm trying to set up EventGhost to do something fairly simple, but having an issue getting it to do so. I have a webcam configured to automatically upload an image to a folder (local to EventGhost install) whenever it detects motion. It's configured to upload no more than 1 image every 10 seconds. I am trying to set up EventGhost to monitor that folder for new files and once one appears, display it on a monitor for 2 seconds.
I set up "Directory Watcher" and got it working correctly. I then added the "Display Image" macro and have been testing with it. My issue is that you seemingly have to configure it with a static filename. The only solutions I can see for this are:
- Finding a way to set new filename to variable when created in folder which could then be used in config of "Display Image"
- Configure EventGhost with or without external scripting so that when an image is uploaded, it is renamed to a static filename, displayed with "Display Image", then deleted
- Some alternate plugin or script
Any suggestions would be appreciated - Thanks!