Fix wrong battery drain readout in Pine64 template
This commit is contained in:
parent
b37fc18184
commit
2e6fdb119f
@ -1,3 +1,16 @@
|
||||
########################################################################
|
||||
# Extract A64 information
|
||||
# Page: 1
|
||||
# Information Status Statistics
|
||||
# - cpu frequency - yes - yes
|
||||
# - cpu load 1, 5, 15 - yes - yes
|
||||
# - cpu scaling governor - yes - no
|
||||
# - cpus available - yes - yes
|
||||
# - Vcore voltage - yes - yes
|
||||
# - cooling state - yes - yes
|
||||
# - cooling limit - yes - no
|
||||
# - zone1/SoC temperature - yes - yes
|
||||
########################################################################
|
||||
dynamic.1.name=cpu_frequency
|
||||
dynamic.1.source=/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
|
||||
dynamic.1.regexp=(.*)
|
||||
@ -17,6 +30,7 @@ dynamic.3.postprocess=
|
||||
dynamic.3.rrd=
|
||||
|
||||
dynamic.4.name=cpu_count
|
||||
#dynamic.4.source=/usr/bin/expr 1 + `/usr/bin/awk -F": " '/^processor/ {print $2}' < /proc/cpuinfo | /usr/bin/tail -n1`
|
||||
dynamic.4.source=grep -c processor /proc/cpuinfo
|
||||
dynamic.4.regexp=(.*)
|
||||
dynamic.4.postprocess=
|
||||
@ -79,7 +93,7 @@ dynamic.12.rrd=GAUGE
|
||||
dynamic.13.name=batterydrain
|
||||
dynamic.13.source=/sys/class/axppower/power_sply
|
||||
dynamic.13.regexp=(.*)
|
||||
dynamic.13.postprocess=sprintf("%.3f", $1/1000)
|
||||
dynamic.13.postprocess=sprintf("%.3f", $1/1000000)
|
||||
dynamic.13.rrd=GAUGE
|
||||
|
||||
web.status.1.content.1.name=CPU
|
||||
@ -94,7 +108,7 @@ web.status.1.content.2.line.1=JustGageBar("SoC", "°C",0, data.soctemp , 100,100
|
||||
|
||||
web.status.1.content.3.name=Battery
|
||||
web.status.1.content.3.icon=pmu.png
|
||||
web.status.1.content.3.line.1=JustGageBar("Battery capacity", "%", 0, data.batterycapacity, 100,100,80,percentColors,100,100)+" "+JustGageBar("Battery voltage", "V", 0, data.batteryvoltage, 5,100,80,percentColors,100,100)+" "+JustGageBar("Battery current", "A", -3, data.batterycurrent, 3,100,80,percentColors,100,100)+" "+JustGageBar("Battery drain", "W", 0, data.batterydrain, 10,100,80,percentColors,100,100)
|
||||
web.status.1.content.3.line.1=JustGageBar("Battery capacity", "%", 0, data.batterycapacity, 100,100,80,percentColors,100,100)+" "+JustGageBar("Battery voltage", "V", 0, data.batteryvoltage, 5,100,80,percentColors,100,100)+" "+JustGageBar("Battery current", "A", -3, data.batterycurrent, 3,100,80,percentColors,100,100)+" "+JustGageBar("Battery drain", "W", 0, data.batterydrain, 15,100,80,percentColors,6,9)
|
||||
|
||||
web.statistics.1.content.1.name=Load / Clockspeeds / Temperature
|
||||
web.statistics.1.content.1.graph.1=load1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user