rasProject_01 / weSweetHome
R. 240
process control / RasPi software by weinert-automation
|
Day start values. More...
#include <sweetHome.h>
Data Fields | |
int | dayInYear |
Day in year. | |
__time_t | localMidnight |
Actual local midnight. | |
float | meterValDay [2][2] |
Start day meter values. More... | |
uint32_t | stmpSDay |
Absolute time stamp for the day's start values. More... | |
__time_t | utcMidnight |
Actual (local) UTC midnight. | |
uint8_t | valQual |
Quality of the values. More... | |
Day start values.
This structure combines mainly meter reading values for import and export work (cf. makros Wimp, Wexp, PL1 etc.) to be put in / got from a binary daily retain file.
Attention: Variables of this type dayStrtVal_t are kept in shared memory by several programs. Changing order or size for sake of one program almost certainly will spoil the others.
uint32_t stmpSDay |
Absolute time stamp for the day's start values.
This stamp marks the import and export work values of a successful meters reading very early in the current day. If a early day reading was neither taken nor read from retained values the application would put the first successful reading after program start here.
0 marks no values taken so far.
float meterValDay[2][2] |
Start day meter values.
This array contains for every meter the import and export work as quadReg_t.f[0] and [1] respectively taken at dayStrtVal_t.stmpSDay.
uint8_t valQual |
Quality of the values.
0: invalid
1: taken any time of day at program start
2: taken at predefined (fixed) time at change of day
Note: Even when having high quality values (for consecutive days), consider days may have 23 or 25 h in zone time, also.