-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmqttsubscribe.example.conf
130 lines (106 loc) · 4.89 KB
/
mqttsubscribe.example.conf
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#
# This is an example configuration for MQTTSubscribe
# It was created on 2024-12-31 at 10:07:30 with MQTTSubscribe version 3.0.0
#
# Replace '[MQTTSubscribe]' with '[MQTTSubscribeService]' or '[MQTTSubscribeDriver]'
# For additional information see, https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Configuring#the-mqttsubscribedrivermqttsubscribesection-section
[MQTTSubscribe]
# The driver to use.
# Only used by the driver.
driver = user.MQTTSubscribe
# Turn the service on and off.
# Default is true.
# Only used by the service.
enable = false
# Controls if validation errors raise an exception (stopping WeeWX from starting) or only logged.
# Default is false
stop_on_validation_errors = true
# The binding, loop or archive.
# Default is loop.
# Only used by the service.
binding = loop
# The MQTT server.
# Default is localhost.
host = localhost
# Controls the MQTT logging.
# Default is false.
log = false
# password for broker authentication.
# Default is None.
password = None
# The port to connect to.
# Default is 1883.
port = 1883
# username for broker authentication.
# Default is None.
username = None
# The TLS options that are passed to tls_set method of the MQTT client.
# For additional information see, https://eclipse.org/paho/clients/python/docs/strptime-format-codes
[[tls]]
# Turn tls on and off.
# Default is true.
enable = false
# Path to the Certificate Authority certificate files that are to be treated as trusted by this client.
ca_certs = ""
# The PEM encoded client certificate and private keys.
# Default is None
certfile = None
# The certificate requirements that the client imposes on the broker.
# Valid values: none, optional, required
# Default is required,
certs_required = required
# The encryption ciphers that are allowable for this connection. Specify None to use the defaults
# Default is None.
ciphers = None
# The private keys.
# Default is None
keyfile = None
# The version of the SSL/TLS protocol to be used.
# Valid values: sslv2, sslv23, sslv3, tls, tlsv1, tlsv11, tlsv12.
# Default is tlsv12.
tls_version = tlsv12
# For additional information see, https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Configuring#the-topic-name-sections
[[topics]]
# Units for MQTT payloads without unit value.
# Valid values: US, METRIC, METRICWX.
# For more information see, http://weewx.com/docs/customizing.htm#units
# Default is US.
unit_system = US
# The first topic to subscribe to
# For additional information see, https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Configuring#the-topic-name-sections
[[[REPLACE_ME]]]
# When set to false, the topic is not subscribed to.
# Valid values: True, False
# Default is True
subscribe = True
# Sets the default value for all fields in this topic.
# Setting the value to 'true' "opts out" and the desired fields will need to set 'ignore = true'
# Valid values: True, False.
# Default is False.
ignore = False
# Configuration information about the MQTT message format for this topic
[[[[message]]]]
# The format of the MQTT payload.
# Currently support: individual, json, keyword.
# Must be specified.
type = REPLACE_ME
# The incoming field name from MQTT.
# For additional information see, https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Configuring#the-field-name-sections
# Use this template for any fields that need to be configured.
# If no fields need to be configured, remove this section.
[[[[REPLACE_ME]]]]
# True if the incoming field should not be processed into WeeWX.
# Valid values: True, False.
# Default is derived from the 'ignore' option at the topic level.
ignore = False
# True if the incoming data is cumulative.
# Valid values: True, False.
# Default is False.
contains_total = False
# The WeeWX name.
# Default is the name from MQTT.
name = REPLACE_ME
# The second topic to subscribe to
# Use this and the above topic section as a template to configure additional topics.
# If no additional topics are needed, remove this section
[[[REPLACE_ME_TOO]]]