-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devel' for version 2.10
- Loading branch information
Showing
48 changed files
with
4,034 additions
and
3,301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.9.1 | ||
2.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
web.page.icon='img/logo.png' | ||
web.page.menutitle='BPi-Monitor <sub>('+data.hostname+')</sub>' | ||
web.page.pagetitle='BPi-Monitor ('+data.hostname+')' | ||
|
||
web.status.1.name=Banana Pi | ||
web.statistics.1.name=Banana Pi | ||
|
||
include=/etc/rpimonitor/template/version.conf | ||
include=/etc/rpimonitor/template/uptime.conf | ||
include=/etc/rpimonitor/template/cpu_bananian.conf | ||
include=/etc/rpimonitor/template/pmu_bananian.conf | ||
include=/etc/rpimonitor/template/temperature_bananian.conf | ||
include=/etc/rpimonitor/template/memory.conf | ||
include=/etc/rpimonitor/template/swap.conf | ||
include=/etc/rpimonitor/template/sdcard.conf | ||
include=/etc/rpimonitor/template/network.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
######################################################################## | ||
# Extract CPU information | ||
# Page: 1 | ||
# Information Status Statistics | ||
# - cpu frequency - yes - yes | ||
# - pmu voltage - no - yes | ||
# - cpu load 1, 5, 15 - yes - yes | ||
# - cpu scaling governor - yes - no | ||
# - pmu current - yes - yes | ||
# - pmu consumption (V * A) - no - yes | ||
######################################################################## | ||
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=pmu_voltage | ||
dynamic.2.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/voltage_now | ||
dynamic.2.regexp=(.*) | ||
dynamic.2.postprocess=$1/1000000 | ||
dynamic.2.rrd=GAUGE | ||
|
||
dynamic.3.name=load1,load5,load15 | ||
dynamic.3.source=/proc/loadavg | ||
dynamic.3.regexp=^(\S+)\s(\S+)\s(\S+) | ||
dynamic.3.postprocess= | ||
dynamic.3.rrd=GAUGE | ||
|
||
dynamic.4.name=scaling_governor | ||
dynamic.4.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor | ||
dynamic.4.regexp=(.*) | ||
dynamic.4.postprocess= | ||
dynamic.4.rrd= | ||
|
||
dynamic.5.name=pmu_current | ||
dynamic.5.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now | ||
dynamic.5.regexp=(.*) | ||
dynamic.5.postprocess=$1/1000 | ||
dynamic.5.rrd=GAUGE | ||
|
||
dynamic.6.name=pmu_consumption | ||
dynamic.6.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now | ||
dynamic.6.regexp=(.*) | ||
dynamic.6.postprocess=$1/1000000 * $this->{'dynamic'}->{'pmu_voltage'} | ||
dynamic.6.rrd=GAUGE | ||
|
||
web.status.1.content.1.name=CPU / PMU | ||
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> PMU Current: <b>" + data.pmu_current + "mA</b>" | ||
web.status.1.content.1.line.3="Scaling governor: <b>" + data.scaling_governor + "</b>" | ||
|
||
web.statistics.1.content.1.name=Load / Clock speed / PMU | ||
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=pmu_consumption | ||
web.statistics.1.content.1.graph.5=cpu_frequency | ||
web.statistics.1.content.1.graph.6=pmu_current | ||
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.pmu_consumption.label=PMU consumption (W) | ||
web.statistics.1.content.1.ds_graph_options.cpu_frequency.label=Clock speed (MHz) | ||
web.statistics.1.content.1.ds_graph_options.pmu_current.label=PMU Current (mA) | ||
web.statistics.1.content.1.ds_graph_options.cpu_frequency.yaxis=2 | ||
web.statistics.1.content.1.ds_graph_options.pmu_current.yaxis=2 | ||
web.statistics.1.content.1.graph_options.y2axis={ position: "right" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
######################################################################## | ||
# Extract PMU information | ||
# Page: 1 | ||
# Information Status Statistics | ||
# - pmu usb voltage - no - yes | ||
# - pmu pwr voltage - no - yes | ||
# - pmu usb current - no - yes | ||
# - pmu pwr current - no - yes | ||
# - PWR consumption - yes - no | ||
# - USB consumption - yes - no | ||
# | ||
# logo from http://www.apkdad.com/wp-content/uploads/2013/01/Battery-Icon1.png | ||
######################################################################## | ||
dynamic.1.name=pmu_usb_voltage | ||
dynamic.1.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/usb/voltage_now | ||
dynamic.1.regexp=(.*) | ||
dynamic.1.postprocess=$1/1000000 | ||
dynamic.1.rrd=GAUGE | ||
|
||
dynamic.2.name=pmu_ac_voltage | ||
dynamic.2.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/voltage_now | ||
dynamic.2.regexp=(.*) | ||
dynamic.2.postprocess=$1/1000000 | ||
dynamic.2.rrd=GAUGE | ||
|
||
dynamic.3.name=pmu_usb_current | ||
dynamic.3.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/usb/current_now | ||
dynamic.3.regexp=(.*) | ||
dynamic.3.postprocess=$1/1000 | ||
dynamic.3.rrd=GAUGE | ||
|
||
dynamic.4.name=pmu_ac_current | ||
dynamic.4.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now | ||
dynamic.4.regexp=(.*) | ||
dynamic.4.postprocess=$1/1000 | ||
dynamic.4.rrd=GAUGE | ||
|
||
dynamic.5.name=pmu_usb_consumption | ||
dynamic.5.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/usb/current_now | ||
dynamic.5.regexp=(.*) | ||
dynamic.5.postprocess=$this->{'dynamic'}->{'pmu_usb_voltage'} * $1 / 1000 | ||
dynamic.5.rrd=GAUGE | ||
|
||
dynamic.6.name=pmu_ac_consumption | ||
dynamic.6.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now | ||
dynamic.6.regexp=(.*) | ||
dynamic.6.postprocess=$this->{'dynamic'}->{'pmu_ac_voltage'} * $1 / 1000 | ||
dynamic.6.rrd=GAUGE | ||
|
||
dynamic.7.name=pmu_cur_temp | ||
dynamic.7.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/temp1_input | ||
dynamic.7.regexp=(.*) | ||
dynamic.7.postprocess=$1/1000 | ||
dynamic.7.rrd=GAUGE | ||
|
||
web.status.1.content.1.name=Consumption | ||
web.status.1.content.1.icon=pmu.png | ||
web.status.1.content.1.line.1="PWR in: <b>" + data.pmu_ac_consumption + " mW</b> USB OTG in: <b>" + data.pmu_usb_consumption + " mW</b>" | ||
|
||
web.statistics.1.content.1.name=PMU current/voltage | ||
web.statistics.1.content.1.graph.1=pmu_ac_voltage | ||
web.statistics.1.content.1.graph.2=pmu_usb_voltage | ||
web.statistics.1.content.1.graph.3=pmu_ac_current | ||
web.statistics.1.content.1.graph.4=pmu_usb_current | ||
web.statistics.1.content.1.ds_graph_options.pmu_ac_voltage.label=Voltage PWR in (V) | ||
web.statistics.1.content.1.ds_graph_options.pmu_usb_voltage.label=Voltage USB in (V) | ||
web.statistics.1.content.1.ds_graph_options.pmu_ac_current.label=Current PWR in (mA) | ||
web.statistics.1.content.1.ds_graph_options.pmu_usb_current.label=Current USB in (mA) | ||
web.statistics.1.content.1.ds_graph_options.pmu_ac_voltage.yaxis=1 | ||
web.statistics.1.content.1.ds_graph_options.pmu_usb_voltage.yaxis=1 | ||
web.statistics.1.content.1.ds_graph_options.pmu_ac_current.yaxis=2 | ||
web.statistics.1.content.1.ds_graph_options.pmu_usb_current.yaxis=2 | ||
web.statistics.1.content.1.graph_options.y1axis={ position: "left", min: 4.5, max: 5.5 } | ||
web.statistics.1.content.1.graph_options.y2axis={ position: "right" } | ||
|
||
web.statistics.1.content.2.name=Consumption / temperature | ||
web.statistics.1.content.2.graph.1=pmu_ac_consumption | ||
web.statistics.1.content.2.graph.2=pmu_usb_consumption | ||
web.statistics.1.content.2.graph.3=pmu_cur_temp | ||
web.statistics.1.content.2.ds_graph_options.pmu_ac_consumption.label=Consumption (W) | ||
web.statistics.1.content.2.ds_graph_options.pmu_usb_consumption.label=USB devices (W) | ||
web.statistics.1.content.2.ds_graph_options.pmu_cur_temp.label="Current PMU temp (°C)" | ||
web.statistics.1.content.2.ds_graph_options.pmu_cur_temp.yaxis=2 | ||
web.statistics.1.content.2.graph_options.y2axis={ position: "right" } |
Oops, something went wrong.