forked from Eba-M/E3DC-Control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathE3DC_CONF.h
61 lines (53 loc) · 2.8 KB
/
E3DC_CONF.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// E3DC_CONF.h
// RscpExcample
//
// Created by Eberhard Mayer on 16.08.18.
// Copyright © 2018 Eberhard Mayer. All rights reserved.
//
#define VERSION "2023.02.01.P" //Wallbox branch
#ifndef E3DC_CONF_h
#define E3DC_CONF_h
#endif /* E3DC_CONF_h */
// Konfigurationsdatei
#define CONF_FILE "e3dc.config.txt"
#define OPENWB "localhost"
#define WURZELZAEHLER 0; // 0 = interner Zähler 6 = externer Zähler
#define LADESCHWELLE 50; // bis zur dieser Schwelle wird geladen bevor die Regelung beginnt
#define LADEENDE 80; // Zielwert bis Ende Regelung, dannach wird Ladung auf Landeende2 weiter geregelt und dann ab SOMMERLADEENDE freigegeben
#define LADEENDE2 93;
#define UNTERERLADEKORRIDOR 900 // die Ladeleistung soll zwischen dem unteren und
#define OBERERLADEKORRIDOR 1500 // oberere Ladeleistung liegen, jedoch
#define MINIMUMLADELEISTUNG 500 // immer > MINIMUMLADELEISTUNG
#define MAXIMUMLADELEISTUNG 3000 // maximale Ladeleistung
#define WRLEISTUNG 12000 // maximale Ladeleistung
#define SPEICHERGROESSE 13.8 // nutzbare Kapazität des S10 Speichers
#define WINTERMINIMUM 11.5 // Uhrzeit (als Dezimalwert) bis zu dieser Uhrzeit wird das Laden überwacht
#define SOMMERMAXIMUM 14.5 // alle Zeiten in GMT = MEZ Winterzeit - 1
#define SOMMERLADEENDE 18.5 // alle Zeiten in GMT = MEZ Winterzeit - 1
#define EINSPEISELIMIT 6.9 // maximal erlaubte Einspeiseleistung in kW
//const int cLadeschwelle = LADESCHWELLE; // Minimum Lade-Schwelle wird bevorzugt der E3DC-Speicher geladen
//const int cLadeende = LADEENDE; // Lade-Schwelle des überwachten Ladens
typedef struct {
char server_ip[20];
uint32_t server_port;
char e3dc_user[128];
char e3dc_password[128];
char aes_password[128];
char logfile[128],conffile[128];
char openWBhost[128];
bool wallbox,ext1,ext2,ext3,ext7,debug,htsat,htsun,openWB;
uint8_t wurzelzaehler,ladeschwelle, ladeende,ladeende2, unload;
int32_t ht, untererLadekorridor, obererLadekorridor, minimumLadeleistung, maximumLadeleistung, wrleistung,peakshave,peakshsoc,wbmode,wbminlade;
float_t speichergroesse,winterminimum, sommermaximum,sommerladeende, einspeiselimit,
hton, htoff, htsockel;
bool prognose;
float_t latitude; //latitude of location, -90 (south) … 90 (north)
float_t longitude; //longitude of location, -180 (west) … 180 (east)
int dach_neigung; //plane declination, 0 (horizontal) … 90 (vertical)
int dach_richtung; //plane azimuth, -180 … 180 (-180 = north, -90 = east, 0 = south, 90 = west, 180 = north)
float_t wirkungsgrad; //1.0 wenn Werte von https://api.forecast.solar der Anlagenleistung entsprechen //sind scheinbar sehr optimistisch
float_t anlagen_leistung; //installed modules power in kilo watt
int32_t grundbedarf;
bool display_off;
}e3dc_config_t;