TOA5

Recommended Format


TOA5 is a comma separated format1 with a 4-line header containing metadata about the datalogger and the readings.

LoggerNet Configuration

Output File Options

  • Include Timestamp
  • Include Record Number
  • Midnight is 2400

Structure

TOA5 Format
"TOA5" Station Name Datalogger Model Serial Number OS Version DLD Name DLD Sig Table Name
Field Names
Units
Processing Method 2
Record
Record
...

Example File

"TOA5","Ridge Station","CR1000X","12345","CR1000X.Std.03.02","CPU:ridge_station.CR1X","12345","Ridge_Table"
"TIMESTAMP","RECORD","panel_temp","battery_voltage","battery_voltage_Min"
"TS","RN","°C","volts","volts"
"","","Smp","Smp","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
"2020-03-08 19:45:00",0,26.86,12.94,12.94
...

Usage

<?php

use Hyyppa\Toxx\Toxx;

$dat = Toxx::load('toa5_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
}

  1. 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. 

  2. See available processing methods here: LoggerNet Product Manual - B.1.3.1 Field Name Suffixes 


Last update: January 6, 2021