build/packages/bsp/armbianmonitor/templates/sun7i_next.conf

227 lines
12 KiB
Plaintext

dynamic.1.name=cpu_frequency
dynamic.1.source=/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
dynamic.1.regexp=(.*)
dynamic.1.postprocess=$1/1000
dynamic.1.rrd=GAUGE
dynamic.2.name=load1,load5,load15
dynamic.2.source=/proc/loadavg
dynamic.2.regexp=^(\S+)\s(\S+)\s(\S+)
dynamic.2.postprocess=
dynamic.2.rrd=GAUGE
dynamic.3.name=scaling_governor
dynamic.3.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
dynamic.3.regexp=(.*)
dynamic.3.postprocess=
dynamic.3.rrd=
dynamic.4.name=ac_voltage
dynamic.4.source=/etc/armbianmonitor/datasources/ac_voltage
dynamic.4.regexp=(.*)
dynamic.4.postprocess=sprintf("%.2f", $1/1000000)
dynamic.4.rrd=GAUGE
dynamic.5.name=ac_consumption
dynamic.5.source=/etc/armbianmonitor/datasources/ac_current
dynamic.5.regexp=(.*)
dynamic.5.postprocess=sprintf("%.2f", $1/1000000 * $this->{'dynamic'}->{'ac_voltage'})
dynamic.5.rrd=GAUGE
dynamic.6.name=usb_voltage
dynamic.6.source=/etc/armbianmonitor/datasources/usb_voltage
dynamic.6.regexp=(.*)
dynamic.6.postprocess=sprintf("%.2f", $1/1000000)
dynamic.6.rrd=GAUGE
dynamic.7.name=usb_consumption
dynamic.7.source=/etc/armbianmonitor/datasources/usb_current
dynamic.7.regexp=(.*)
dynamic.7.postprocess=sprintf("%.2f", $1/1000000 * $this->{'dynamic'}->{'usb_voltage'})
dynamic.7.rrd=GAUGE
dynamic.8.name=battery_voltage
dynamic.8.source=/etc/armbianmonitor/datasources/battery_voltage
dynamic.8.regexp=(.*)
dynamic.8.postprocess=sprintf("%.2f", $1/1000000)
dynamic.8.rrd=GAUGE
dynamic.9.name=battery_consumption
dynamic.9.source=/etc/armbianmonitor/datasources/battery_current
dynamic.9.regexp=(.*)
dynamic.9.postprocess=sprintf("%.2f", $1/1000000 * $this->{'dynamic'}->{'battery_voltage'})
dynamic.9.rrd=GAUGE
dynamic.10.name=total_consumption
dynamic.10.source=/etc/armbianmonitor/datasources/ac_current
dynamic.10.regexp=(.*)
dynamic.10.postprocess=sprintf("%.2f", $1/1000000 * $this->{'dynamic'}->{'ac_voltage'} + $this->{'dynamic'}->{'battery_consumption'} + $this->{'dynamic'}->{'usb_consumption'})
dynamic.10.rrd=GAUGE
dynamic.11.name=usb_current
dynamic.11.source=/etc/armbianmonitor/datasources/usb_current
dynamic.11.regexp=(.*)
dynamic.11.postprocess=sprintf("%.2f", $1/1000000)
dynamic.11.rrd=GAUGE
dynamic.12.name=ac_current
dynamic.12.source=/etc/armbianmonitor/datasources/ac_current
dynamic.12.regexp=(.*)
dynamic.12.postprocess=sprintf("%.2f", $1/1000000)
dynamic.12.rrd=GAUGE
dynamic.13.name=battery_current
dynamic.13.source=/etc/armbianmonitor/datasources/battery_current
dynamic.13.regexp=(.*)
dynamic.13.postprocess=sprintf("%.2f", $1/1000000)
dynamic.13.rrd=GAUGE
dynamic.14.name=pmic_temp
dynamic.14.source=/etc/armbianmonitor/datasources/pmictemp
dynamic.14.regexp=(.*)
dynamic.14.postprocess=sprintf("%.1f", $1/1000)
dynamic.14.rrd=GAUGE
dynamic.15.name=soc_temp
dynamic.15.source=/etc/armbianmonitor/datasources/soctemp
dynamic.15.regexp=(.*)
dynamic.15.postprocess=sprintf("%.1f", $1/1000)
dynamic.15.rrd=GAUGE
dynamic.16.name=battery_percent
dynamic.16.source=/etc/armbianmonitor/datasources/battery_percent
dynamic.16.regexp=(.*)
dynamic.16.postprocess=
dynamic.16.rrd=GAUGE
dynamic.17.name=charger_current
dynamic.17.source=/etc/armbianmonitor/datasources/charger_current
dynamic.17.regexp=(.*)
dynamic.17.postprocess=sprintf("%.2f", $1/1000000)
dynamic.17.rrd=GAUGE
dynamic.18.name=battery_charging
dynamic.18.source=/etc/armbianmonitor/datasources/battery_charging
dynamic.18.regexp=(.*)
dynamic.19.name=battery_charged
dynamic.19.source=/etc/armbianmonitor/datasources/battery_charging
dynamic.19.regexp=(.*)
dynamic.19.postprocess=$1 + $this->{'dynamic'}->{'battery_current'}
dynamic.20.name=battery_connected
dynamic.20.source=/etc/armbianmonitor/datasources/battery_connected
dynamic.20.regexp=(.*)
dynamic.21.name=battery_peak
dynamic.21.source=/etc/armbianmonitor/datasources/battery_peak
dynamic.21.regexp=(.*)
dynamic.22.name=battery_percentage
dynamic.22.source=/etc/armbianmonitor/datasources/battery_charge
dynamic.22.regexp=(.*)
#dynamic.22.postprocess=sprintf("%.0f", $1 * 100 / $this->{'dynamic'}->{'battery_peak'})
dynamic.22.rrd=GAUGE
web.status.1.content.1.name=CPU
web.status.1.content.1.icon=cpu.png
web.status.1.content.1.line.1="Loads: <b>" + data.load1 + "</b> [1min] - <b>" + data.load5 + "</b> [5min] - <b>" + data.load15 + "</b> [15min]"
web.status.1.content.1.line.2="CPU frequency: <b>" + data.cpu_frequency + "MHz</b> &nbsp;Governor: <b>" + data.scaling_governor + "</b>"
# Board powered through battery
web.status.1.content.2.name=PMU
web.status.1.content.2.icon=pmu.png
web.status.1.content.2.line.1="Reported PMU Consumption: <b>" + data.total_consumption + " W</b> &nbsp;"+Label(data.battery_current,">0","Battery Discharging","label-warning")+Label(data.battery_charging,"==1","Battery Charging","label-success")+Label(data.battery_charged,"==0","Battery Charged","label-default")
web.status.1.content.2.line.2="DC-IN in: <b>" + data.ac_consumption + " W</b> USB OTG in: <b>" + data.usb_consumption + " W</b> BATT in: <b>" + data.battery_consumption + " W</b>"
web.status.1.content.2.line.3=JustGageBar("Battery Capacity", "%",0, data.battery_percentage , 100,100,80,percentColors,1000,1000)+" "+JustGageBar("Battery Voltage", "V",3, data.battery_voltage , 5,100,80,percentColors,1000,1000)+" "+JustGageBar("Battery Amperage", "A",0, data.battery_current , 2,100,80,percentColors,1000,1000)
web.status.1.content.2.visibility=data.battery_current
# Board powered through DC-IN
web.status.1.content.3.name=PMU
web.status.1.content.3.icon=pmu.png
web.status.1.content.3.line.1="Reported PMU Consumption: <b>" + data.total_consumption + " W</b> &nbsp;"+Label(data.battery_current,">0","Battery Discharging","label-warning")+Label(data.battery_charging,"==1","Battery Charging","label-success")+Label(data.battery_charged,"==0","Battery Charged","label-default")
web.status.1.content.3.line.2="DC-IN in: <b>" + data.ac_consumption + " W</b> USB OTG in: <b>" + data.usb_consumption + " W</b> BATT in: <b>" + data.battery_consumption + " W</b>"
web.status.1.content.3.line.3=JustGageBar("Battery Capacity", "%",0, data.battery_percentage , 100,100,80,percentColors,1000,1000)+" "+JustGageBar("DC-IN Voltage", "V",4, data.ac_voltage , 6,100,80,percentColors,1000,1000)+" "+JustGageBar("DC-IN Amperage", "A",0, data.ac_current , 2,100,80,percentColors,1000,1000)
web.status.1.content.3.visibility=data.ac_current
# Board powered through USB OTG
web.status.1.content.4.name=PMU
web.status.1.content.4.icon=pmu.png
web.status.1.content.4.line.1="Reported PMU Consumption: <b>" + data.total_consumption + " W</b> &nbsp;"+Label(data.battery_current,">0","Battery Discharging","label-warning")+Label(data.battery_charging,"==1","Battery Charging","label-success")+Label(data.battery_charged,"==0","Battery Charged","label-default")
web.status.1.content.4.line.2="DC-IN in: <b>" + data.ac_consumption + " W</b> USB OTG in: <b>" + data.usb_consumption + " W</b> BATT in: <b>" + data.battery_consumption + " W</b>"
web.status.1.content.4.line.3=JustGageBar("Battery Capacity", "%",0, data.battery_percentage , 100,100,80,percentColors,1000,1000)+" "+JustGageBar("USB OTG Voltage", "V",4, data.usb_voltage , 6,100,80,percentColors,1000,1000)+" "+JustGageBar("USB OTG Amperage", "A",0, data.usb_current , 2,100,80,percentColors,1000,1000)
web.status.1.content.4.visibility=data.usb_current
web.status.1.content.5.name=Temperature
web.status.1.content.5.icon=cpu_temp.png
web.status.1.content.5.line.1=JustGageBar("SoC", "°C",0, data.soc_temp , 100,100,80,percentColors,50,60)+" "+JustGageBar("PMU", "°C",0, data.pmic_temp , 100,100,80,percentColors,45,55)
web.statistics.1.content.1.name=Load / cpufreq / Consumption
web.statistics.1.content.1.graph.1=load1
web.statistics.1.content.1.graph.2=load5
web.statistics.1.content.1.graph.3=load15
web.statistics.1.content.1.graph.4=total_consumption
web.statistics.1.content.1.graph.5=cpu_frequency
web.statistics.1.content.1.ds_graph_options.load1.label=Load 1 min
web.statistics.1.content.1.ds_graph_options.load5.label=Load 5 min
web.statistics.1.content.1.ds_graph_options.load15.label=Load 15 min
web.statistics.1.content.1.ds_graph_options.total_consumption.label=Consumption (W)
web.statistics.1.content.1.ds_graph_options.cpu_frequency.label=Clock speed (MHz)
web.statistics.1.content.1.ds_graph_options.cpu_frequency.yaxis=2
web.statistics.1.content.1.graph_options.y2axis={ position: "right" }
web.statistics.1.content.2.name=PMU current/voltage
web.statistics.1.content.2.graph.1=ac_voltage
web.statistics.1.content.2.graph.2=usb_voltage
web.statistics.1.content.2.graph.3=battery_voltage
web.statistics.1.content.2.graph.4=ac_current
web.statistics.1.content.2.graph.5=usb_current
web.statistics.1.content.2.graph.6=battery_current
web.statistics.1.content.2.ds_graph_options.ac_voltage.label=Voltage DC-IN (V)
web.statistics.1.content.2.ds_graph_options.usb_voltage.label=Voltage USB OTG (V)
web.statistics.1.content.2.ds_graph_options.battery_voltage.label=Voltage LiPo (V)
web.statistics.1.content.2.ds_graph_options.ac_current.label=Current DC-IN (A)
web.statistics.1.content.2.ds_graph_options.usb_current.label=Current USB OTG (A)
web.statistics.1.content.2.ds_graph_options.battery_current.label=Current LiPo (A)
web.statistics.1.content.2.ds_graph_options.ac_voltage.yaxis=1
web.statistics.1.content.2.ds_graph_options.usb_voltage.yaxis=1
web.statistics.1.content.2.ds_graph_options.battery_voltage.yaxis=1
web.statistics.1.content.2.ds_graph_options.ac_current.yaxis=2
web.statistics.1.content.2.ds_graph_options.usb_current.yaxis=2
web.statistics.1.content.2.ds_graph_options.battery_current.yaxis=2
web.statistics.1.content.2.graph_options.y1axis={ position: "left", min: 1.5, max: 11 }
web.statistics.1.content.2.graph_options.y2axis={ position: "right" }
web.statistics.1.content.3.name=Temperature / Consumption
web.statistics.1.content.3.graph.1=pmic_temp
web.statistics.1.content.3.graph.2=soc_temp
web.statistics.1.content.3.graph.3=total_consumption
web.statistics.1.content.3.ds_graph_options.pmic_temp.label=PMU temperature (°C)
web.statistics.1.content.3.ds_graph_options.soc_temp.label=SoC temperature (°C)
web.statistics.1.content.3.ds_graph_options.total_consumption.label=Consumption (W)
web.statistics.1.content.3.ds_graph_options.total_consumption.yaxis=2
web.statistics.1.content.3.graph_options.y1axis={ position: "left", min: 0, max: 70 }
web.statistics.1.content.3.graph_options.y2axis={ position: "right" }
web.statistics.1.content.4.name=Battery
web.statistics.1.content.4.graph.1=battery_voltage
web.statistics.1.content.4.graph.2=battery_current
web.statistics.1.content.4.graph.3=charger_current
web.statistics.1.content.4.graph.4=ac_current
web.statistics.1.content.4.graph.5=battery_percent
web.statistics.1.content.4.graph.6=battery_percentage
web.statistics.1.content.4.ds_graph_options.battery_voltage.label=Battery Voltage (V)
web.statistics.1.content.4.ds_graph_options.battery_current.label=Battery Amperage (A)
web.statistics.1.content.4.ds_graph_options.charger_current.label=Charger Amperage (A)
web.statistics.1.content.4.ds_graph_options.ac_current.label=DC-IN Amperage (A)
web.statistics.1.content.4.ds_graph_options.battery_percent.label=Li-Ion curve (%)
web.statistics.1.content.4.ds_graph_options.battery_percentage.label=Percentage (%)
web.statistics.1.content.4.ds_graph_options.battery_voltage.yaxis=1
web.statistics.1.content.4.ds_graph_options.battery_current.yaxis=1
web.statistics.1.content.4.ds_graph_options.charger_current.yaxis=1
web.statistics.1.content.4.ds_graph_options.ac_current.yaxis=1
web.statistics.1.content.4.ds_graph_options.battery_percent.yaxis=2
web.statistics.1.content.4.ds_graph_options.battery_percentage.yaxis=2
web.statistics.1.content.4.graph_options.y1axis={ position: "left" }
web.statistics.1.content.4.graph_options.y2axis={ position: "right", min: 1, max: 100 }