From 65363810195d8b90c962503ce62b34594537727f Mon Sep 17 00:00:00 2001 From: bohdan-s Date: Fri, 9 Dec 2022 15:30:07 +1100 Subject: [PATCH] Config Mapping --- config.yaml | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/config.yaml b/config.yaml index 03850dd..4037b1a 100644 --- a/config.yaml +++ b/config.yaml @@ -12,25 +12,28 @@ arch: init: false startup: application boot: auto +webui: http://[HOST]:[PORT:8080]/ services: - "mqtt:need" +ports: + 8080/tcp: 8080 options: - Inverter_host: "" - Inverter_port: 502 - Inverter_model: "" - Smart_meter: false - Connection: "Modbus" - Scan_level: "STANDARD" - Scan_interval: 30 - Scan_timeout: 5 - Log_level: "INFO" + host: 192.168.1.100 + timeout: 10 + scan_interval: 30 + connection: 'modbus' + smart_meter: True + use_local_time: False + log_console: 'INFO' + log_file: 'OFF' + level: 'STANDARD' schema: - Inverter_host: str - Inverter_port: port - Inverter_model: str - Smart_meter: bool - Connection: "list(Sungrow|Modbus|HTTP)" - Scan_level: "list(BASIC|STANDARD|DETAIL|ALL)" - Scan_interval: int(10,600) - Scan_timeout: int(3,60) - Log_level: "list(INFO|WARNING|ERROR|DEBUG)" + host: str + timeout: int(3,60)? + scan_interval: int(5,600)? + connection: "list(sungrow|modbus|HTTP)" + smart_meter: bool? + use_local_time: bool? + log_console: "list(OFF|INFO|WARNING|ERROR|DEBUG)"? + log_file: "list(OFF|INFO|WARNING|ERROR|DEBUG)"? + level: "list(BASIC|STANDARD|DETAIL|ALL)"? \ No newline at end of file