Skip to content

Instantly share code, notes, and snippets.

@ssieb
ssieb / 24hr.sh
Last active October 1, 2019 16:16 — forked from buzztiaan/24hr.sh
Battery discharge and backlight power logging for zipit z2
#!/bin/sh
now=$(date +%s)
dayago=$(( $now - 86400 ))
prevstate="banana";
totaldischargetime=0;
while read -r line; do