added batmon for logging battery curve

not sure what I'm going to do with that info though
This commit is contained in:
Shaun Inman 2023-01-05 22:13:55 -05:00
parent ba35e73964
commit 2cc36b97d5
2 changed files with 17 additions and 5 deletions

View file

@ -0,0 +1,8 @@
#!/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