Hi, I’m logging data to an InfluxDB database (from a twincat system and to a database setup on the same PLC/computer) and want to show that data as well in a graph. A few seconds delay is not a problem. I’m struggling to show a graph that keeps the same start time while extending the graph with more and more logpoints, i.e. the graph gets more and more compressed over time.
From InfluxDX to grafana I have only experimented with making a panel so far and connecting to that with http. I’m in need of some guidance as how to continue.
It sounds like you have InfluxDB storing the data, but have not set up any live streaming, correct? Please share what you have done thus far. I presume you know the difference between reading from Influx at a fast rate (e.g. every 5 seconds) vs. live streaming? It’s a lot more work & resources to set up truly live streaming, so if using InfluxDB and having the data refresh every 5 seconds or so is acceptable, I would go with that.
As for your original question, if you want to keep the start time fixed (for example, Sep 12 at midnight), did you try something like this?