Skip to content

Commit

Permalink
Add battery test scrip
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyc committed Jul 10, 2020
1 parent 0b0b24c commit ee6c902
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/record-level.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

while true; do
level=$(echo get battery | nc -q 1 127.0.0.1 8423)
now=$(date '+%Y-%m-%d %H:%M:%S')
echo $now $level >> records.log
sleep 5
done

0 comments on commit ee6c902

Please sign in to comment.