Go to the documentation of this file.
42 #ifdef EMAIL_NOTIFICATION
72 return String(
"Overview (2)");
LowLeakDetection * lowLeakDetection
HighLeakDetection * highLeakDetection
#define DAILY_OVERVIEW_INIT_HOUR
hour when the daily overview email will be sent off
int getConsumptionCount() const
Returns the current number of pulses detected so far within the monitoring period.
float maxLowLeakPercentage
max [%] low-water leak detection within the monitoring period (extreme)
void reset()
Resets all the variables at the end of the day.
TotalLeakDetection * totalLeakDetection
instance of a total-water leak detection algorithm
Consumption * dailyConsumption
instance of Consumption (daily water consumption)
static DateTime * getInstance()
Returns the instance of the class.
TotalLeakDetection * totalLeakDetection
LowLeakDetection * lowLeakDetection
instance of a low-water leak detection algorithm
Consumption * monthlyConsumption
instance of Consumption (monthly water consumption)
#define PULSE_TO_LITER(p)
Converts pulses to liters.
float getPercentLeakDetected() const
Returns percentage information about how close the algorithm is from being reset.
byte sendEmail(String subject, String data)
Sends an e-mail off to the smtp2go server.
void update() override
Updates the class.
RTCDateTime getDateTime() const
Returns the current datatime.
RTCDateTime initialDateTime
instance of RTCDateTime (real-time module)
float maxHighLeakPercentage
max [%] high-water leak detection within the monitoring period (extreme)
float maxTotalLeakPercentage
max [%] total-water leak detection within the monitoring period (extreme)
DailyOverview(HighLeakDetection *highLeakDetection, LowLeakDetection *lowLeakDetection, TotalLeakDetection *totalLeakDetection, Consumption *dailyConsumption, Consumption *monthlyConsumption)
Constructor of the class.
#define DAILY_OVERVIEW_INIT_MIN
minute when the daily overview email will be sent off
float getPercentLeakDetected() const
Returns percentage information about how close the algorithm is from being reset.
@ DAILY_OVERVIEW
daily overview about the system
HighLeakDetection * highLeakDetection
instance of a high-water leak detection algorithm
const String getRow(int row) const override
Returns the content of the row given as a parameter.
static EmailSender * getInstance()
Returns the instance of the class.