This is a port of graphstats.py from the Klipper project to Streamlit.
I tried to modify the original code as little as possible to get it to work. I am sure I messed up something with heaters.
I am also, not a python programer, so I'm sure there is room for improvement.