RelynkLearn
Builder APIGuides

A temperature chart

Hourly average temperatures of a set of sensors over a week, in the shape chart libraries take.

One call gives you a week of hourly averages, ready for a chart.

points comes from Rooms and their temperatures.

Request

const { t, series } = await relynk('/points.timeseries/v2', {
	pointIds: points.map((p) => p.id),
	from: '2026-10-05',
	to: '2026-10-12',
	bucket: 'hour',
	metrics: ['avg']
});

The range is [2026-10-05 00:00, 2026-10-12 00:00) in Oslo time: seven full days (see Time).

What you get back

{
	"timeZone": "Europe/Oslo",
	"bucket": "hour",
	"t": ["2026-10-05T00:00:00+02:00", "2026-10-05T01:00:00+02:00"],
	"series": [{ "pointId": "…", "unitKey": "unit_Deg_C", "avg": [21.4, null] }]
}
  • t is the shared time axis. series[i].avg[j] is the average of point series[i].pointId in the hour starting at t[j].
  • Pass t as the x values and one dataset per point.
  • null is an hour without readings: draw a gap.

On this page