How to display stale data

My first ever post on this community forum. Hoping I did it right.

I want to create a graph that displays HumidyTarget, IndoorTemperature and OutdoorTemperature.

As you can see from the picture below, the HumidityTarget (Green) stopped showing on the graph on Oct 27. Reason being is that the value has not changed since then.

What do I have to do to see it?

Here’s a snippet of the query.

|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: “last”)

Thanks

image

Instead of inserting a data point into InfluxDB every time a value changes, I
recommend that you insert a data point every time you want to know what the
current value is.

Then there will be a data point to show on your graph for the required
timescale. To put it simply - if you don’t put anything into the DB over a
certain time period, there is nothing in that time period to display.

So, go back to whatever is putting data into InfluxDB, and make sure it does it
as often as you want to be able to see data points on your graph, not just
whenever something changes value.

Antony.

Understood. Thanks Antony.