So I’m trying to make a battery indicator widget that displays how long until expected battery discharge. My formula is
$tf(bi(fullempty), D’d’+h’h’+m’m’)$
What I’ve noticed is that the h token is adding an extra 6 hours to itself when comparing what it’s outputting to the android battery panel. I’ll attach screenshots.
Not exactly. I’m trying to have it display how much time is left, not an estimate of the time when it’ll be done charging/discharging. It should say something like
24h43m Remaining
The problem is that the hours seems to be off. Maybe I’m just looking too much into it tho.
Another test I just made (see the screenshot) indicated me that the formula works normally, the time shown by the formula is quite the same as the one shown by the system’s battery into.
The formula:
1. The battery will be $ if(bi(charging)=0, "discharged", "charged")$
in $tf(bi(fullempty), "h'h and' m'm'")$
2. The battery will be $ if(bi(charging)=0, "discharged", "charged")$
in $tf(bi(fullempty)-dp())$