Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (43 sloc) 1.78 KB
# 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: