ezeio2:expref:fh

Return the field value from the log data, from seconds ago.

Description

fh( fieldno, seconds )

This function returns the logged value of a given field, from seconds ago. If the field is configured for faster logging than the default 10 minutes, the fh function will attempt to fetch the data from the 'fast log' buffer.

If no data can be found, the function will return 0.

This function is available in firmware 21060101 and newer

Parameters

fieldno Field number (1 through 90)
seconds Number of seconds back in time from where the data is fetched

Return value

Returns the value from the log buffer.

If no data can be found, the function returns 0.

Example usage

fh(15, 3600)

The above returns the data from field 15, 1h ago

  • ezeio2/expref/fh.txt
  • Last modified: 2021-06-03 16:05
  • by andreh