forked from Hofei90/smartmeter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smartmeter_cfg_vorlage.toml
49 lines (39 loc) · 1011 Bytes
/
smartmeter_cfg_vorlage.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
[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>"
[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>"
messintervall = 10 # in Sekunden
schnelles_messintervall = 1 # in Sekunden
dauer_schnelles_messintervall = 30 # in Sekunden
intervall_daten_senden = 30 # in Sekunden