Dude! This looks so great! Could you post all the files so I can hook that up. What widgets and stuff are you using?
x=$(cat /sys/class/power_supply/bq27200-0/temp | awk '{printf("%.1f",$1/10)}')