kwgt 의 BI 함수가 지원하는 내용입니다.
배터리의 정보를 가져올 수 있습니다.
BI: battery info (level, voltage, temperature, time since charging?)
Syntax
bi(type, [date])
Arguments
- type: Info type, see examples
- date: Optional date for historical data up to 24 hours, you can use usual format so, r1h will give one hour ago, r30m 30 minutes ago and so on (see examples)
Examples
FormulaDescription
$bi(level)$% | Battery Level (in %) |
$bi(temp)$°$wi(tempu)$ | Battery Temperature in local unit |
$bi(tempc)$ | Battery Temperature in celsius |
$bi(volt)$ | Battery voltage in millivolts |
$bi(charging)$ | Will return 0 if on battery, 1 if charging |
$bi(fast)$ | Will return 1 if fast charging, 0 otherwise (Android 5.x or better only) |
$bi(source)$ | Current power source (Battery, AC, USB or Wireless) |
$df("hh:mma", bi(plugged))$ | Date of last plugged / unplugged event |
$bi(current)$ | Realtime charging/discharging current in milliampere |
$if(bi(charging) = 0, "unplugged", "plugged")$ $tf(bi(plugged))$ | Time since last plugged / unplugged event |
$df("hh:mma", bi(fullempty))$ | Date of expected next charged/discharged event |
$if(bi(charging) = 0, discharged, charged)$ $tf(bi(fullempty))$ | Time to next expected charged/discharged event |
$if(bi(charging) = 0, Discharged, Full)$$if(bi(charging) = 0 | bi(level) < 100, " in " + tf(bi(fullempty) - dp()))$ | Alternate time to next expected charged/discharged event with relative time |
$bi(level, r30m)$% | Battery Level (in %) 30 minutes ago |
$bi(source, r1h)$ | Battery Source 1 hour ago |
$bi(temp, r2h)$°$wi(tempu)$ | Battery Temp 2 hours ago |
'Software > klwp & kwgt' 카테고리의 다른 글
[KWGT Function] AQ: air quality (pollution index, co2, pm10?) (0) | 2024.03.08 |
---|---|
[KWGT Function] AI: astronomical info (0) | 2024.02.29 |
[KLWP] 갤럭시 폴드 KLWP 적용기 (0) | 2020.11.09 |
[KLWP] 테스트 테마 적용기 (4) | 2020.01.08 |