File Import


 

File Import

Data Source is the place for adding new data into VDV. It supports numerous structure of data such as FTP, SFTP, Local or Network drive. Also allows for a single file or incremental files.

File Format

For each data file imported into VDV, there needs to be a File Format that matches the data file format. VDV can import almost any delimited text-based data file using the File Format editor.

To Access: Data Source → File Format

Before creating a new File Format, it is good practice to open the data file to be added in a Text Editor (Notepad++, for example) to better understand how the data file is structured.

Click the button in the top-right corner to create a new File Format.

A screenshot of a computerDescription automatically generated

Sensor-Based Data Files

Create a new File Format for Sensor-Based files by setting the ID Column to Yes and setting the ID Column Number to match the data file.

A screenshot of a computerDescription automatically generated

ID Name As Variable Prefix

Sensor-Based data files usually have multiple sensors, and each sensor will become a site in the VDV System. This will result in multiple sites with the same variable names. The ID Name As Variable Prefix option inserts the sensor id name as a prefix for all variables.

An example of this would be:

A file with two sensors

POINT,Timestamp,X,Y,Z

If the ID Name As Variable Prefix enabled will yield variable names:

and,

If the ID Name As Prefix is not enabled then,

Site: VDV01

and,

Site: VDV02

Replacement Values

Users can assign replacement values on the data imported through the Data Source. To assign replacement values, the user needs to click on the edit button next to the Replacement Values window, as seen below for both Regular and JSON format.

A screenshot of a computerDescription automatically generatedA screenshot of a computerDescription automatically generated

The Replacement value window will open up, allowing the user to add, remove or view the replacement values already assigned.

A screenshot of a computerDescription automatically generated

Add, edit or remove the Replacement Values and Confirm the change.

File Locations

A File Location is a predefined location where data can be imported from. It can be FTP, SFTP, Local network, or a local server.

To Access: Data Source → File Location.

Click the button in the top-right corner to create a new File Location.

Replacement Values

Users can assign replacement values on the data imported through the Data Source. The user needs to click on the edit button next to the Replacement Values window to assign replacement values.

A screenshot of a computerDescription automatically generated

The Replacement value overview window will open, allowing the user to add, remove or view the replacement values once already.

A screenshot of a computerDescription automatically generated

Select the edit button for the Replacement Value window to edit the replacement values.

A screenshot of a computerDescription automatically generated

Add, edit or remove the Replacement Values and Confirm the change.

Local Directory

Adding a local directory allows users to add new Data Sources from the web to the server running VDV. This can be used to add a directory where data is being collected.

If data is stored on an FTP on the same network as VDV Server, adding a Local Directory with \\FTPServerName as the path is recommended instead of setting up an FTP location to improve speed.

A screenshot of a computerDescription automatically generated

System Directories that are not allowed.
C: or any root
C:\Windows
C:\Program Files
C:\Program Files (x86)
C:\ProgramData
C:\Windows.old
C:\Users

FTP Location

FTP Location allows users to import directly from FTP Servers. This provides data import from any external FTP/SFTP Server.

A screenshot of a computerDescription automatically generated

Please note that the File Structure for FTP servers has to be in UNIX format (not MS-DOS ) see: How to configure FTP directory browsing

File Import

To Access: Data Source → File Import.

File Format and File Location must be configured before adding a new File.

Click the button in the top-right corner to create a new File to VDV.

Data files can either be Incremental or Single, where all data is appended to the same file.

Single File

A screenshot of a computerDescription automatically generated

Incremental Files

A screenshot of a computerDescription automatically generated

Override Data. If selected, VDV will import all data regardless of whether it has been imported before. This is handy if corrected data is sent afterward or when importing forecast data that is constantly updated.

Sensor-Based Data

VDV supports Sensor Based data files; the user must first, within File Format (explained above), make sure that the Sensor ID number is correct for the import file.

Adding Sensor-Based File

Adding Sensor-Based File via File Import is identical to any other file. Begin by filling out the default information as with any import in VDV. If the user selects a Sensor-Based Format, the File Structure will automatically become Incremental since all Sensor-Based Files are required to be incremental.

A screenshot of a computerDescription automatically generated

Select the File for import and click Next

A screenshot of a computerDescription automatically generated

Confirm that the File has been parsed correctly

A screenshot of a computerDescription automatically generated

The Select variable name and unit window will be next. The only difference here is that changing a variable name will change the variable name in all the sites created from a single file.

If the File Format has the ID Name As Prefix option enabled, changing the variable name will not affect it.

A screenshot of a computerDescription automatically generated

The final step displays an overview of the import you are about to create. If the File Format has the ID Name As Prefix option enabled, the Alias Name will list the #ID#_name. Otherwise, it will only be the variable name selected in the previous step.

The VDV System will begin importing data, and if a new sensor appears in the data file, VDV will automatically create a new site and import the data.

Deleting Sensor Based Data File

A screenshot of a computerDescription automatically generated

When deleting Sensor Data File, a popup will open with information about the File Import and all the sites it will remove from The VDV System

The regular Alarm feature has not been implemented yet for Sensor-based data, so the user needs to set up Custom Alarm or Bulk Alarm.

Update Header

If the file linked to a Data Source has its headers changed, an admin must update the headers of the file.

The changes can be any of the following:

To navigate to the Update Header, go to Data Source → File Import and select the ... to open the Update header menu.

A screenshot of a computerDescription automatically generated

A Side by side comparison of the Current Configuration and the Latest Header will appear in the Update header menu.

A screenshot of a computer screenDescription automatically generated

Here the Humidity column was removed, "Wind" was changed to "Wind Speed", and a new column, "precipitation", was added.

To link the Wind Speed to the old Wind column, click the link symbol and select the "#4 - Wind" column.

After linking all renamed columns, press Next.

Select a unit for all new headers and confirm that added and removed headers are correct.

A screenshot of a computerDescription automatically generated

Click Save, and the updates to the headers will be made.