Logic Machine Forum
Data from FTP / CSV - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Data from FTP / CSV (/showthread.php?tid=3962)



Data from FTP / CSV - Krstfr2k - 29.03.2022

Hello!

Does anyone have a script for reading CSV data from a FTP server with a 10 minute interval?


RE: Data from FTP / CSV - admin - 30.03.2022

Similar to how HTTP requests are done:
Code:
ftp = require('socket.ftp')
data, err = ftp.get('ftp://user:password@host/path')

if data then
  log('ftp data', data)
else
  log('ftp error', err)
end