'ThingsBoard save an array sent from Python inside a JSON
I've been trying for days to understand if ThingsBoard (TB) is capable of manipulating arrays. So far, I found out that one can not simply send an array from Python to a Device in TB directly. However, it is possible to send it if it is previously packed inside a JSON with an appropriate JSON key.
To my knowledge, the array can then be accessed through a function inside a RuleEngine which would parse the incoming data.
Before I try to write this function, I would like to know if the RuleEngine will require me to save the array value by value in the database, with each value having a different name or timestamp, or can I save the array directly inside one DataPoint, with one name and one timestamp for the entire array.
The array represents a 48h temperature prediction (calculated in Python), which I would like to update every hour while saving every previously predicted array. I am using requests library with HTTP API in TB.
Thank you in advance for your reply!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
