-
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathconfig-example.py
More file actions
70 lines (62 loc) · 1.86 KB
/
Copy pathconfig-example.py
File metadata and controls
70 lines (62 loc) · 1.86 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
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
62
63
64
65
66
67
68
69
70
inverter_ip = "192.168.1.23"
# set inverter_port to 502 for ModbusTCP,
# If you have a WiNet-S dongle set to 8082 to use HTTP requests
inverter_port = 502
# Slave Defaults
# Sungrow: 0x01
# SMA: 3
slave = 0x01
model = "sungrow-sh5k"
timeout = 3
scan_interval = 10
# optional
# prometheus = True
# prometheus_port = 8000
# Optional:
influxdb_ip = "192.168.1.128"
influxdb_port = 8086
influxdb_user = "user"
influxdb_password = "password"
influxdb_database = "inverter"
influxdb_ssl = True
influxdb_verify_ssl = False
# Optional
# mqtt_server = "192.168.1.128"
# mqtt_port = 1883
# mqtt_topic = "inverter/stats"
# mqtt_username = "user"
# mqtt_password = "password"
# Optional
# pvoutput_api = "api_key"
# pvoutput_sid = "system_id"
# 60 for regular accounts, 300 for donation accounts
# pvoutput_rate_limit = 60
# This sends the c1 option to PVOutput. See here for details https://pvoutput.org/help/api_specification.html#cumulative-energy
# pvoutput_cumulative = True
# This only sends the v2 and v4 (Power) values to PVOutput. See here for details https://pvoutput.org/help/api_specification.html#power-and-energy-calculation
# pvoutput_power_only = False
# Optional: save telemetry to a json file
# json_file = "telemetry.json"
# This option, when set to True, writes new lines to the end of the current file. When set to False you get a single (latest) line per file
# append_log = False
# Logging config. If not specified, default is being used.
logger_config = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"default": {
"format": "[%(asctime)s] %(levelname)s - %(message)s",
},
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "default",
"level": "INFO",
},
},
"root": {
"handlers": ["console"],
"level": "INFO",
},
}