Airspy ADS-B decoder

We should probably start a new thread just for RPIMonitor.

I added GPU temp to the temperature gauge.
image
Not sure if they are ever very different but it was using
cat /sys/class/thermal/thermal_zone0/temp
so I added the
vcgencmd measure_temp
version which gets the GPU temp, I believe.

This goes in /etc/rpimonitor/template/temperature.conf

########################################################################
# Extract CPU Temperature information
#  Page: 1
#  Information               Status     Statistics
#  - cpu temperature         - yes      - yes
#
# Note: Rounding temperatures to two digits is done with the
#  post-processiing formula: sprintf("%.2f", $1/1000)
#  It is possible to roud to 1 digit with sprintf("%.1f", $1/1000)
########################################################################
dynamic.12.name=soc_temp
dynamic.12.source=/sys/devices/virtual/thermal/thermal_zone0/temp
dynamic.12.regexp=(.*)
dynamic.12.postprocess=sprintf("%.2f", $1/1000)
dynamic.12.rrd=GAUGE

dynamic.13.name=gpu_temp
dynamic.13.source=vcgencmd measure_temp
dynamic.13.regexp=temp=(.*)'C
dynamic.13.postprocess=sprintf("%.2f", $1)
dynamic.13.rrd=GAUGE

web.status.1.content.4.name=Temperature
web.status.1.content.4.icon=cpu_temp.png
web.status.1.content.4.line.1=JustGageBar("CPU Temperature", data.soc_temp+"°C", 30, data.soc_temp, 80, 100, 80)+" "+JustGageBar("GPU Temperature", data.gpu_temp+"°C", 30, data.gpu_temp, 80, 100, 80)

web.statistics.1.content.8.name=Temperature
web.statistics.1.content.8.graph.1=soc_temp
web.statistics.1.content.8.ds_graph_options.soc_temp.label=CPU temperature (°C)
web.statistics.1.content.8.graph.2=gpu_temp
web.statistics.1.content.8.ds_graph_options.gpu_temp.label=GPU temperature (°C)