i'm experimenting a bit with an esp32 and a network.
The ESP32 measures a temperature which I then display on a web page. This works with AJAX etc.
The temperature value is cyclically sent and displayed.
Now I want to display the temperature as a graph.
For example with a pointer.
Can anyone help me with a simple example?
I do not understand the use of CANVAS in this problem.
many thanks and greetings
Thanks for the info.
Unfortunately the first link does not work.
I understand how something is drawn with canvas, it works too.
Unfortunately I can't manage to update the canvas drawing regularly. This is my problem.
The numerical values are updated, that works.
thanks for the Example.
Here is my Code:
A canvas drawing area is created and a red rectangle and line are drawn.
I want the line to be drawn differently depending on the value. So like a hand of a clock.
I do not want to work with the Chart Lib.
It is called GetAjaxData every 250ms and the values are displayed as numbers. I would like to draw a pointer parallel to this.