MilhouseVH / bcmstat

Simple Raspberry Pi monitoring tool
GNU General Public License v2.0
263 stars 36 forks source link

SUGGESTION: Specify each field #17

Closed vegerot closed 4 years ago

vegerot commented 5 years ago

When I run bcmstat in a smaller Tmux pane I'll get some ugly wrapping which makes the output hard to read. I know some fields are optional, but it seems like most of them are not. How can I only allow a few select fields?

MilhouseVH commented 5 years ago

This script really isn't suitable for narrow consoles, I'm afraid. I suppose you could always try piping the output through some sort of filter script that formats the output to fit your Tmux pane.

MilhouseVH commented 4 years ago

I've added the -o option in v.0.5.5 that allows columns to be configured. Column names are case sensitive. The order of columns can't be specified, only which columns are visible.

Some examples:

Hide H264, show V3D:

-o-H264,+V3D

Hide all CPU load stats other than total:

-x -o-CPUuser,-CPUnice,-CPUsys,-CPUidle,-CPUiowt,-CPUirq,-CPUs/irq

Show only ARM frequency, Core frequency, and Core temp:

-oARM,Core,TempCore

Columns will only be displayed if they are active, so for example -oCPU won't display CPU processor stats (cpu0, cpu1, cpu2, cpu3 etc.) unless -p is also specified (as -p activates monitoring of CPU cores).

See -h for available column names.

vegerot commented 4 years ago

Awesome