Open channemann opened 9 years ago
Yeah there's a few pieces here. First, we need to change the code that takes system time and ensures the horizontal axis includes it. We should replace current time with a vertical line or something, and update it on a regular interval. Second, we should decide on the maximum time to show in the viewport, something pixel-based so smaller screens trigger scrolling. The amount of data is currently based on the pump history, glucose history, and prediction glucose provided.
Would we need to change the iter_glucose_hours and iter_pump_hours values in the loop, or simply append the new data each time?
If we're moving to Highcharts ...
http://www.highcharts.com/docs/chart-concepts/understanding-highstock
Openaps only supports overwriting files, so you'd need to just increase those values.
Would be excellent to be able to plot 12 - 24 hours and make it scrollable. The monitor may not be the best place for this, but making the live view also the historical / analysis view would be very cool.