-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
35 lines (26 loc) · 1.24 KB
/
Copy pathconfig.py
File metadata and controls
35 lines (26 loc) · 1.24 KB
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
# Voorbeeldconfiguratie voor Fronius_manager.
# Kopieer dit bestand naar config.py en pas de paden aan naar jouw situatie.
from pathlib import Path
URL_PANELEN = "192.168.2.5" # Aanpassen naar eigen IP-adres voor omvormer
# --- Basisdirectory --------------------------------------------------------
# Alle overige paden zijn hiervan afgeleid. Dit is de enige regel die je
# hoeft aan te passen als je het project ergens anders installeert.
BASE_DIR = Path(__file__).resolve().parent
# --- Bestandslocaties ---------------------------------------------------
SHARE_DIR = BASE_DIR / "share"
LOG_DIR = BASE_DIR / "logs"
SYSTEM_LOG = LOG_DIR / "system.log"
READER_DATA_JSON = SHARE_DIR / "reader_data.json"
SETPOINTS_JSON = SHARE_DIR / "setpoints.json"
PV_VALUES_JSON = SHARE_DIR / "pv_values.json"
LOG_MAX_SIZE = 1_000_000 # 1 MB, per logbestand
"""
Minimale output vereist om de inverter niet uit te laten vallen
Afhankelijk van het type inverter kan dit worden verlaagd tot 5%
"""
MIN_LIMIT = 10 # minimale output vereist om de inverter niet uit te laten vallen
# Log-niveau per service. Onbekende namen vallen terug op WARNING
# (zie logger_setup.get_logger).
LOG_LEVELS = {
"PV_reader": "WARNING",
}