TOACI1
TOACI1 is a comma separated format1 with a 2-line header containing metadata that defines the station name, table name, and field names.
LoggerNet Configuration
Structure
TOACI1 Format | |||||||
---|---|---|---|---|---|---|---|
"TOACI1" | Station Name | Table Name | |||||
Field Names | |||||||
Record | |||||||
Record | |||||||
... |
Example File
"TOACI1","Ridge Station","Ridge_Table"
"TMSTAMP","RECNBR","panel_temp","battery_voltage","battery_voltage_Min"
"2020-03-08 19:35:00",0,26.86,12.94,12.94
"2020-03-08 19:40:00",0,26.86,12.94,12.94
Usage
<?php
use Hyyppa\Toxx\Toxx;
$dat = Toxx::load('toaci1_file.dat');
$json = $dat->first()->json();
$json =
{
"TIMESTAMP": "2020-03-08 19:35:00",
"RECORD": 0,
"panel_temp": 26.86,
"battery_voltage": 12.94,
"battery_voltage_Min": 12.94,
"SECONDS": 952544100
}
-
Though comma separated, the file is not valid rfc4180 compliant csv as the first line of header does not contain the same number of columns as the rest of the csv file. ↩
Last update: January 6, 2021