union-minui/skeleton/.system/rg35xx/paks/MinUI.pak/batmon.sh
Shaun Inman 2cc36b97d5 added batmon for logging battery curve
not sure what I'm going to do with that info though
2023-01-05 22:13:55 -05:00

8 lines
No EOL
207 B
Bash
Executable file

#!/bin/sh
touch /mnt/sdcard/batmon.txt
while :; do
echo `cat /sys/class/power_supply/battery/capacity` `cat /sys/class/power_supply/battery/voltage_now` `date` >> /mnt/sdcard/batmon.txt
sync
sleep 5
done