Page 19 of 41

Re: Cumulusutils

Posted: Sun 17 Nov 2019 6:53 am
by HansR
Well @beteljuice, if ever there was a challenge 8-)

Re: Cumulusutils

Posted: Sun 17 Nov 2019 7:32 am
by Phil23
He needs a poke with a stick some days... :lol:

Re: Cumulusutils

Posted: Sun 17 Nov 2019 11:00 am
by HansR
Any new users of CumulusUtils I would like to ask to stick to the run frequencies advised in the README. Especially the new Maps module uses internet resources and a minute frequency is not, really NOT, required. It uses internet resources, even if the xml is not really large, and high run frequency has no added value. Maps requires a daily run or manually as required.

Thank you.

Cheers, Hans

Re: Cumulusutils

Posted: Sun 17 Nov 2019 1:57 pm
by HansR
Version 1.9.4 is online
Last alive date and some error handling added.
MapBox references removed and prepared for Open Street Map only.

Re: Cumulusutils

Posted: Sun 17 Nov 2019 3:34 pm
by PaulMy
Hi Hans,
Updated to v1.9.4 and all looks good
http://www.komokaweather.com/komokaweather-ca/wxFWI.php
http://www.komokaweather.com/komokaweather-ca/wxMap.php

I will need to correct my dayfile highRainRate though...
http://www.komokaweather.com/komokaweat ... xTop10.php

Enjoy,
Paul

Re: Cumulusutils

Posted: Sun 17 Nov 2019 3:50 pm
by HansR
PaulMy wrote: Sun 17 Nov 2019 3:34 pm I will need to correct my dayfile highRainRate though...
http://www.komokaweather.com/komokaweat ... xTop10.php
:lol: that's not a one off error... what is going on over there :?

And btw: your sysinfo.txt needs to be processed ;)
(thnx for getting utils their own menu choice)

NOTE: CumulusUtils now has the same version number as where Cumulus 1 froze :clap:

Re: Cumulusutils

Posted: Sun 17 Nov 2019 6:47 pm
by beteljuice
the beteljuice is in hospital, very not well and not attached to his normal, but failing like me, tech sources.

I am second guessing that you are talking about code writing code in an object that requires quotes ?

If you hard code with quotes and the object or entire instance fails..... = wrong quotes / too many / few quotes = ESCAPE the quote (s) that's causing the grief !

regardless ... <a href=>Website</a> This is a bad thing :bash:

... but it does give me a clue how things are stitched.

For your links you can try:

Code: Select all

\'//www.weerstationtzandt.nl\' target=\'_new\' // play safe, use different quotes and esc
\"//www.weerstationtzandt.nl\" target=\"_new\" // use same quotes escaped
'//www.weerstationtzandt.nl' target='_new' // use single quotes only because not used elsewhere

Re: Cumulusutils

Posted: Sun 17 Nov 2019 8:31 pm
by HansR
@beteljuice:
beteljuice wrote: Sun 17 Nov 2019 6:47 pm the beteljuice is in hospital, very not well and not attached to his normal, but failing like me, tech sources.
Sorry to hear though it was not unannounced. You sound worse than you made believe some time ago, hope you get well soon.
Missing the suggestions and challenges. Situation as is, I must do with your best second guessing ;)
beteljuice wrote: Sun 17 Nov 2019 6:47 pm I am second guessing that you are talking about code writing code in an object that requires quotes ?
Partly because the generated code is - and has - been tried and tested without being generated of course.
beteljuice wrote: Sun 17 Nov 2019 6:47 pm If you hard code with quotes and the object or entire instance fails..... = wrong quotes / too many / few quotes = ESCAPE the quote (s) that's causing the grief !

regardless ... <a href=>Website</a> This is a bad thing :bash:
:shock: Sorry for that ;) but that can be repaired and it is not the issue.
beteljuice wrote: Sun 17 Nov 2019 6:47 pm ... but it does give me a clue how things are stitched.
Don't flatter me... and btw it's work in progress.
beteljuice wrote: Sun 17 Nov 2019 6:47 pm For your links you can try:

Code: Select all

\'//www.weerstationtzandt.nl\' target=\'_new\' // play safe, use different quotes and esc
\"//www.weerstationtzandt.nl\" target=\"_new\" // use same quotes escaped
'//www.weerstationtzandt.nl' target='_new' // use single quotes only because not used elsewhere
The single quotes is the only thing which has not been tried yet (I did learn from the pwsFWI exercise you know). Will do. The other options have been tried but don't work.

Current problem is, I can't just experiment because a guy from Sheffield is running the Maps module on a minute frequency and he does not react to email nor my message here in the forum. Kind of hostage of my own design. This means I can't just edit the file because he will override it before I can test the results. Anyway, that's life. If he will not respond guess I have to block him out rigorously.

So it won't be tested quickly but you'll see it when it works.
Thanks for taking the trouble to respond despite not in the best of shapes. Get better soon, your mood will no doubt improve with it. We're missing you here. :!:

Re: Cumulusutils

Posted: Sun 17 Nov 2019 8:34 pm
by beteljuice
thought, I don't know what format it is actually set in ...

so assuming var = "string";

Code: Select all

var = "\'//www.weerstationtzandt.nl\' target=\'_new\'";

Re: Cumulusutils

Posted: Sun 17 Nov 2019 9:14 pm
by HansR
@beteljuice: I did not check the library for the prototypes but yes, I assume it is a string parameter of the function.

However, you can sleep quietly because the single quotes did the trick. I should have known: javascript ugh...
After my answer I blocked the high frequency stalker, edited my own maps.txt and it worked. I'll create a release tomorrow.
Thnx, sleep well :clap:

And btw: you'll have to travel the world to get your beers in Poland and Australia or they come and visit you ;)

Re: Cumulusutils

Posted: Sun 17 Nov 2019 9:17 pm
by beteljuice
Welcome ... signing out ;)

Re: Cumulusutils

Posted: Mon 18 Nov 2019 10:12 am
by HansR
Version 1.9.5 is online
It contains the fix discussed above so websites are now opened in another tab or window.
Please note my remark on the run frequency of the Maps module.

Re: Cumulusutils

Posted: Mon 18 Nov 2019 4:57 pm
by kocher
Greetings to all

Beteljuice, I hope you will soon regain your spirits and health. ;)

I think that starting tonight I join the Maps group, so we will already be 2 users in Spain

Saludos desde San Sebastian, Spain

Re: Cumulusutils

Posted: Tue 19 Nov 2019 7:48 am
by HansR
@kocher:
Did not see you on the map this morning. Everything OK with your updated server?

@Paul:
I noticed the discussion in the MX board. Without interfering there I have a CumulusUtils specific reaction here.

Indeed, the FTP is executed before the external program (which is surprising because the external program is a FTP feature - why?). As a consequence I have the resulting files uploaded on the 10 minute frequency (so they are uploaded too often). It worked and I did not pay attention anymore. But I will now, indeed it is not correct, the files should only upload once at generation time. I think of including the upload in the Utils program itself so the user would not have to think about handling the upload.

Would you - or anybody else - be interested in an automatic upload by CumulusUtils itself at generation time (so if you run maps, the maps.txt is uploaded to the website immediately)? Would a feature like this be required to be optional?

Beside that, as CumulusUtils is becoming more heavy at every update, be aware that especially Maps and SysInfo are taking seconds to execute because of OS and internet interactions, in contrast to the data modules which are very fast: top10, pwsfwi and graphs execute together in less than a second (depending on amount of data of course). This may be a reason to start executing CumulusUtils outside of Cumulus external program feature. I already use crontab which gives more control on frequency and time of run. I am not aware of a Windows equivalent of crontab. Anybody?

Timing btw is in the log file (search on 'timing').

Best, Hans

Re: Cumulusutils

Posted: Tue 19 Nov 2019 8:33 am
by pernaczy
HansR wrote: Tue 19 Nov 2019 7:48 am
Would you - or anybody else - be interested in an automatic upload by CumulusUtils itself at generation time (so if you run maps, the maps.txt is uploaded to the website immediately)? Would a feature like this be required to be optional?
Yes
This may be a reason to start executing CumulusUtils outside of Cumulus external program feature. I already use crontab which gives more control on frequency and time of run. I am not aware of a Windows equivalent of crontab. Anybody?
I'm executing CumulusUtils from "batch" file under Windows "task scheduler" once a day.
To upload all CumulusUtils files (once a day) I'm using "CumulusToolbox".

Piotr