mqttwarn
mqttwarn copied to clipboard
[Thingspeak] Improve documentation
hello. I'm not sure that I understand the example of the thingspeak plugin. Could you please give me a working example for configuring mqttwarn.ini. I have three topics
/data/one /data/two /data/three
Each topic has int or float payload. Following the manual, I should write something like this
[config:thingspeak]
targets = {
'field1' : [ 'API_KEY', 'field1'],
'field2' : [ 'API_KEY', 'field2']
}
but what exactly means these fields? and what diff between 'field1' and [...., 'field1']
thanks
The documentation is quite flat here... I found following setup that works:
In file mqttwarn.ini:
launch = ..., thingspeak ...
[config:thingspeak]
targets = {
'temp_1' : ['ABCD_API_KEY_EFGH', 'field1']
}
[erdgeschoss/wohnzimmer/temperatur]
targets = thingspeak:temp_1, log:info
The MQTT message as follows:
topic: erdgeschoss/wohnzimmer/temperatur
message: 22.5
A pull request to “unflatten” our documentation would be acceptable.