mqttwarn icon indicating copy to clipboard operation
mqttwarn copied to clipboard

[Thingspeak] Improve documentation

Open mdne opened this issue 9 years ago • 2 comments

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

mdne avatar May 18 '16 18:05 mdne

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

LaborEtArs avatar Feb 02 '20 16:02 LaborEtArs

A pull request to “unflatten” our documentation would be acceptable.

jpmens avatar Feb 02 '20 21:02 jpmens