forked from ChristianKuehnel/plantgateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plantgw.yaml
53 lines (43 loc) · 1.78 KB
/
plantgw.yaml
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
# Template for configuration file of the plant gateway
# copy this file to your home directory and rename it to ".plantgw.yaml" (starting with a ".").
# mqtt configuration, replace this with the configuration of your mqtt server
mqtt:
#url of your mqtt server, madatory
server: my-mqtt-server
#prefix of the topic where the sensor data will be published, mandatory
prefix: some/prefix/my/plants
#terminate topic with a trailing slash, optional as defaults to True
#trailing_slash: False
#port of the mqtt server, optional if using 8883
#port: 8883
#client_id to use with the mqtt server, optional as defaults to unique numeric identifier
#client_id: PlantGateway
#credentials for the mqtt server, optional if you do not use authentication
#user:
#password:
#path to ssl/tls ca file
#ca_cert: /etc/ssl/certs/<my ca file.pem>
#format for timestamp string using strftime(), optional as defaults to ISO8601 format
#timestamp_format: "%d/%m/%y %H:%M:%S"
# Select the bluetooth interface to be used.
# If this parameter is not defined, interface 0 will be used.
# 0 = /dev/hci0
# 1 = /dev/hci1
# ...
# interface: 0
# sensor configuration, replace this with the configuration of your sensors
sensors:
# bluetooth mac of the sensor, mandatory
- mac: 11:22:33:44:55:66
# alias to be used for the sensor, optional
alias: myplant
- mac: 22:33:44:55:66::77
alias: otherplant
# If the "fail_silent" flag is set, there will NOT be an error, if the data cannot be
# read from this sensor. This is useful, if you have some sensors that are really far
# away and may fail some times.
fail_silent:
# path where log file shall be stored, optional
#logfile: plantgw.log
# option for debug logging, optional
#debug: