Page 38 of 41

Re: Cumulusutils

Posted: Mon 13 Apr 2020 7:25 pm
by HansR
@meteosangonera : No, that does not seem normal to me :(. I assume you do NOT use the website generator?
There was a problem with the map which I fixed this morning, I assume that was the cause. You could try again. I can generate normally.

Re: Cumulusutils

Posted: Mon 13 Apr 2020 7:54 pm
by meteosangonera
HansR wrote: Mon 13 Apr 2020 7:25 pm @meteosangonera : No, that does not seem normal to me :(. I assume you do NOT use the website generator?
There was a problem with the map which I fixed this morning, I assume that was the cause. You could try again. I can generate normally.
No, I don't use the website generator.
I've re-generated all the files and everything's the same.

Is it possible that I have to upload the file HighchartsDefaults.js or some other file to my server?

Re: Cumulusutils

Posted: Mon 13 Apr 2020 8:11 pm
by HansR
@meteosangonera: no, if you only use some modules, there is nothing to upload. You only get the txt-output.
The HighchartsDefaults.js are really only for the website.

Could you send me the output and the logfile?

Re: Cumulusutils

Posted: Mon 13 Apr 2020 8:12 pm
by HansR
v3.0.5 is online

This is a fix to version 3.0.4 in relation to the website generator.
[Edit:] and is tested OK.

Re: Cumulusutils

Posted: Tue 14 Apr 2020 7:24 am
by laulau
Hi,
Ive update to V305 but graphs don't work anymore :(
here : http://laurentmey.fr/davis/utils/index.html

Re: Cumulusutils

Posted: Tue 14 Apr 2020 8:21 am
by HansR
@meteosangonera:
@laulau:
Yes, there is a problem with the interaction of the Highcharts / jQuery includes, as the multiple possibilities increase with CumulusUtils complexity. :? :groan:
I am preparing the solution and the explanation (understanding is always useful).
I expect this around noon.

(fortunately, updating CumulusUtils is a piece of cake ;) )

Re: Cumulusutils

Posted: Tue 14 Apr 2020 9:38 am
by HansR
v 3.0.6 is online

I explain in the README:

Higcharts, jQuery and other required libraries

CumulusUtils uses jQuery, Highcharts and Leaflet libraries for the reports and control of selections. These libraries produce errors when included more than once.
When generating the websites, the libraries are included at the main control level (INDEX.HTML).

When using CumulusUtils as a module generator – so only for e.g. pwsFWI, charts or whichever the user finds useful – there is no high control level as that is created by the user. Therefore, the libraries are included in the reports when generated as a module.

For jQuery an exception is made because it is a very general purpose library and the user may already use it for his own coding. Therefore the jQuery is separately controlled by the ini file parameter GeneratejQueryInclude in the section [General].

Please, let me know how you get on.

NOTE: if users find this a difficult solution because they work other ways, please contact me and we will try to find a solution.

Re: Cumulusutils

Posted: Tue 14 Apr 2020 12:12 pm
by meteosangonera
HansR wrote: Tue 14 Apr 2020 9:38 am v 3.0.6 is online

I explain in the README:

Higcharts, jQuery and other required libraries

CumulusUtils uses jQuery, Highcharts and Leaflet libraries for the reports and control of selections. These libraries produce errors when included more than once.
When generating the websites, the libraries are included at the main control level (INDEX.HTML).

When using CumulusUtils as a module generator – so only for e.g. pwsFWI, charts or whichever the user finds useful – there is no high control level as that is created by the user. Therefore, the libraries are included in the reports when generated as a module.

For jQuery an exception is made because it is a very general purpose library and the user may already use it for his own coding. Therefore the jQuery is separately controlled by the ini file parameter GeneratejQueryInclude in the section [General].

Please, let me know how you get on.

NOTE: if users find this a difficult solution because they work other ways, please contact me and we will try to find a solution.

Now everything works fine, (at least the modules I use).

Thanks!! :clap: :clap: :clap: :clap:

Re: Cumulusutils

Posted: Tue 14 Apr 2020 1:11 pm
by HansR
:D

Re: Cumulusutils

Posted: Tue 14 Apr 2020 2:09 pm
by laulau
Hi Hans,
Last version on line but graphs not working :groan:
It looks like the json files are not at the expected place (error 404 in console with F12)!
There are at the same level than realtime.txt ant relatimegauges.txt that are found .
this

Code: Select all

CumulusRealTimeLocation=../
is the cumulusutils entry.
What have i missed ?
Thanks

Re: Cumulusutils

Posted: Tue 14 Apr 2020 2:29 pm
by laulau

Code: Select all

[Prediction]
predictionURL=
Is this a PREDICTION FORECAST OPTION ? ;) :lol:

Re: Cumulusutils

Posted: Tue 14 Apr 2020 2:33 pm
by HansR
Bonjour Laurent,

If I look at the console I see the following:
200414 LaurentMey issue.png
This means, that the graphconfig.json does not get it's path which should be identical to to the realtime files.
YAB I guess :cry: :bash: This appears to be a tough part.

I'll get back to you.

Re: Cumulusutils

Posted: Tue 14 Apr 2020 2:38 pm
by PaulMy
Thanks Hans,
v3.0.6 here and everything seems to work fine. www.komokaweather.com/cumulusutils

Enjoy,
Paul

Re: Cumulusutils

Posted: Tue 14 Apr 2020 2:46 pm
by HansR
@Laurent: This 3.0.7 should do the trick
@PaulMy: Thanks, good to hear ;)

When a website generator version survives more than 2 days, I'll open a bottle of wine and disappear from the forum for a week :?

[Edit:] The deep cause of all this confusion is, that I rewrote cumuluscharts, took out a bit of code and put it in a separate function because my technique does not call the document ready function. I minimised everything (made it pretty unreadable), put it in the generator string and put the configuration code in that part. It's the minimisation which kills here. :ugeek:

We do want to do things, not because they are easy, but because they are hard.

Re: Cumulusutils

Posted: Tue 14 Apr 2020 3:09 pm
by laulau
It works now :clap: :clap:
I think I will save this version somewhere, we will never know! ;) :lol: