Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.2.4 build 3060 - 10 December 2019.
    Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

    See the Wiki for downloading either version.

    Cumulusutils

    Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

    Moderator: daj

    User avatar
    pernaczy
    Posts: 124
    Joined: Thu 15 Nov 2012 5:42 pm
    Weather Station: Fine Offset WH 2080, TFA Spring
    Operating System: Windows 7
    Location: Niesiolowice, Northern Poland
    Contact:

    Re: Cumulusutils

    Post by pernaczy » Tue 19 Nov 2019 8:33 am

    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
    The day when I have learned something is not the lost one.

    Image

    User avatar
    HansR
    Posts: 453
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: Davis Vantage Pro 2+
    Operating System: Raspbian GNU/Linux 10 (Buster)
    Location: Wagenborgen (NL)
    Contact:

    Re: Cumulusutils

    Post by HansR » Tue 19 Nov 2019 11:04 am

    @pernaczy:
    1) OK so you run a bit similar like Phil. Maybe a separate thread should be made for people who do not know the Windows scheduler (under all Windows versions).
    2) Cumulus Toolbox does not run under Linux - as far as I know - and I have not seen DAJ here since I am around, so we probably need to declare the Toolbox dead.

    Apart from that all: I prefer to upload from within CumulusUtils. I presume no prerequisites for CumulusUtils other than that Cumulus is actually present and running 8-) The upload is so simple that I will not imply a third tool. Any extra tool makes the configuration more complex than it should and will eventually discourage potential users who are more interested in meteorology than in technique.

    I think ;)
    https://meteo-wagenborgen.nl / Cumulus (3.1.2-b3055)
    Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
    Raspbian GNU/Linux 10 (buster) / Linux 4.19.75-v7+ armv7l
    Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)

    User avatar
    kocher
    Posts: 92
    Joined: Sat 19 Apr 2014 7:57 pm
    Weather Station: Davis Vantage Pro2+
    Operating System: Windows 10
    Location: San Sebastian - Spain
    Contact:

    Re: Cumulusutils

    Post by kocher » Tue 19 Nov 2019 11:07 am

    Saludos a todos

    I installed the latest version of cumulusutils (v 1.9.5) yesterday, but I didn’t get the maps file,txt

    Today I added the following in the file "cumulusutils.ini":

    [Maps]
    MapsOn


    I hope it works out
    Image

    User avatar
    HansR
    Posts: 453
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: Davis Vantage Pro 2+
    Operating System: Raspbian GNU/Linux 10 (Buster)
    Location: Wagenborgen (NL)
    Contact:

    Re: Cumulusutils

    Post by HansR » Tue 19 Nov 2019 12:23 pm

    @kocher: the file is named: "maps.txt" and it really should be in the utils directory. If it is not, could you please send the cumulusutils.log?
    I would advice to remove the entry in the ini file, it has no value and the name is unknown.
    Cheers, Hans
    https://meteo-wagenborgen.nl / Cumulus (3.1.2-b3055)
    Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
    Raspbian GNU/Linux 10 (buster) / Linux 4.19.75-v7+ armv7l
    Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)

    User avatar
    pernaczy
    Posts: 124
    Joined: Thu 15 Nov 2012 5:42 pm
    Weather Station: Fine Offset WH 2080, TFA Spring
    Operating System: Windows 7
    Location: Niesiolowice, Northern Poland
    Contact:

    Re: Cumulusutils

    Post by pernaczy » Tue 19 Nov 2019 2:40 pm

    HansR wrote:
    Tue 19 Nov 2019 11:04 am
    Apart from that all: I prefer to upload from within CumulusUtils. I presume no prerequisites for CumulusUtils other than that Cumulus is actually present and running 8-) The upload is so simple that I will not imply a third tool. Any extra tool makes the configuration more complex than it should and will eventually discourage potential users who are more interested in meteorology than in technique.
    I think you're right. That's why I said Yes in my previous post.

    Piotr
    The day when I have learned something is not the lost one.

    Image

    User avatar
    PaulMy
    Posts: 2009
    Joined: Sun 28 Sep 2008 11:54 pm
    Weather Station: Davis Vantage Pro 2+ w/Envoy USB
    Operating System: Windows-8
    Location: Komoka, ON Canada
    Contact:

    Re: Cumulusutils

    Post by PaulMy » Tue 19 Nov 2019 3:35 pm

    Thanks Hans for your comments.
    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
    Well, Toolbox not as straightforward as I initially thought.
    My Toolbox FTP defaults to my public_html/weather remote folder but I want the Cumulusutils files to be FTP to public_html/komokaweather-ca folder
    I want to also continue Toolbox to do some uploads to public_html/weather

    I've looked where the Toolbox FTP default folder is set and can't find that so must have been in its initial install, some 10 years ago...
    I could let Toolbox upload the \utils files to weather and then change the <?php include ('pwsFWI.txt'); ?> to <?php include ('../weather/pwsFWI.txt'); ?>
    But that wouldn't overcome the systemInfoTable.txt that has <#webtags> and needs to be processed. But then this is not a crucial file and if it is a day late, no concern.

    While I've done a few simple Windows schedule setups in the past the suggestions for batch files, etc. still scares me.

    I will persevere!

    Enjoy,
    Paul

    User avatar
    PaulMy
    Posts: 2009
    Joined: Sun 28 Sep 2008 11:54 pm
    Weather Station: Davis Vantage Pro 2+ w/Envoy USB
    Operating System: Windows-8
    Location: Komoka, ON Canada
    Contact:

    Re: Cumulusutils

    Post by PaulMy » Tue 19 Nov 2019 4:08 pm

    Hi Hans,
    Sorry for doing some more Map calls this morning, as I have been testing...

    Hopefully I have resolved the pwsFWI graphs MapOn and Top10 FTP timing by having Cumulus Toolbox FTP a few minutes after midnight to public_html/weather/utils folder and have modified the wx---.php files to <?php include ('../weather/utils/pwsFWI.txt'); ?> and that seems to work fine. http://www.komokaweather.com/komokaweather-ca/wxFWI.php

    Now just to work on having the systeminfoTable.txt to process and update after midnight...

    Enjoy,
    Paul

    User avatar
    HansR
    Posts: 453
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: Davis Vantage Pro 2+
    Operating System: Raspbian GNU/Linux 10 (Buster)
    Location: Wagenborgen (NL)
    Contact:

    Re: Cumulusutils

    Post by HansR » Tue 19 Nov 2019 4:43 pm

    @all:
    OK. I will make a solution as follows:
    There will be and FTP segment in the cumulusutils.ini file where the user can fill in: the Host and the Directory, just as in the Cumulus.ini and as specified in the Wiki. If the host is left empty, It will fall back to the Cumulus.ini file. If the Cumulus.ini does have an empty Host, no upload will take place. I will use the credentials from the Cumulus.ini.

    The wiki specifies Host and Directory but it does not define the slashes. I will accept the Host as completely without protocol and without slashes. The Directory will start with a slash but not end with one.

    The above means, the user can choose where to place the utils output on the website independent of the Cumulus uploads, but if the user wishes, the Cumulus defaults will be used. If the user does not make the choice (both Host entries are empty), output will only be generated and not uploaded. All generated files remain locally and will not be deleted.
    I think this fits the bill.

    After this upgrade, no user interference will be required in uploading to the website and the user will only have to run cumulusutils on the time wanted. Remember: this does not have to be exactly midnight, that was only because of the rollover. Any time after rollover will do. If you are using a batch system, you might even choose different times for different modules.
    https://meteo-wagenborgen.nl / Cumulus (3.1.2-b3055)
    Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
    Raspbian GNU/Linux 10 (buster) / Linux 4.19.75-v7+ armv7l
    Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)

    User avatar
    kocher
    Posts: 92
    Joined: Sat 19 Apr 2014 7:57 pm
    Weather Station: Davis Vantage Pro2+
    Operating System: Windows 10
    Location: San Sebastian - Spain
    Contact:

    Re: Cumulusutils

    Post by kocher » Tue 19 Nov 2019 7:36 pm

    HansR wrote:
    Tue 19 Nov 2019 12:23 pm
    @kocher: the file is named: "maps.txt" and it really should be in the utils directory. If it is not, could you please send the cumulusutils.log?
    I would advice to remove the entry in the ini file, it has no value and the name is unknown.
    Cheers, Hans
    This is the cumulusutil.log file generated on 11/19/2019 at 00:00 hours
    You do not have the required permissions to view the files attached to this post.
    Image

    User avatar
    HansR
    Posts: 453
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: Davis Vantage Pro 2+
    Operating System: Raspbian GNU/Linux 10 (Buster)
    Location: Wagenborgen (NL)
    Contact:

    Re: Cumulusutils

    Post by HansR » Tue 19 Nov 2019 7:51 pm

    @kocher:
    OK, it is not the cumulusutils.ini file which takes the command MapsOn, it is the commandline.
    So in the log you see:

    Code: Select all

    19/11/2019 0:00:00 CommandLineArgs : starting
    19/11/2019 0:00:00 CommandLineArgs : handling arg: pwsFWI
    19/11/2019 0:00:00 CommandLineArgs : handling arg: SysInfo
    19/11/2019 0:00:00 CommandLineArgs : handling arg: Top10
    19/11/2019 0:00:00 CommandLineArgs : handling arg: graphs
    19/11/2019 0:00:00 CommandLineArgs : End
    
    This means you did not tell cumulusutils to run the Maps module.
    Just add MapsOn to the commandline (or run cumulusutils manually on another time with only MapsOn) and it will work.

    Cheers, Hans
    https://meteo-wagenborgen.nl / Cumulus (3.1.2-b3055)
    Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
    Raspbian GNU/Linux 10 (buster) / Linux 4.19.75-v7+ armv7l
    Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)

    User avatar
    kocher
    Posts: 92
    Joined: Sat 19 Apr 2014 7:57 pm
    Weather Station: Davis Vantage Pro2+
    Operating System: Windows 10
    Location: San Sebastian - Spain
    Contact:

    Re: Cumulusutils

    Post by kocher » Tue 19 Nov 2019 8:50 pm

    I have so far implemented the programme through:

    cumulusMX>>Settings>>Internet settings>>Daily program

    Daily program parameters: pwsFWI SysInfo Top10graphs

    Now I change it to:

    Daily program parameters: pwsFWI SysInfo Top10graphs MapsOn

    I hope this works
    Image

    User avatar
    HansR
    Posts: 453
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: Davis Vantage Pro 2+
    Operating System: Raspbian GNU/Linux 10 (Buster)
    Location: Wagenborgen (NL)
    Contact:

    Re: Cumulusutils

    Post by HansR » Tue 19 Nov 2019 8:52 pm

    @kocher: That should work.
    https://meteo-wagenborgen.nl / Cumulus (3.1.2-b3055)
    Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
    Raspbian GNU/Linux 10 (buster) / Linux 4.19.75-v7+ armv7l
    Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)

    User avatar
    HansR
    Posts: 453
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: Davis Vantage Pro 2+
    Operating System: Raspbian GNU/Linux 10 (Buster)
    Location: Wagenborgen (NL)
    Contact:

    Re: Cumulusutils

    Post by HansR » Wed 20 Nov 2019 7:51 am

    @kocher: you did not show up on the map this morning. Could you send this nights logfile again?
    https://meteo-wagenborgen.nl / Cumulus (3.1.2-b3055)
    Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
    Raspbian GNU/Linux 10 (buster) / Linux 4.19.75-v7+ armv7l
    Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)

    User avatar
    kocher
    Posts: 92
    Joined: Sat 19 Apr 2014 7:57 pm
    Weather Station: Davis Vantage Pro2+
    Operating System: Windows 10
    Location: San Sebastian - Spain
    Contact:

    Re: Cumulusutils

    Post by kocher » Wed 20 Nov 2019 11:22 am

    HansR wrote:
    Wed 20 Nov 2019 7:51 am
    @kocher: you did not show up on the map this morning. Could you send this nights logfile again?
    Ok, This is the cumulusutil.log
    You do not have the required permissions to view the files attached to this post.
    Image

    User avatar
    kocher
    Posts: 92
    Joined: Sat 19 Apr 2014 7:57 pm
    Weather Station: Davis Vantage Pro2+
    Operating System: Windows 10
    Location: San Sebastian - Spain
    Contact:

    Re: Cumulusutils

    Post by kocher » Wed 20 Nov 2019 11:27 am

    The doubt I have is:


    Daily program parameters: pwsFWI Sysinfo Top10graphs Mapson

    or

    Daily program parameters: pwsFWI Sysinfo Top10graphs Mapon

    ??
    Image

    Post Reply