projects
/
b3603-psu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(initial)
format sensors output for ina3221
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 21 Jun 2019 19:17:57 +0000
(21:17 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 2 Jul 2019 14:11:44 +0000
(16:11 +0200)
ina3221.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/ina3221.sh
b/ina3221.sh
new file mode 100755
(executable)
index 0000000..
06f34ff
--- /dev/null
+++ b/
ina3221.sh
@@ -0,0
+1,4
@@
+filter="."
+test ! -z "$1" && filter="$1:"
+while true ; do echo $(sensors 'ina3221-*' | grep [0-9]: | grep $filter | sed 's/(.*)//g') | sed -e 's/ V in/ /g' -e 's/ A curr/ /g' -e 's/+//g'; sleep 1 ; done
+