forked from meltaxa/solariot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-example.py
45 lines (39 loc) · 974 Bytes
/
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
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
location = "Home"
# 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_measurement = "sma-10kw"
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
# Optional: save telemetry to a json file
#json_file = "telemetry.json"