Enhance Overtemp/Undervoltage flag in Navbar

I'm running octoprint on an RasPi4 connected to a Prusa Mk3s.
Actually it looks like that i have sporadic undervoltage issues.
The undervoltage symbol is always static i never saw it flashing...

After reading the discussion here i have questions and/or probably ideas to analyze such sporadic failures somewhat easier:

  1. Is there any logfile, where i can see when an undervoltage/overtemp situation happens?
    If not: it would be nice to have such an event log where every occurance of an overtemp/undervoltage issue is logged (with timestamp probably in relation to the print job).

  2. Is it possile to clear the flags without restarting octoprint?
    If not: Is it possible to implement such a function?
    With that it would be possible that one could clear the flags to observe when the problem happens again....

What do you think about that?


  1. Any of these should indicate where it's being logged: cat /var/log/syslog | grep Under, cat ~/.octoprint/logs/octoprint.log | grep Under, cat /var/log/daemon.log | grep Under
  2. Not without editing OctoPrint or the core plugins, no. At least, not at the moment.