Possible to change temperature chart history

I’m looking to see if there is a way to change how long the chart tracks temp. I would like it to be longer then it is now. I found where I can change the size for better resolution(keg_detail.html). Just haven’t located how to change the duration it tracks.


Anything is possible, it’s opensource. :slight_smile:

Default time is 6 hours. You can change that in …/pykeg/web/charts/charts.py: in chart_temp_sensor change “hours =” to whatever you want.

Default retention for THERMO data is 24 hours, though. If you want more than that, you’ll need to go over to …/pykeg/core/kb_common.py: adjust THERMO_SENSOR_HISTORY_MINUTES as you need. Be careful with this if you are on a woefully underpowered system (as I am), Thermolog.time is an unindexed column (at least in my version 1.2.3) and I had some database locking when I extended this too far.