I improved the script yet again because I got tired of viewgpu's readings being unreliable.
It now goes off your card temperatures, which seems to be very reliable (a card that is sick or dead will quickly cool down to idle temps).
So far this hasn't failed me!