How to post data directly to Thingspeak by adding keys to the JSON body

Hi
I just started to use the TTN and are trying to post the data to Thingspeak using the HTTP integration.

Is there any way i can add the two aditional keys to the JSON body as shown below e.g. by modifying the decoder function? It would also be nice if i could pick out part of the meta data like “snr” in the decoder function and add to my Thingspeak update format.

as far as i can see the data is attached under the “payload_fields”: key which the Thingspeak wont understand.

{“app_id”:“ucn_raspi16”,
“dev_id”:“001”,
‘write_api_key’: ‘xxxxxxxxxxxxxxxx’,
‘updates’: [{‘created_at’: ‘2019-2-35 15:32:48’, ‘field1’: 36, ‘field2’: 16.71},
{‘created_at’: ‘2019-2-35 15:32:49’, ‘field1’: 36, ‘field2’: 22.24},
{‘created_at’: ‘2019-2-35 15:32:53’, ‘field1’: 36, ‘field2’: 16.15}],
…}

-Niels

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.