Log Files - OilSlick/coffee_tree_monitor GitHub Wiki

There are two different log files created on the SD card:

  • error.txt
  • data.txt

Both files contain comma-separated values (CSV) and receive a header with each reset (reboot). The header for data.txt is as follows:

Date Time,Lux,Temp.C,Pressure.hPa

The header for error.txt is as follows:

Date Time,Error

When troubleshooting, the header in the log indicates the setup loop has run, i.e. the Feather was reset or rebooted.

Entries in both logs are date-and-time-stamped in the same format (YYYY/MM/DD hh:mm). The time is in 24h format and (unfortunately) single digits for hour and minute values of 0-9. i.e. 09:09 will be written as 9:9 in the log.

Values are logged to data.txt every 60 seconds.

If a blank and properly-formatted SD card is inserted, the above files will be created automatically.