Hello,
So far, I have this little tpitemp that does the job for the temperature. Temperature of 53-55 is usually as server use on raspbian.
How would you get the power supply level, in any case that we do not supply sufficiently with the mini usb.
tpitemp.c
Code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf( "TERMINAL4PI TEMPERATURE \n" );
system( " echo $(( `cat /sys/class/thermal/thermal_zone0/temp ` / 1000 )) " );
return 0;
}