Dashboard Issue with Trend Icons (green/red triangles)
Posted: Wed 19 Aug 2020 8:37 pm
I am using CumulusMX with mono in a Ubuntu 18.04 environment. For some reason, the two trend icons under Temperature and Pressure in the Dashboard page always point UP, even if a trend is negative.
I know it's a hack and does not address the root cause, but changing to strings works for me:
In interface/js/dashboard.js I have changed... to
and changed
to
...and trend icons behave as expected.
Regards,
I know it's a hack and does not address the root cause, but changing to strings works for me:
In interface/js/dashboard.js I have changed...
Code: Select all
if (data.TempTrend < 0) {Code: Select all
if (String(data.TempTrend) < "0") {Code: Select all
if (data.PressTrend < 0) {Code: Select all
if (String(data.PressTrend) < "0") {Regards,