Page 1 of 1

b3101 console chart - no UV

Posted: Thu 21 Jan 2021 7:13 pm
by jon_iz
I've just updated to b3101, done my usual tweaks to add additional buttons and then noted that the console solar chart appears to be stuck loading the UV data:

Capture._nosolarPNG.PNG
The Web version is fine:

Capture_solar.PNG
I always take a copy of the .js files first and even rolling back to the pre-button revision, the result is the same.
My install process is take a copy of CMX and then overwrite the new version over the old Cumulus MX directory to make sure i catch all the changed files, then update the .js and T.htm files i change in the web folder.
So did i miss something this time?

diags also attached.

Re: b3101 console chart - no UV

Posted: Thu 21 Jan 2021 8:47 pm
by Phil23
Just checked here & noticed the same.
No UV & stuck on loading....

My Website files are older version due to customization, but the console files are stock.

Actually just tried swapping out the latest charts.js with the previous version it it worked OK.

Someone who is quick on Java can probably spot the issue.

Re: b3101 console chart - no UV

Posted: Thu 21 Jan 2021 8:54 pm
by mcrossley
Doh! My test system did not have UV enabled...

Re: b3101 console chart - no UV

Posted: Thu 21 Jan 2021 9:09 pm
by Phil23
Looks like the is "Stuff" missing in the newer file around line 860.
That translates to line 824 in the previous version.

This block, which I have little understanding of.
And on closer look, there could be more like a re-write of that area which I don't pretend to understand.

Code: Select all

        yAxis: [{
                // left
                title: {text: 'Solar Radiation (W/m\u00B2)'},
                min: 0,
                opposite: false,
                labels: {
                    align: 'right',
                    x: -5
                }
            }, {
                // right
                opposite: true,
                linkedTo: 0,
                min: 0,
                labels: {
                    align: 'left',
                    x: 5
                }
            }],

Re: b3101 console chart - no UV

Posted: Thu 21 Jan 2021 9:15 pm
by mcrossley
Try this version...

Re: b3101 console chart - no UV

Posted: Thu 21 Jan 2021 9:24 pm
by jon_iz
mcrossley wrote: Thu 21 Jan 2021 9:15 pm Try this version...
Nice quick fix. Sorted. Thanks Mark.