olealgoritme / gddr6

Linux​ based GDDR6/GDDR6X VRAM temperature reader for NVIDIA RTX 3000/4000 series GPUs.
79 stars 30 forks source link

JSON output mode #34

Open sergey-cheperis opened 2 months ago

sergey-cheperis commented 2 months ago

Hi Ole.

This suggested change adds a "-j" CLI arg which prints the data in JSON format and exits. It should not break the existing ABI of libgddr6. It also changes the display of PCI IDs to match the format used by nvidia-smi (02:00.0).