rasProject_01 / weSweetHome  R. 146 2026-09-26
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
dayStrtVal_t Struct Reference

Day start values. More...

#include <sweetHome.h>

Data Fields

int dayInYear
 Day in year.
__time_t localMidnight
 Actual UTC midnight.
float meterValDay [2][2]
 Start day meter values.
int32_t stmpSDay
 Absolute time stamp for the day's start values.
__time_t utcMidnight
 Actual (local) UTC midnight.
__time_t utcSunrise
 Actual (local) UTC local sunrise.
__time_t utcSunset
 Actual (local) UTC local sunset.
uint8_t valQual
 Quality of the values.

Detailed Description

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.

Field Documentation

◆ stmpSDay

int32_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.

◆ meterValDay

float meterValDay[2][2]

Start day meter values.

This array contains for every meter the import and export work as dayStrtVal_t.meterValDay[slave].[0] and .[1] respectively taken at dayStrtVal_t.stmpSDay.

◆ valQual

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.

◆ dayInYear

int dayInYear

Day in year.

0 is January 1st.

◆ utcMidnight

__time_t utcMidnight

Actual (local) UTC midnight.

Actual (local) UTC midnight.

◆ localMidnight

__time_t localMidnight

Actual UTC midnight.

Actual local midnight.

◆ utcSunrise

__time_t utcSunrise

Actual (local) UTC local sunrise.

Actual local sunrise.

◆ utcSunset

__time_t utcSunset

Actual (local) UTC local sunset.

Actual local sunset.


The documentation for this struct was generated from the following file: