I want to populate the dashboard dropdown node with a list of whatever .jpg files are present in a folder which is located on a usb stick pugged into my pi, when I open the dropdown in the dashboard I want to be able to choose one of the file names in the drop down list and have it sent to the output of the dropdown node.
I can get a list of files using the exec node with cmd ls /media/usbPEN/nas/snap/
result is a string as see picture below...
The problem I have is how do I populate the Value / Label field for each file name into the dropdown node.
Help would be appreciated.