-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWechselrichterJSON.h
47 lines (37 loc) · 1.42 KB
/
WechselrichterJSON.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <QtGlobal>
#include <QObject>
#include <qjsondocument.h>
#include <qjsonobject.h>
#include <qjsonarray.h>
// WR DachN in Verabrbeitung aufnehmen (raus nehmen durch auskommentieren)
#define WRDACHN
// global flag memory for error messages
extern quint8 m_messageFlag;
class WechselrichterJSON : public QObject {
Q_OBJECT
public:
WechselrichterJSON();
~WechselrichterJSON();
void ReadWechselrichterJSON(void);
// getter functions
double getPVDachSActualPower(void);
double getPVDachNActualPower(void);
double getPVGaubeActualPower(void);
double getPVGarageActualPower(void);
double getPVGesamtErtrag(void);
double getPVDachNErtrag(void);
double getPVDachSErtrag(void);
double getPVGaubeErtrag(void);
double getPVGarageErtrag(void);
private:
double m_PVDachSActualPower = 0.0; // Momentanwert Dach Süd
double m_PVDachNActualPower = 0.0; // Momentanwert Dach Nord
double m_PVGaubeActualPower = 0.0; // Momentanwert Gaube
double m_PVGarageActualPower = 0.0; // Momentanwert Garage
double m_PVDachSErtrag = 0.0; // Gesamtertrag Dach Süd
double m_PVDachNErtrag = 0.0; // Gesamtertrag Dach Nord
double m_PVGaubeErtrag = 0.0; // Gesamtertrag Gaube
double m_PVGarageErtrag = 0.0; // Gesamtertrag Garage
double m_PVGesamtErtrag = 0.0; // Gesamtertrag Anlage insgesamt
};