-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
config-example.py
50 lines (43 loc) · 1.39 KB
/
config-example.py
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
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:
dweepy_uuid = "random-uuid"
# 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