Page 1 of 1

Dashboard Issue with Trend Icons (green/red triangles)

Posted: Wed 19 Aug 2020 8:37 pm
by HKWe5e
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...

Code: Select all

if (data.TempTrend < 0) {
to

Code: Select all

if (String(data.TempTrend) < "0") {
and changed

Code: Select all

if (data.PressTrend < 0) {
to

Code: Select all

if (String(data.PressTrend) < "0") {
...and trend icons behave as expected.

Regards,

Re: Dashboard Issue with Trend Icons (green/red triangles)

Posted: Thu 20 Aug 2020 9:00 am
by mcrossley
Thanks, a comma decimal issue, I'll fix the next release.