Advertisement
Guest User

axp209_cpu_pmu_temp.conf

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