Plotting Sensor Data Sets

Plotting Sensor Data Sets

@Xavier Bernard

Hi,

I designed a LoRaWAN sensor that measures acceleration (X, Y, Z) for a given lapse of time (5s to 10s) with a sampling rate of 5ms. I need to send this data on the cloud to be analyzed and plotted.

Let’s only talk about X axis values. What I do is I split the data in chunks of 124 bytes and send these chunks via LoRa (DR2) through TTN to Tago.

The first thing I need to do is to wait for all transmissions to arrive (I send a termination transmission for that purpose) and recreate a single array with all the data on Tago. I am not sure how I can do that. Maybe append data in a bucket variable?

Second thing would be to plot it on a dashboard chart widget. How can I do that? There is no timestamp associated with the data points, so I would create a dummy array (1,2,3,4,5,…,N) for the horizontal axis of the chart.

Thanks!
Xavier