Question regarding data output
Posted: Mon Jan 01, 2024 5:32 pm
Hello,
I have an event which outputs a line of SQL "on every started minute", with a time stamp defined using the internal template - eg:
values ('[UYYYY]-[UMM]-[UDD] [Uhh]:[Umm]:00',...etc
I also have an event which exports data (via a template I created) at minute resolution to a csv file every hour, to produce a text based log of some of the quantities in the database.
I have noticed that the SQL output, and the data exported, appear to differ by 1-minute, so for example just now the temperature (as defined by [th0temp-avg1] in the SQL, or [th0temp-avg] in the data export at minute resolution) just now changed from 9.7 to 9.8 Celsius on the obs timestamped 14:57:00 and 14:58:00 in the SQL database, but in the text file this change occurs between the 14:56:00 and 14:57:00 lines in the exported csv.
If anyone can shed any light on this discrepancy I'd be most grateful!
Many thanks
I have an event which outputs a line of SQL "on every started minute", with a time stamp defined using the internal template - eg:
values ('[UYYYY]-[UMM]-[UDD] [Uhh]:[Umm]:00',...etc
I also have an event which exports data (via a template I created) at minute resolution to a csv file every hour, to produce a text based log of some of the quantities in the database.
I have noticed that the SQL output, and the data exported, appear to differ by 1-minute, so for example just now the temperature (as defined by [th0temp-avg1] in the SQL, or [th0temp-avg] in the data export at minute resolution) just now changed from 9.7 to 9.8 Celsius on the obs timestamped 14:57:00 and 14:58:00 in the SQL database, but in the text file this change occurs between the 14:56:00 and 14:57:00 lines in the exported csv.
If anyone can shed any light on this discrepancy I'd be most grateful!
Many thanks