-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.toml
60 lines (48 loc) · 1.38 KB
/
example.toml
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
[modbus]
serial_if="/dev/ttyUSB0"
serial_if_baud=19200
serial_if_byte=8
serial_if_par="E"
serial_if_stop=1
slave_addr=1
timeout=0.6
[db]
db = "<db_adapter>" # "postgresql" | "mysql" | "sqlite" | "postgrest"
[db.postgresql]
database = "<db>"
user = "<user>"
password = "<pw>"
host = "<host>"
port = 0
[db.mysql]
database = "<db>"
user = "<user>"
password = "<pw>"
host = "<host>"
port = 0
[db.sqlite]
database = ":memory:" # Pfad zu Datenbankdatei oder :memory:
[db.postgrest]
url = "<url>"
user = "<user>"
token = "<token>"
table = "<table>"
[mqtt]
broker = "<mqttBroker>"
port = "<mqtt Port>"
username = "<username>" # empty disables authentication
password = "<password>" # empty disables authentication
topic = "<topic>" # empty defaults to /smartmeter/
is_active = false # aktiv wenn true, inaktiv wenn false
[telegram_bot]
token = "<telegrambot_token>" # Token oder false, false ohne " " schreiben
[mess_cfg]
# Auswahl des verwendeten Models
# Verfügbar: DDS353B, SDM72DM, SDM230, SDM530, SDM630
device = "<modelname>"
#interval des messens in sekinden
messintervall = 120 # in Sekunden
################################
schnelles_messintervall = 1 # in Sekunden
dauer_schnelles_messintervall = 30 # in Sekunden
intervall_daten_senden = 30 # in Sekunden