Appendix D: SFTP and HTTPS Publication File Formats
CSV Publication
The following table provides the details of each row of the .csv file, with sample data:
Row |
Data in .csv file |
Description |
---|---|---|
1 |
|
This row contains the column headings for the information provided in row 2:
|
2 |
|
This row contains information about the Panel Server that produced the file, and the downstream device from which the measurements were sampled. |
3 |
– |
– |
4 |
|
This row contains the column headings for the topic IDs. A topic ID is a reference to the quantity being logged. The name given to a quantity may differ between devices and languages. Topic IDs are used to identify the quantity regardless of the device or language. Topic IDs are unique across the Panel Server. NOTE: The first 3 commas are used for layout purposes in
a spreadsheet application.
|
5 |
|
This row contains the topic IDs of the measurements logged. |
6 |
– |
– |
7 |
|
This row contains the column headings for the data logged in rows 8 and more:
From the fourth item onward, each measure is described by its name and unit (if known). |
8 and more |
|
These rows contain the logged data. |
JSON Publication
The following table provides an explanation of the .json file content, with example content taken from the example file to illustrate.
Data in json file | Description | Example |
---|---|---|
valueItemId |
Device name and measurement/event. The device name used in the .json file is an internal name. To get the correspondence between this name and the device name listed in the Panel Server, follow the procedure to export all logs. The diagnostic_topology.txt file in the exported logs lists device names and internal names. |
Io_block:7_iod_827_DO1denotes IO device number 7, and the record of the actions on Digital Input 1 |
timestamp |
Time reference of beginning of sampling period |
2023-03-28T08:13:00Z |
v |
Measurement/event |
Open |
t |
Time offset in ms to add to time reference |
120000 ms = 120 s = 2 min so sample taken at 08.13 + 2 min = 08.15 |
s |
Invalid measurement |
false |