Page 13 of 26

Re: For New Users

Posted: Sun 23 May 2021 12:58 pm
by staccermaccer
Hi All!

Thanks for all the tips i oversaw everything, changed it and that worked...

But i have a dropdown-list now for 2021 but no datasheet...

We keep on searching.

Marc,

Re: For New Users

Posted: Sun 23 May 2021 1:04 pm
by HansR
??? shouldn't that be in another thread or did I miss something?

Re: For New Users

Posted: Sun 23 May 2021 2:07 pm
by beteljuice
Anything he has with a year selector only shows data for this year eg. records, yadr. (or no data - eg. noaa)

Re: For New Users

Posted: Sun 23 May 2021 2:14 pm
by HansR
@beteljuice: That probably means the file names are not conform what they should be according to the locale or something like that. Anyway cutils fails to get the older data into the list. Remember dayfile can have a similar local issue in the dates/separators.

@Marc: you could send me the data, so i can take a look.

Re: For New Users

Posted: Mon 24 May 2021 9:17 am
by staccermaccer
@ Hans

Just send you a PM!

Marc,

Re: For New Users

Posted: Tue 25 May 2021 4:36 am
by kocher
Good morning Hans

As I promised you, I have started, with some difficulties, to try to help my compatriot who lives in Mallorca (Balearic Islands).

For now, we have only managed to reach this result:

http://www.estaciosonribes.com/cumulusMX/FWI/

As always, your advice will be greatly appreciated.

Javier

Re: For New Users

Posted: Tue 25 May 2021 5:27 am
by HansR
Good morning Javier,

Thanks for assisting Spanish speaking users!
I noticed the effort because he appeared on the map. Unfortunately without the correct URL which you now provide :) but it would be nice to have that corrected.

From what I see CumulusUtils cannot find the css nor the lib directories on the website:

Code: Select all

404 Not Found: GET http://www.estaciosonribes.com/cumulusMX/FWI/css/gauges-ss.css
So I think he needs first to create the directory css and lib in http://www.estaciosonribes.com/cumulusMX/FWI.
Then - as that is apparently the webroot for CumulusUtils - he needs to either upload manually the Cutils output and libraries and css files to that directory and subdirectories or set the UploadDir in section [FTP site] (if there is no other website he might just as well use CumulusMX as the webroot) and have it done automatically.

Then run CumulusUtils again and continue the configuration.
Please send the logfile if any next questions!

Good luck and best regards,
Hans

Re: For New Users

Posted: Tue 25 May 2021 5:55 am
by staccermaccer
HansR wrote: Sun 23 May 2021 2:14 pm @beteljuice: That probably means the file names are not conform what they should be according to the locale or something like that. Anyway cutils fails to get the older data into the list. Remember dayfile can have a similar local issue in the dates/separators.

@Marc: you could send me the data, so i can take a look.
Hi!

My names are conform and they are present in my webroot AND in a folder 'Reports' so for that till now i have no clue what to do!
In the two screenshots you can see what i mean...

Marc,

Re: For New Users

Posted: Tue 25 May 2021 6:25 am
by HansR
Hi Marc,
The first line in your noaa.txt is

Code: Select all

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" type="text/javascript"></script>
which is there because you run

Code: Select all

util/bin/cumulusutils noaa
Normally that is done when you wish to use the noaa page as a module (not from within the Cutils website). But as you are using it from within the CumulusUtils website you must set the following (section [General]):

Code: Select all

GeneratejQueryInclude=false
DoLibraryIncludes=false
Read the Wiki e.g. on Modules or search the Wiki on GeneratejQueryInclude. I will make an additional entry in the article for the Website Generator as these two parameters are missed by almost every starter.

Pressing F12 using the tab: console, gives you a lot of information about what is going on btw.

Re: For New Users

Posted: Tue 25 May 2021 9:58 am
by raiguer
Good morning Hans
I am a new user "raiguer" and I do not upload the data to the web. Might you help me. thank you. Attached utils.log file

Re: For New Users

Posted: Tue 25 May 2021 10:29 am
by HansR
@raiguer: Hi raiguer, welcome, thanks for using CumulusUtils!

You did make the directory CumulusMX/FWI, that is good because all files are uploaded there.
But the js files need to uploaded to the lib directory and the css files to the css directory. This does not work.

Do they exist ( CumulusMX/FWI/lib and CumulusMX/FWI/css)?

If not: make them and try again.

Re: For New Users

Posted: Wed 26 May 2021 6:44 am
by chradev
Hello Hans

I am currently trying to add web cam using user defined menu placing its snapshots in the report's field.

While trying to add user menu to the web site generated by CumulusUtils I found following problems:
* file transferred utils/CUsermenu-example.txt => CUsermenu-example.txt instead of CUsermenu.txt => CUsermenu.txt
* file CUserAbout.txt is not transferred but searched
* file CUlicense.txt not transferred and not tested !?!

Other useful staff will be a function like LoadUtilsReport() but loading image in the report's field.
If you have no time or interest to add such a function could you, please, give me some suggestions about what can I do.

I am using latest CumulusUtils Version 5.4.0.

Re: For New Users

Posted: Wed 26 May 2021 7:57 am
by chradev
Hi Hans

I find following solution to display webcam snapshot in the report's field:
* get webcam snapshot in the file webcam.jpg
* create file webcam.txt with

Code: Select all

<img src="https://egpr.radevs.net/cmxu/webcam.jpg" width="100%">
* transfer the file webcam.txt via sftp via CumulusMX -> it is better to do it via CumulusUtils (only once) !?!
* add to CUsermenu.txt

Code: Select all

<span class='nav-link' onclick="LoadUtilsReport('webcam.txt');">Web Cam</span>
Solution will be advanced with code to refresh webcam snapshot periodically.

Unfortunately, the problem with CUsermenu.txt is not solved.

Re: For New Users

Posted: Wed 26 May 2021 7:58 am
by HansR
Hi Chris,
chradev wrote: Wed 26 May 2021 6:44 am While trying to add user menu to the web site generated by CumulusUtils I found following problems:
* file transferred utils/CUsermenu-example.txt => CUsermenu-example.txt instead of CUsermenu.txt => CUsermenu.txt
All txt files in the distribution (which you placed in your utils directory) are transferred to the website without modification when NOT thrifty!. The menu is meant as an example for you to edit and rename to CUsermenu.txt
chradev wrote: Wed 26 May 2021 6:44 am * file CUserAbout.txt is not transferred but searched
This I do not understand, it should be transferred as well. What do you mean by searched? The text (HTML) in this file will be displayed by the CumulusUtils website literally (interpreted HTML). I do note an inconsitency in filenaming though. I will change the name in the distribution to CUserAbout-example.txt, consistent with the menu example. You need to edit and change its name to CUserAbout.txt. If you do that in your utils directory it will be transferred when NOT thrifty! You can also edit the file "in situ" on your website. It is just what you preference is.
chradev wrote: Wed 26 May 2021 6:44 am * file CUlicense.txt not transferred and not tested !?!
It is transferred as well but it is an old version and should no longer be part of the distribution. I will remove it. The actual license is hardcoded in CumulusUtils and appears in the website. It can not be changed. For the modular use, I will add a license file to the distribution which will not upload.
chradev wrote: Wed 26 May 2021 6:44 am Other useful staff will be a function like LoadUtilsReport() but loading image in the report's field.
If you have no time or interest to add such a function could you, please, give me some suggestions about what can I do.
LoadUtilsReport() is available to the user! These are the techniques to load information in the report view:
  1. Code: Select all

    <span class='nav-link' onclick="LoadUtilsReport('Windy.txt');">Windy</span>
    
    and the Windy.txt than contains:

    Code: Select all

    <iframe src="https://embed.windy.com/embed2.html?<your Windy parameters>" width="100%" frameborder="0" style="border:0;height:75vh;"></iframe>
    Note the iframe parameters which are necessary to keep the site responsive and not have the URL display out of the main site window limits.
  2. Use direct call to LoadUtilsReport with a txt file containing HTML/Javascript. That code will be executed and show you the intended info. Example:

    Code: Select all

        <span class='nav-link' onclick="LoadUtilsReport('AllTempChart.txt');">All Temperature</span>
  3. Use a direct link with the <a href> tag:

    Code: Select all

        <a class='nav-link' href="https://meteo-wagenborgen.nl/wp/" target="_blank">The Blog</a>
  4. NOTE: only .txt files from your own domain can be loaded in the ReportView.
The Wiki is here.
chradev wrote: Wed 26 May 2021 6:44 am I am currently trying to add web cam using user defined menu placing its snapshots in the report's field.
NOTE: from the other sites you can easily check the techniques they use by using their URL and adding CUsermenu.txt but maybe it would be nicer to contact them. Or ask it here on the forum (separate thread please you are no longer a new user :) ). Not all users are on the map because they use Win7. Several users use a webcam. I don't so I can't help you directly. They probably can. @PaulMy is always very helpful.

Re: For New Users

Posted: Wed 26 May 2021 8:04 am
by HansR
Hi Chris,

You're replying faster than me ;)
chradev wrote: Wed 26 May 2021 7:57 am I find following solution to display webcam snapshot in the report's field:
* get webcam snapshot in the file webcam.jpg
* create file webcam.txt with

Code: Select all

<img src="https://egpr.radevs.net/cmxu/webcam.jpg" width="100%">
* transfer the file webcam.txt via sftp via CumulusMX -> it is better to do it via CumulusUtils (only once) !?!
* add to CUsermenu.txt

Code: Select all

<span class='nav-link' onclick="LoadUtilsReport('webcam.txt');">Web Cam</span>
Solution will be advanced with code to refresh webcam snapshot periodically.
Looks OK. Look at other users as well. I am not sure it is possible to refresh the ReportView automatically. You might do that using a timer in javascript and do that in the webcam report. Makes it more complex though. And yes, transfer only once. Probably even manual. The file webcam.txt won't change once the system stands.
chradev wrote: Wed 26 May 2021 7:57 am Unfortunately, the problem with CUsermenu.txt is not solved.
Does my answer help?