| panelgroup | Informational Panels |
|---|---|
| name | System Metrics |
| title | System Metrics Script |
| layout | default |
| description | Renders the CPU temperature, Free Drive space, CPU and Memory Usage |
| imageurl | ../images/sysinfo.png |
A useful script that reports the CPU temperature and load, drive space in use and free, as well as memory usage. Color coding follows green/yellow/red for ranging from all OK to heavy usage to warning.
This script assumes you are using a Raspberry Pi setup using a MicroSD card for the OS (/dev/root), and external storage (/dev/sda1) for data files for Bitcoin, LND, etc.
This script is installed at ~/nodeyez/scripts/sysinfo.py
To manage and configure this script, use the nodeyez-config tool
sudo nodeyez-configTo manually configure this script, edit the ~/nodeyez/config/sysinfo.json file
Fields are defined below
| field name | description |
|---|---|
| backgroundColor | The background color of the image expressed as a hexadecimal color specifier. Default #000000 |
| height | The height, in pixels, to generate the image. Default 320 |
| interval | The amount of time, in seconds, the script should wait before data gathering and image creation again. Default 30 |
| width | The width, in pixels, to generate the image. Default 480 |
Ensure the virtual environment is activated
source ~/.pyenv/nodeyez/bin/activateChange to the scripts folder
cd ~/nodeyez/scriptsRun it
python sysinfo.pyPress CTRL+C to stop the process
To enable the script to run at startup, as the privileged user run the following
sudo systemctl enable nodeyez-sysinfo.service
sudo systemctl start nodeyez-sysinfo.serviceHome |
