SHARE
TWEET

axp209_cpu_pmu_temp.conf

a guest Jan 28th, 2016 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ########################################################################
  2. # Extract A10/A20/AXP209 information
  3. #  Page: 1
  4. #  Information               Status     Statistics
  5. #  - cpu frequency           - yes      - yes
  6. #  - cpu load 1, 5, 15       - yes      - yes
  7. #  - cpu scaling governor    - yes      - no
  8. #  - power in voltage        - yes      - yes
  9. #  - power in consumption    - yes      - yes
  10. #  - USB OTG voltage         - yes      - yes
  11. #  - USB OTG consumption     - yes      - yes
  12. #  - battery voltage         - yes      - yes
  13. #  - battery consumption     - yes      - yes
  14. #  - total consumption       - yes      - yes
  15. #  - power in current        - yes      - yes
  16. #  - USB OTG current         - yes      - yes
  17. #  - battery current         - yes      - yes
  18. #  - soc temperature         - yes      - yes
  19. #  - pmu temperature         - yes      - yes
  20. #  - disk temperature        - yes      - yes
  21. ########################################################################
  22. dynamic.1.name=cpu_frequency
  23. dynamic.1.source=/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
  24. dynamic.1.regexp=(.*)
  25. dynamic.1.postprocess=$1/1000
  26. dynamic.1.rrd=GAUGE
  27.  
  28. dynamic.2.name=load1,load5,load15
  29. dynamic.2.source=/proc/loadavg
  30. dynamic.2.regexp=^(\S+)\s(\S+)\s(\S+)
  31. dynamic.2.postprocess=
  32. dynamic.2.rrd=GAUGE
  33.  
  34. dynamic.3.name=scaling_governor
  35. dynamic.3.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  36. dynamic.3.regexp=(.*)
  37. dynamic.3.postprocess=
  38. dynamic.3.rrd=
  39.  
  40. dynamic.4.name=ac_voltage
  41. dynamic.4.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/voltage_now
  42. dynamic.4.regexp=(.*)
  43. dynamic.4.postprocess=$1/1000000
  44. dynamic.4.rrd=GAUGE
  45.  
  46. dynamic.5.name=ac_consumption
  47. dynamic.5.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now
  48. dynamic.5.regexp=(.*)
  49. dynamic.5.postprocess=sprintf("%.2f", $1/1000000 * $this->{'dynamic'}->{'ac_voltage'})
  50. dynamic.5.rrd=GAUGE
  51.  
  52. dynamic.6.name=usb_voltage
  53. dynamic.6.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/usb/voltage_now
  54. dynamic.6.regexp=(.*)
  55. dynamic.6.postprocess=$1/1000000
  56. dynamic.6.rrd=GAUGE
  57.  
  58. dynamic.7.name=usb_consumption
  59. dynamic.7.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/usb/current_now
  60. dynamic.7.regexp=(.*)
  61. dynamic.7.postprocess=sprintf("%.2f", $1/1000000 * $this->{'dynamic'}->{'usb_voltage'})
  62. dynamic.7.rrd=GAUGE
  63.  
  64. dynamic.8.name=battery_voltage
  65. dynamic.8.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/battery/voltage_now
  66. dynamic.8.regexp=(.*)
  67. dynamic.8.postprocess=$1/1000000
  68. dynamic.8.rrd=GAUGE
  69.  
  70. dynamic.9.name=battery_consumption
  71. dynamic.9.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/battery/current_now
  72. dynamic.9.regexp=(.*)
  73. dynamic.9.postprocess=sprintf("%.2f", $1/1000000 * $this->{'dynamic'}->{'battery_voltage'})
  74. dynamic.9.rrd=GAUGE
  75.  
  76. dynamic.10.name=total_consumption
  77. dynamic.10.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/battery/current_now
  78. dynamic.10.regexp=(.*)
  79. dynamic.10.postprocess=sprintf("%.2f", $1/200000 + $this->{'dynamic'}->{'ac_consumption'} + $this->{'dynamic'}->{'usb_consumption'})
  80. dynamic.10.rrd=GAUGE
  81.  
  82. dynamic.11.name=usb_current
  83. dynamic.11.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/usb/current_now
  84. dynamic.11.regexp=(.*)
  85. dynamic.11.postprocess=$1/1000
  86. dynamic.11.rrd=GAUGE
  87.  
  88. dynamic.12.name=ac_current
  89. dynamic.12.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now
  90. dynamic.12.regexp=(.*)
  91. dynamic.12.postprocess=$1/1000
  92. dynamic.12.rrd=GAUGE
  93.  
  94. dynamic.13.name=battery_current
  95. dynamic.13.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/battery/current_now
  96. dynamic.13.regexp=(.*)
  97. dynamic.13.postprocess=$1/1000
  98. dynamic.13.rrd=GAUGE
  99.  
  100. dynamic.14.name=disk_temp
  101. dynamic.14.source=/tmp/disktemp
  102. dynamic.14.regexp=(.*)
  103. dynamic.14.postprocess=$1/10
  104. dynamic.14.rrd=GAUGE
  105.  
  106. dynamic.15.name=soc_temp
  107. dynamic.15.source=/tmp/soctemp
  108. dynamic.15.regexp=(.*)
  109. dynamic.15.postprocess=$1/10
  110. dynamic.15.rrd=GAUGE
  111.  
  112. dynamic.16.name=pmu_temp
  113. dynamic.16.source=/tmp/pmutemp
  114. dynamic.16.regexp=(.*)
  115. dynamic.16.postprocess=$1/10
  116. dynamic.16.rrd=GAUGE
  117.  
  118. web.status.1.content.1.name=CPU
  119. web.status.1.content.1.icon=cpu.png
  120. web.status.1.content.1.line.1="Loads: <b>" + data.load1 + "</b> [1min] - <b>" + data.load5 + "</b> [5min] - <b>" + data.load15 + "</b> [15min]"
  121. web.status.1.content.1.line.2="CPU frequency: <b>" + data.cpu_frequency + "MHz</b> &nbsp;Governor: <b>" + data.scaling_governor + "</b>"
  122.  
  123. web.status.1.content.2.name=PMU
  124. web.status.1.content.2.icon=pmu.png
  125. web.status.1.content.2.line.1="Total PMU Consumption: <b>" + data.total_consumption + " W</b>"
  126. web.status.1.content.2.line.2="PWR in: <b>" + data.ac_consumption + " W</b> USB OTG in: <b>" + data.usb_consumption + " W</b> BATT in: <b>" + data.battery_consumption + " W</b>"
  127.  
  128. web.status.1.content.3.name=Temperature
  129. web.status.1.content.3.icon=cpu_temp.png
  130. web.status.1.content.3.line.1=JustGageBar("SoC", "°C",0, data.soc_temp , 100,100,80,percentColors,50,60)+" "+JustGageBar("PMU", "°C",0, data.pmu_temp , 100,100,80,percentColors,40,50)+" "+JustGageBar("Disk", "°C",0, data.disk_temp , 100,100,80,percentColors,40,45)
  131.  
  132. web.statistics.1.content.1.name=Load / cpufreq / Consumption
  133. web.statistics.1.content.1.graph.1=load1
  134. web.statistics.1.content.1.graph.2=load5
  135. web.statistics.1.content.1.graph.3=load15
  136. web.statistics.1.content.1.graph.4=total_consumption
  137. web.statistics.1.content.1.graph.5=cpu_frequency
  138. web.statistics.1.content.1.ds_graph_options.load1.label=Load 1 min
  139. web.statistics.1.content.1.ds_graph_options.load5.label=Load 5 min
  140. web.statistics.1.content.1.ds_graph_options.load15.label=Load 15 min
  141. web.statistics.1.content.1.ds_graph_options.total_consumption.label=Consumption (W)
  142. web.statistics.1.content.1.ds_graph_options.cpu_frequency.label=Clock speed (MHz)
  143. web.statistics.1.content.1.ds_graph_options.cpu_frequency.yaxis=2
  144. web.statistics.1.content.1.graph_options.y2axis={ position: "right" }
  145.  
  146. web.statistics.1.content.2.name=PMU current/voltage
  147. web.statistics.1.content.2.graph.1=ac_voltage
  148. web.statistics.1.content.2.graph.2=usb_voltage
  149. web.statistics.1.content.2.graph.3=battery_voltage
  150. web.statistics.1.content.2.graph.4=ac_current
  151. web.statistics.1.content.2.graph.5=usb_current
  152. web.statistics.1.content.2.graph.6=battery_current
  153. web.statistics.1.content.2.ds_graph_options.ac_voltage.label=Voltage DC-IN (V)
  154. web.statistics.1.content.2.ds_graph_options.usb_voltage.label=Voltage USB OTG (V)
  155. web.statistics.1.content.2.ds_graph_options.battery_voltage.label=Voltage LiPo (V)
  156. web.statistics.1.content.2.ds_graph_options.ac_current.label=Current DC-IN (mA)
  157. web.statistics.1.content.2.ds_graph_options.usb_current.label=Current USB OTG (mA)
  158. web.statistics.1.content.2.ds_graph_options.battery_current.label=Current LiPo (mA)
  159. web.statistics.1.content.2.ds_graph_options.ac_voltage.yaxis=1
  160. web.statistics.1.content.2.ds_graph_options.usb_voltage.yaxis=1
  161. web.statistics.1.content.2.ds_graph_options.battery_voltage.yaxis=1
  162. web.statistics.1.content.2.ds_graph_options.ac_current.yaxis=2
  163. web.statistics.1.content.2.ds_graph_options.usb_current.yaxis=2
  164. web.statistics.1.content.2.ds_graph_options.battery_current.yaxis=2
  165. web.statistics.1.content.2.graph_options.y1axis={ position: "left", min: 1.5, max: 11 }
  166. web.statistics.1.content.2.graph_options.y2axis={ position: "right" }
  167.  
  168. web.statistics.1.content.3.name=Temperature / Consumption
  169. web.statistics.1.content.3.graph.1=pmu_temp
  170. web.statistics.1.content.3.graph.2=disk_temp
  171. web.statistics.1.content.3.graph.3=soc_temp
  172. web.statistics.1.content.3.graph.4=total_consumption
  173. web.statistics.1.content.3.ds_graph_options.pmu_temp.label=PMU temperature (°C)
  174. web.statistics.1.content.3.ds_graph_options.disk_temp.label=Disk temperature (°C)
  175. web.statistics.1.content.3.ds_graph_options.soc_temp.label=SoC temperature (°C)
  176. web.statistics.1.content.3.ds_graph_options.total_consumption.label=Consumption (W)
  177. web.statistics.1.content.3.ds_graph_options.total_consumption.yaxis=2
  178. web.statistics.1.content.3.graph_options.y1axis={ position: "left", min: 0, max: 70 }
  179. web.statistics.1.content.3.graph_options.y2axis={ position: "right" }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top