luci-app-statistics: add watt-ups for nut and skip unsupported values
authorJo-Philipp Wich <jo@mein.io>
Mon, 3 Apr 2023 10:45:50 +0000 (12:45 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 3 Apr 2023 10:47:47 +0000 (12:47 +0200)
commitdd1111407d8f0b1f7f761c5ebbe6ae43a268a4a4
tree41e8984ccc8921babdfdc319204c5d90e3d8647f
parent6b9a985fa7faecadb84a53fb85d7afa8791e93f1
luci-app-statistics: add watt-ups for nut and skip unsupported values

Only render NUT charts for actually available data and add a chart
definition for `watt-ups` values while we're at it.

Ref: https://forum.openwrt.org/t/x/156246
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/nut.js