FTP Node
FTP Node
Article summary
Did you find this summary helpful?
Thank you for your feedback
FTP Node
The FTP node enables simple, rapid transmission of a file across a network supporting TCP/IP. Generally, this network will be the Internet or a local network. It extracts files from an FTP folder and parses them as JSON payloads for onward processing.
Output payloads will contain keys from file header columns. Each row in the file will be sent as one payload.
Adding an FTP node to your workflow
- First, select your desired solution and navigate to Rayven Workflow.
- Select ‘Inputs’ from the left-hand panel.
- Find the FTP node and drag it onto the canvas.
- Provide input to the FTP node by connecting it to another node.
- Double click on the FTP node to open its configuration window.
Configuring your FTP node
- Give your node a name. Choose something simple that clearly explains its purpose. You must pick a name that has three or more characters.
- If Use Device Address is left unchecked, enter the FTP address.
- Enter the username and password needed to access the FTP folder.
- Select the File Format from the drop-down menu:
- JSON,
- XML,
- String,
- CSV,
- Bulk compressed XML Zipped,
- Bulk compressed CSV,
- JSON Array.
- Select the method for encoding the file from the drop-down menu:
- UTF-8,
- UTF-7,
- UTF-16 Little Endian,
- UTF-16 Big Endian,
- UTF-32,
- ASCII (7 bit).
- Under 'Activate by Filter Device', input the relevant device filters. See Section 3.3: Device Filters for more information.
- It's possible to add a delay between each device triggered in the node using Interval Between Devices. The measurement is milliseconds.
- You can add a delay between downloading each file under Interval Between File Downloads. The measurement is minutes.
- Define the start time (in UTC) for your node. Once set, your node will begin downloading files from that time at the interval specified.
- Alternatively, select a time for the node to start downloading files.
- Specify the Download Start Time Format if you have entered a Download Start Time.
- Enter the time zone for the Download Start Time.
- Selecting Skip if File Same as Previous will ensure that if two files exist with the same name the node will take the last file saved.
Advanced features
- Checking Use Device Address will ensure the node uses the preset device IP or URL as the FTP server address. You can configure these for individual devices under device management. For more information, see Section 3.3.
- If 'Use Device Address is unchecked, you can 'Call FTP Address for Each Device'. When checked, your node will call the IP or URL set in the node for each device. If not checked, the node will only call the address once.
- Under 'Payload File Field Name', you can enter a variable name if this is how your filename is stored.
- 'Remove File Name Extension' will remove the extension added to the JSON when taking the value of the Data Field Name For File Name. For example, 'file.txt' would be changed to 'file'.
- Entering a number under Remove First N Lines will remove the first lines in the CSV until this number during the import.
- Enter the Device ID Field Name for the file, i.e. 'Device_ID' or 'Device_Name'.
- Filter Files by entering specific text. The Rayven FTP Node supports wildcards - use a * at the start or end of a name to denote a file ending or starting with text (e.g. *filename, filename*, *filename*).
- Run Server Script will change to drop-down only with projects running a dedicated script. Dedicated scripts are custom logic defining how to handle the files on the FTP.
- Check Use Secure FTP if you are using the Secure File Transfer Protocol method.
Configuring Payload Date Settings
It's possible to define the field that holds the timestamp of the data. To do so:
- Enter the name of the date field as it arrives from your device.
- Define the date format of the data. For example, dd/MM/yyyy or HH:mm:ss. If the date format is 24 hours, this needs to be indicated using capital letters (e.g. HH/mm/ss).
- Choose the time zone for the device that is recording the data from the drop-down menu.
See Also: Adding devices
As of Release: 17.11.2021