A CLI tool to monitor temp while running a child process
Project description
Temp Monitor
A Python CLI utility to monitor cpu temperature
Free software: MIT license
Documentation: https://tmon.readthedocs.io.
Install
pip install tmonpy
or
$ # download the AppImage file from the releases page $ wget https://github.com/gmagno/tmon/releases/latest/download/tmon-???????-x86_64.AppImage $ chmod +x tmon-*-x86_64.AppImage
Usage
tmon -h
usage: tmon [-h] [-v] [-y YSIZE] [-x XSIZE] [-l MIN MAX] ...
Temperature Monitor (tmon v0.3.6) -- executes a program while
monitoring CPU temperature, reporting the min, max and mean
temperatures and plotting an ascii chart at the end to stderr.
All signals are redirected to the program.
If no program is passed, tmon runs as expected returning on
SIGINT (Ctrl-C).
For full documentation check the repo: https://github.com/gmagno/tmon
positional arguments:
CMD Command args to run.
optional arguments:
-h, --help show this help message and exit
-v, --version Shows tmon version.
-y YSIZE, --ysize YSIZE
Y-axis size in number terminal characters
-x XSIZE, --xsize XSIZE
X-axis size in number terminal characters
-l MIN MAX, --ylim MIN MAX
Y-axis view limits with min and max values. It is
ignored if the measured temperatures fall outside the
specified range.
return:
tmon returns when the child program exits, stops, or is
terminated by a signal. The return value of tmon is the return
value of the program it executed.
examples:
$ tmon echo How can a clam cram in a clean cream can
How can a clam cram in a clean cream can
===================
Temp Monitor Report:
Temp (°C) for a period of 0:00:00
>> 53.0 °C <<
/tmp/tmon-YYYYMMDD@HHhMMmSS-XXXXXXXX.txt
===================
$ tmon bash -c 'sleep 6; stress -c 4 -t 3; sleep 6'
stress: info: [17832] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd
stress: info: [17832] successful run completed in 3s
===================
Temp Monitor Report:
Temp (°C) for a period of 0:00:15
59.00 ┤
58.67 ┤
58.33 ┤
58.00 ┤
57.67 ┤ ╭─╮
57.33 ┤ │ │
57.00 ┤ │ │
56.67 ┤ ╭╯ ╰╮
56.33 ┤ │ │
56.00 ┤ │ │
55.67 ┼─╮ │ │
55.33 ┤ │ │ │
55.00 ┤ ╰───╯ ╰────╮
54.67 ┤ │
54.33 ┤ │
54.00 ┤ ╰
/tmp/tmon-YYYYMMDD@HHhMMmSS-XXXXXXXX.txt
===================
$ tmon -y 5 -x 5 bash -c 'sleep 6; stress -c 4 -t 3; sleep 6'
stress: info: [17181] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd
stress: info: [17181] successful run completed in 3s
===================
Temp Monitor Report:
Temp (°C) for a period of 0:00:15
60.00 ┤
59.00 ┤ ╭╮
58.00 ┼╮╭╯│
57.00 ┤╰╯ │
56.00 ┤ ╰─
/tmp/tmon-YYYYMMDD@HHhMMmSS-XXXXXXXX.txt
===================
$ tmon -l 40 70 -x 10 -y 10 bash -c 'stress -c 4 -t 3; sleep 6'
stress: info: [19677] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd
stress: info: [19677] successful run completed in 3s
===================
Temp Monitor Report:
Temp (°C) for a period of 0:00:09
70.00 ┤
66.67 ┤
63.33 ┤
60.00 ┤
56.67 ┼───╮
53.33 ┤ ╰─────
50.00 ┤
46.67 ┤
43.33 ┤
40.00 ┤
/tmp/tmon-YYYYMMDD@HHhMMmSS-XXXXXXXX.txt
===================
copyright:
Copyright © 2020 Gonçalo Magno <goncalo@gmagno.dev>
This software is licensed under the MIT License.
History
0.1.0 (2020-01-28)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tmonpy-0.4.0.tar.gz
(17.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tmonpy-0.4.0.tar.gz.
File metadata
- Download URL: tmonpy-0.4.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30117a6f199e3f22bbad11cad35fcb79ac7ca6aca4815c0dde7085965347a074
|
|
| MD5 |
9c99aefc3952af3a3bb71bd12e042f8f
|
|
| BLAKE2b-256 |
5f03291db2cd959183f75d823b07096ffff5ac2d24d0afcb80a269db617d33ec
|
File details
Details for the file tmonpy-0.4.0-py2.py3-none-any.whl.
File metadata
- Download URL: tmonpy-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61ae591ebbb2e6a3727fdc0abb1d9627c2493070eec4bf3798c1e76ef85a3afc
|
|
| MD5 |
aade9db276235df67f23e371500c9d9f
|
|
| BLAKE2b-256 |
3f8fa7508c68a8e578ad6fe09648a61a5db209191232494b21f4c6c81e408192
|