Page 2 of 3
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 11:25 am
by mcrossley
jon_iz wrote: ↑Sat 19 Dec 2020 11:27 pm
WRT:
New: If enabled, the daily graph data files are now created at start-up and uploaded at first interval FTP. Previously you had to wait for the first EOD rollover.
I must be missing the obvious - i can't see the setting for this to enable it.
It's location hasn't changed...
Settings | Internet Settings | Web/FTP Settings | Include graph data files
Can you start Cumulus with the -debug command line parameter and post the MXdiags file for me please.
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 11:47 am
by jon_iz
Hi Mark,
I was looking for something different in config - so that box was already checked.
log (and config attached)
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 12:37 pm
by Mapantz
Here's how to fix it:
in your historic.htm
Change:
Code: Select all
<meta http-equiv="Content-Security-Policy" content="script-src code.highcharts.com">
To:
Code: Select all
<meta https-equiv="Content-Security-Policy" content="script-src 'self' code.highcharts.com">
This SHOULD be the fix.
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 12:47 pm
by jon_iz
Looking at the previous version historicT.htm - that line wasn't there?
also doesn't exist in current trendsT.htm
I have commented it out in the template file and that appears to have resolved it.
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 12:54 pm
by mcrossley
jon_iz wrote: ↑Sun 20 Dec 2020 11:47 am
Hi Mark,
I was looking for something different in config - so that box was already checked.
log (and config attached)
Thanks, but the log stopped too soon, I should have said I need to see the whole of the first interval FTP session.
But are you saying that removing that meta tag has fixed your issue?
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 12:59 pm
by jon_iz
Hi Mark,
yes, it is now generating the historic graphs -
https://www.duncreggan.net/cumulusmx/historic.htm
Do you still want a longer log?
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 1:01 pm
by mcrossley
No that's OK. I'll look at that meta tag again though.
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 1:14 pm
by M1DUL
mcrossley wrote: ↑Sun 20 Dec 2020 12:54 pm
But are you saying that removing that meta tag has fixed your issue?
Hi Mark,
I have taken out the <meta http-equiv="Content-Security-Policy" content="script-src code.highcharts.com"> code, and now it is working
I did try the code <meta https-equiv="Content-Security-Policy" content="script-src 'self' code.highcharts.com"> which Mapantz said to use, but that stoped the buttons from working.
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 2:23 pm
by The Dalek Hunter
No historic charts here either
https://longsuttonweather.co.uk/historic.htm
And removing the line mentioned above fixes it here as well
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 4:48 pm
by mcrossley
I have removed the offending line from the file in the zip download as well.
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 7:38 pm
by rogerthn
historicT.htm replaced and
https://rogerthn.se/weather2/historic.htm does display something but no data
It looks like no period is selected (1m 3m 6m YTD ...)
Selecting one does result in "console errors"
Code: Select all
Error: <rect> attribute width: Expected length, "NaN".
highstock.src.js:5415 Error: <rect> attribute width: Expected length, "NaN".
_defaultSetter @ highstock.src.js:5415
(anonymous) @ highstock.src.js:3911
f.objectEach @ highstock.src.js:2105
attr @ highstock.src.js:3890
(anonymous) @ highstock.src.js:42584
a.drawMasks @ highstock.src.js:42583
a.onMouseUp @ highstock.src.js:43086
g @ highstock.src.js:42833
Enclosing MXdiags with debug, IP's replaced with A.B.C.D
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 8:25 pm
by mcrossley
All your historic data files are empty, but no errors are being logged.
Could you zip up and attach your dayfile.txt please and I'll run it through a copy on my debugger.
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 8:54 pm
by rogerthn
Might be decimal ,
Started with
Code: Select all
sudo mono CumulusMX.exe -lang sv-SE -debug
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 9:01 pm
by HansR
rogerthn wrote: ↑Sun 20 Dec 2020 8:54 pm
Might be decimal ,
Started with
Code: Select all
sudo mono CumulusMX.exe -lang sv-SE -debug
I don't understand what you are saying Roger. Could you elaborate?
Re: CumulusMX v3.9.3 b3098
Posted: Sun 20 Dec 2020 9:29 pm
by rogerthn
HansR wrote: ↑Sun 20 Dec 2020 9:01 pm
I don't understand what you are saying Roger. Could you elaborate?
I do have comma as decimal point on
https://rogerthn.se/weather3/index.htm and in dayfile.txt
Might be the issue?
https://rogerthn.se/weather2/historic.htm was OK using b3097