Skip to content

Conversation

Counselor-Earl
Copy link
Collaborator

Temp_graph is a small script that parses the output from journalctl -t heatmon into a series of CSVs (separated by timeframe and device type (radio/core)). It then can produce a report page with a series of graphs for each of these tables. This makes it easier to visually report temperature stats when testing systems. I originally wrote this script independently a few months before coming to CT, but have rewritten most of it in the last week to be more useful and visually appealing.

Design Notes:
-This script uses the matplotlib library to create its graphs. This library is used in other places in the lanforge codebase, but may not be the most robust option in the long run.
-The regex used to parse lines from journalctl -t heatmon is pretty specific and will break (but will be easy to fix) if there is a change to the formatting of heatmon. There is currently no option to directly pass in CSV files or to specify a pattern.
-The script creates CSV files, PNG files, and HTML files. These outputs are stored in a directory named Temp_Graphing_MON_D_H. I don't know how well this fits with our design standards.

Counselor-Earl and others added 5 commits August 13, 2025 14:32
temp_graph.py creates visual reports of the temperatures recorded with journalctl -t heatmon.
…y issues.

This feature did not seem to be especially useful and was not worth maintaining without demand.
It should be possible to get working if this feature becomes desirable in the future.
Copy link
Collaborator

@memnochproxy memnochproxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@memnochproxy memnochproxy merged commit 8e7ae27 into greearb:master Aug 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants