mgunther
New Member
Thanks bramj, that works! I actually removed the sizing parameters from /var/www/collectd/index.html because they are not needed when the png images are already at the desired size. The section you mentioned looks like this now:
The temperature graph was not as high as the other ones because it had no legend. I fixed this in /home/pi/dump-tools/collectd/make-graphs.sh by adding ":temperature" here:
Code:
<div style="width: 2390px; height: 273px;">
<img id="rate" src="dump1090-rpi-rate-24h.png">
<img id="acs" src="dump1090-rpi-acs-24h.png">
</div>
<div style="width: 2390px; height: 273px;">
<img id="cpu" src="dump1090-rpi-cpu-24h.png">
<img id="tracks" src="dump1090-rpi-tracks-24h.png">
</div>
<div style="width: 2390px; height: 273px;">
<img id="range" src="dump1090-rpi-range-24h.png">
<img id="ctemp" src="table-rpi-core_temp-24h.png">
</div>
Code:
metric_temp_graph() {
rrdtool graph \
"$1" \
--start end-$4 \
--width 480 \
--height 200 \
--step "$5" \
--title "Core Temperature" \
--vertical-label "Degrees Celcius" \
--lower-limit 0 \
--upper-limit 100 \
--rigid \
--units-exponent 1 \
"DEF:traw=$2/gauge-cpu_temp.rrd:value:MAX" \
"CDEF:tfin=traw,1000,/" \
"AREA:tfin#ffcc00:temperature"
}