We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm working on a simple project with an industrial controller.
It uses some physical sensors to measure some physical values (voltage, current, etc.) and creates a log file (.csv) every hour, keeping the older files into its memory. Then I can go via ftp:// xxx.xxx.xxx.xxx into its memory and get those files.
What I would like to do is to put a web page on it, and show a plot of the csv recorded values.
I tried both using processing.js and p5.js, and, if I know the name of the file, it works (I've never made a web page before! :) ).
But, if I don't know the files names, I don't know how to open a file whose name is unknown (obviously).
Any idea how to know files names into a folder?
(the web page is in the same directory of the csv files, so I don't need to use absolute url path).
What I usually use with "standard" Processing doesn't work in this situation.
I just need to have a String variable that contains the name of the unknown file (or an array, if many files).
The file have this format: controller-name_YYYY_MM_DD_hh_mm.csv (and I can't change this :( )
Thanks to everyone