Evitar que aparezcan varias lecturas cada hora (SOLUCIONADO)

Jaume Nin on 2 Aug 2021 (Edited on 5 Aug 2021)
Latest activity Edit by Jaume Nin on 5 Aug 2021

Buenas tardes. A ver tengo un problema que no se cómo solucionar. Tengo una estación méteo (Arduino) conectada a ThingSpeak y lo cierto es que funciona perfectamente, pero en los gráficos, tanto en el canal privado cómo en el público, me aparecen varias lecturas en una sola hora:

Como se puede observar, es muy mala cosa que en una sola hora aparezcan cuatro datos, algunas veces muy diferentes, ya que en una hora los valores reales pueden cambiar, con lo cual, no puedo hacerme una idea delas variaciones en 60 minutos. Esto ocurre con los datos de temperatura, humedad, presión y resto de gráficos.

Lo que quisiera conseguir, és que solo apareciera un solo dato por cada hora, durante las 24h del día. Es posible que únicamente imprima un punto y un dato a una sola hora en el gráfico? Cómo lo hago? Donde trasteo? Y con qué parámetros?

Agradeceré cualquier ayuda que me permita solucionar este tema.

Gracias por la atención y la ayuda.

Salu2 cordiales.

Christopher Stapels
Christopher Stapels on 4 Aug 2021

There are several ways that you can achieve what you wish in ThingSpeak. You can use the pencil icon in the upper right in of your chart on the blue bar. You can select an hourly timescale, average, median, or sum. Choosing timescale takes just the first value in the selected time period, the others are as their name implies. You can also create a custom MATLAB analysis where you read some data from the channel, preform whatever operation you desire to reduce the time to hourly data, and then re write that data to a new ThingSpeak channel. Then the data in the channel you view will be hourly. One function you can use in MATLAB is the retime () function to adjust the time scale to hourly. You can even use the MATLAB visualizations app to create a visualization that reads the data, applies the filter you are interested in and then plots and displays the data. You can then add that custom visualization to the channel view. See the ThingSpeak documentation for more specific examples. I strongly recommend you try the getting started tutorial .

Jaume Nin
Jaume Nin on 5 Aug 2021

Muchas gracias por la respuesta, Christopher, me ha ayudado a solucionar el tema Lo doy por solucionado y cerrado.

Muchas gracias de nuevo.

Saludos cordiales

Tags

No tags entered yet.