Hi @rt, I could make the graph wider expanding the x-axis by moving or changing the y-axis markers as you suggest. The x-axis show the last 24 hours and shows a moving timeline moving backwards from the right hand side, which shows current time. So the graph shows current and temperature over last 24 hours on a rolling graph display. The frame for the temperature measurement is fixed over the last 24 hours, this data is stored and is available. The yellow display is due to the compiler I am using having a limited range of colours and yellow for now shows good contrast, this is easily changed for the final release. Once the first temperature sensor value is available, this is copied through the array to generate and display an initial flat line, new values are then added to the right hand side.
I am not sure yet how to scale the logged temperature values. For example, the line might average around 22C and is flat ( not changing) for the first 0 to 4 hours, then it ramps up to 26C over the 4 to 8 hours, then between 8 -12 hours it ramps back down to 22C, then 12 to current time has no temperature change. To scale the values, I do not want to change the flat part of the line, only the changing values, so the first four hours there is no scaling. Then the for the 4-8 hours period this is scaled to magnify the change with higher y axis values being shown. I have calculated the average of all the values and used this as a baseline to compare new reading to, but the average changes as new readings show change. Another way is to detect change from say, the last 5 data points (if all flat) and then scale the latest reading. Problem with this is the temp might fluctuate +- 1 or 2C and these fluctuations do not need scaling. Maybe what I am after is some form of fuzzy logic?