preloader

Pozetron Time Series Data

In this guide we will be learning how to record time series data from your devices and visualize it with a dashboard. Time series data simply refers to a series of data points, such as Voltage or Temperature, recorded over time. You can then view these as they happen through the Pozetron Dashboards.

All you will need is a provisioned device from our store or one that you’ve made yourself (ESP32 | ESP8266).

Point in Time

The first step to recording a time series is recording a single point-in-time measurement. With Pozetron this is simplified to a simple method call.

from pozetron import datapoint
datapoint(value, 'dataseries_name')

You may have picked up a few terms that we use, a datapoint is a single measurement while a dataseries is collection of them. A value is simply a number like an integer or a float.

In the example above, the dataseries name is actually unnecessary. If you don’t specify a dataseries name it will default to the name of the device that is recording it.

That’s it! All you need to do to record a dataseries is keep calling datapoint() when you have a value you want to record. Any values with the same name will be automatically grouped together and arranged according to the time that they were received.

Visualization

Once you have the first datapoint in your dataseries you can view it through a Dashboard. The Default Dashboard is already set up with a dropdown to help you select the dataseries you want, a gauge for the current value, a sparkline to view the recent trend as well as two charts for visualizing data from the past few hours and the data that is just coming in.

Gauge Sparkline

Free Registration

No credit card required. Limited time only.

Register Free