-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.sample.yml
49 lines (44 loc) · 2.2 KB
/
config.sample.yml
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
# MAC address to use as the gateway mac address
gw_mac: 00:00:00:00:00:00
# Whether to include all advertisements (true) or just those from RuuviTags (false)
all_advertisements: false
# HCI device index for the bluetooth adapter to use. 0 by default, which should correspond to the hci0 device
hci_index: 0
# Publish the data to MQTT in Ruuvi Gateway format
mqtt:
# Flag to enable or disable publishing the data to a MQTT server
enabled: false
# MQTT broker url, including scheme (tcp, ssl or ws), hostname or IP address, and port
broker_url: tcp://ip.or.hostname:1883
client_id: ruuvi-go-gateway
username: ruuvigogateway
password: ruuvipassword
# Topic prefix where to publish, in format <topic_prefix>/<mac>
topic_prefix: ruuvi
# Topic where to publish LWT "status messages" on connect/disconnect. Empty means disabled.
# The default value for this is <topic_prefix>/gw_status which matches the behavior of the physical Ruuvi Gateway
#lwt_topic: ""
# Payload that will be published to lwt_topic when ruuvi-go-gateway connects
lwt_online_payload: '{"state":"online"}'
# Payload that will be published to lwt_topic when ruuvi-go-gateway disconnects
lwt_offline_payload: '{"state":"offline"}'
# Publish the data by sending HTTP POSTs in Ruuvi Gateway format
http:
# Flag to enable or disable publishing the data to a MQTT server
enabled: false
# URL including scheme and hostname or ip, and optionally a port and a subpath
url: http://ip.or.hostname:8080/record
# Interval for sending measurements. Accepts values in go duration format ( https://pkg.go.dev/time#ParseDuration ), for example 1m30s
interval: 10s
username: ruuvigogateway
password: ruuvipassword
# Logging options for ruuvi-go-gateway itself
logging:
# Type can be either "structured", "json" or "simple"
type: simple
# Valid logging levels from most verbose to least verbose: trace, debug, info, warn, error, fatal, panic
level: info
# Include timestamp in the log line. Can be useful to turn off with certain logging systems which add their own timestamps
timestamps: true
# Whether to include the log caller in the logs. This will increase the size of logs but it helps in troubleshooting in some cases
with_caller: false