View Single Post
Old 11-24-2023, 07:07 PM   #1173
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,520
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
In Battery Status was able to change the Temperature units with:
Code:
eips_print_bottom_centered "Temperature: $(gasgauge-info -k)°C ($(printf "%.*f" "2" "$(echo "$(gasgauge-info -k | awk '{print $1}')" | awk '{print ($1 * (9/5) + 32)}')") °F)" 1
However, gasgauge-info itself gives the values and units together, like "293 mAh".

I am not sure how to nicely truncate units, take only value, divide by 1000 and attach unit. Should be trivial, I'll give it a try

Last edited by mergen3107; 11-24-2023 at 07:19 PM.
mergen3107 is offline   Reply With Quote