This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== GetFieldLog ==== Get the value of a field from the log data === Description === <code>GetFieldLog( fieldno, seconds )</code> <code>Float:GetFieldLog( fieldno, seconds, FLOAT )</code> Fetches the value of a field from the log data buffer //Available in firmware 21060101 or newer// === Parameters === | ''fieldno'' | Which field to fetch | | ''seconds'' | How far back in time the data should come from | | FLOAT | By default, this function returns an integer value. Add 'FLOAT' as the last parameter to return a floating point value | === Return value === The value of the field from the log data. The log buffers will be searched for the closest timestamp saved. If the field is set to log faster than the default 10 minutes, this fuction automatically selects the 'fastlog' data. === Example usage === <code javascript> new x; new Float:f; x = GetFieldLog(4, 300); f = Float:GetFieldLog(4, 3600, FLOAT); // x now holds the value of field 4 from 5 minutes ago, rounded to the nearest integer. // f holds the value from field 4 from 1h ago as a float. </code> ezeio2/scriptref/getfieldlog.txt Last modified: 2022-05-17 14:41by andreh Log In