Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.3.0 build 3063 - 10 January 2020.
    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
    HansR
    Posts: 506
    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 18 Sep 2019 3:36 am

    Thanks and great! :clap:
    Send me the link when you got it online.
    https://meteo-wagenborgen.nl / Cumulus (3.3.0 b3063)
    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.8.0.96 (tarball Wed Jan 15 10:23:49 UTC 2020)

    User avatar
    HansR
    Posts: 506
    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 18 Sep 2019 7:35 am

    Version 0.7.0 is online. With a ReadMe 8-)
    https://meteo-wagenborgen.nl / Cumulus (3.3.0 b3063)
    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.8.0.96 (tarball Wed Jan 15 10:23:49 UTC 2020)

    Phil23
    Posts: 377
    Joined: Sat 16 Jul 2016 11:59 pm
    Weather Station: Davis Vantage Pro2 Plus
    Operating System: Win7 Pro
    Location: Australia

    Re: Cumulusutils

    Post by Phil23 » Wed 18 Sep 2019 10:19 am

    HansR wrote:
    Wed 18 Sep 2019 7:35 am
    Version 0.7.0 is online. With a ReadMe 8-)
    Downloaded & installed.
    Image

    User avatar
    PaulMy
    Posts: 2031
    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 » Wed 18 Sep 2019 1:41 pm

    Hi Hans,
    Send me the link when you got it online.
    http://www.komokaweather.com/weather/cu ... test1.html
    http://www.komokaweather.com/weather/cu ... test1.html
    That is with v0.51

    Enjoy,
    Paul
    Last edited by PaulMy on Thu 19 Sep 2019 1:02 pm, edited 1 time in total.

    User avatar
    PaulMy
    Posts: 2031
    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 » Wed 18 Sep 2019 2:12 pm

    Hi Hans,
    Send me the link when you got it online.
    http://www.komokaweather.com/weather/cu ... test1.html
    http://www.komokaweather.com/weather/cu ... test1.html
    That is with v0.51

    CumulusMX did run cumulusutils.exe successfully at midnight
    Cumulus1 did run the program at midnight as per the debug.log but no files were added to c:\added_programs\Cumulus folder where cumulusutils.exe and dayfile.txt reside.
    1165.80265 : 23:59:59.420 Data loaded
    1165.81357 : 00:00:00.525 Sending wakeup, attempt 1
    1165.81513 : 18/09/2019 Hour timer 0
    1165.83650 : 00:00:02.806 Received FFFFFFFF
    1165.85647 : 18/09/2019 12:00:04 AM Executing program: c:\added_programs\Cumulus\cumulusutils.exe - Params: -day
    1165.85678 : 00:00:04.837 Received FFFFFFFF
    1165.85850 : 18/09/2019 12:00:05 AM Minute timer 0
    1165.85850 : Adding LH entry, ts = 12:00:05 AM raintot = 545.599975585938
    1165.85850 : 12:00:05 AM Creating WXNow File
    1165.86880 : 00:00:06.037 Sending wakeup, attempt 2
    1165.86973 : Creating web graphs
    1165.88174 : 00:00:07.332 Received 0A
    1165.88174 : 00:00:07.332 Received 0D
    1165.88174 : 00:00:07.332 Station woken
    1165.88174 : 00:00:07.332 Sending BARDATA
    1165.89875 : 12:00:09 AM Updating Wunderground
    Executing the command line with the same full path as in Cumulus1 External Programs does run successfully.

    Enjoy,
    Paul

    User avatar
    PaulMy
    Posts: 2031
    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 » Wed 18 Sep 2019 2:38 pm

    Hi Hans, and sorry for the duplication in previous post. Sometimes my system does strange things or loses posts after I [Submit]

    Re v.0.7.0 and the readme is great!
    A couple of things...
    It refers to Cumulus.ini being in the same \Cumulus folder as cumulusutils.exe which it is in my CumulusMX setop and with version 0.5.1 that works from External Programs.
    However in my Cumulus1 setup it is called cumulus.ini (lower case cumulus). I can't see how that would make a difference in running from a command line, and not running using the same command line in a scheduled External Programs execution.

    And the big one... v0.7.0
    As it is executed from command line it indicates an error as previously mentioned with v.0.6.5 see attached.
    However with v.0.7.0 and the error message there are still files created:
    pwsFWI.txt
    cumulusutils.log
    but NOT Top10Table.txt nor Top10TableStyle.txt
    and the pwsFWI.txt and cumulusutils.log are much smaller than the successfully run v.0.5.1 which is likely due to v.0.7.0 not fully completing its running as indicated by the error message.

    I think you indicated it may be due to my Windows8 machine not having updated files, is that correct? Is there a way to tell or would you know what those might be, or any way around it?

    Again thank you for your patience.

    Regards,
    Paul
    Last edited by PaulMy on Thu 19 Sep 2019 12:59 pm, edited 1 time in total.

    User avatar
    HansR
    Posts: 506
    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 18 Sep 2019 5:11 pm

    I really don't understand what is precisely going on on your machine Paul, but indeed, what I did say was that your machine is probably/maybe too old and not updated, so that it is simply too difficult from a distance (and maybe even from close by) to say anything useful about what you are seeing and reporting. Those crashes do not occur elsewhere and running without producing output means that there is something very wrong. If it does not work, it does not work, but at the moment I do not think it is the program. Phil and Piotr have it running OK without problems, also on Win8.

    I will make one effort in checking the log file. Could you make a run and send me the logfile (by PM or mail)?
    And btw, could we continue this discussion by PM or mail, because this thread gets a bit stuck on this. CumulusUtils has also functionality to offer.

    Best,
    https://meteo-wagenborgen.nl / Cumulus (3.3.0 b3063)
    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.8.0.96 (tarball Wed Jan 15 10:23:49 UTC 2020)

    User avatar
    HansR
    Posts: 506
    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 » Thu 19 Sep 2019 8:12 am

    Version 0.7.5 is online.

    Three major changes:
    1) The imperial system can now be handled and the calculations are all corrected for different units. The units are now included in the Top10 table.
    2) The header text of the Top10 table can now be translated via the cumulusutils.ini
    3) The commandline parameters have changed. They now are: Top10, SysInfo and pwsFWI. They are case independent and there is no specific order defined.

    The ReadMe has been changed accordingly.
    https://meteo-wagenborgen.nl / Cumulus (3.3.0 b3063)
    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.8.0.96 (tarball Wed Jan 15 10:23:49 UTC 2020)

    freddie
    Posts: 527
    Joined: Wed 08 Jun 2011 11:19 am
    Weather Station: Davis Vantage Pro 2
    Operating System: GNU/Linux (Ubuntu 18.04)
    Location: Dorrington, Shropshire
    Contact:

    Re: Cumulusutils

    Post by freddie » Thu 19 Sep 2019 1:23 pm

    HansR wrote:
    Thu 19 Sep 2019 8:12 am
    Version 0.7.5 is online.
    I've downloaded and given this utility a try. I am interested in the top 10 listing, and the sysinfo.

    With the top 10 listing: I have a relatively new site and have less than 10 month's worth of data. The "monthly rainfall" top 10 table column doesn't seem to handle this. It populates the top 6 entries okay (as I am in my sixth month of records), but the remaining 4 entries contain what looks like totals from June. I've reproduced the table column data below (the forum software didn't let me attach the file to this message):

    Code: Select all

    <table style="float:justify;text-align:center"><tbody>
    <tr>
    <th style="color:Green;">Highest Daily Rain<br/>( mm)</th>
    <th style="color:Green;">Highest Monthly Rain<br/>( mm)</th>
    <th style="color:Green;">Longest Dry Period<br/></th>
    </tr>
    
    <tr>
    <td >11/06/2019 : <b>34.2</b></td>
    <td >Jun 2019 : <b>127.4</b></td>
    <td >23/04/2019 : <b> 15</b></td>
    </tr>
    <tr>
    <td >08/08/2019 : <b>26.2</b></td>
    <td style="color:DarkOrange;">Aug 2019 : <b>74.0</b></td>
    <td >05/07/2019 : <b> 10</b></td>
    </tr>
    <tr>
    <td >07/06/2019 : <b>20.4</b></td>
    <td >May 2019 : <b>51.4</b></td>
    <td style="color:DarkOrange;">27/08/2019 : <b>  8</b></td>
    </tr>
    <tr>
    <td >10/06/2019 : <b>15.6</b></td>
    <td >Jul 2019 : <b>48.6</b></td>
    <td >26/05/2019 : <b>  6</b></td>
    </tr>
    <tr>
    <td >23/07/2019 : <b>14.2</b></td>
    <td >Apr 2019 : <b>18.0</b></td>
    <td >02/06/2019 : <b>  6</b></td>
    </tr>
    <tr>
    <td >09/08/2019 : <b>13.6</b></td>
    <td style="color:DarkOrange;">Sep 2019 : <b>17.0</b></td>
    <td >15/05/2019 : <b>  5</b></td>
    </tr>
    <tr>
    <td >12/06/2019 : <b>13.4</b></td>
    <td >Jun 2019 : <b>127.4</b></td>
    <td >16/07/2019 : <b>  5</b></td>
    </tr>
    <tr>
    <td >30/07/2019 : <b>12.4</b></td>
    <td >Jun 2019 : <b>123.8</b></td>
    <td >02/08/2019 : <b>  3</b></td>
    </tr>
    <tr>
    <td >02/05/2019 : <b>12.0</b></td>
    <td >Jun 2019 : <b>112.2</b></td>
    <td >22/06/2019 : <b>  3</b></td>
    </tr>
    <tr>
    <td >24/06/2019 : <b>11.6</b></td>
    <td >Jun 2019 : <b>107.2</b></td>
    <td >22/07/2019 : <b>  2</b></td>
    </tr>
    </tbody></table>
    With the sysinfo listing: an exception is thrown, and I get a zero-length systeminfoTable.txt file. I have attached the cumulusutils.log file, and the exception is reproduced below:

    Code: Select all

    ./cumulusutils.exe Top10 SysInfo
    /bin/cat: /proc/device-tree/model: No such file or directory
    Unhandled Exception:
    System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
      at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00011] in <8f2c484307284b51944a1a13a14c0266>:0
      at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
      at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
      at CumulusUtils.SystemStatus.DoingUnix () [0x000ad] in <66529466848843fc9595b67f7759f3d1>:0
      at CumulusUtils.SystemStatus.GenerateSystemStatus () [0x001ae] in <66529466848843fc9595b67f7759f3d1>:0
      at CumulusUtils.cumulusutils.RealMain (System.String[] args) [0x00113] in <66529466848843fc9595b67f7759f3d1>:0
      at CumulusUtils.cumulusutils.Main (System.String[] args) [0x00007] in <66529466848843fc9595b67f7759f3d1>:0
    [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
      at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00011] in <8f2c484307284b51944a1a13a14c0266>:0
      at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0                           at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
      at CumulusUtils.SystemStatus.DoingUnix () [0x000ad] in <66529466848843fc9595b67f7759f3d1>:0
      at CumulusUtils.SystemStatus.GenerateSystemStatus () [0x001ae] in <66529466848843fc9595b67f7759f3d1>:0
      at CumulusUtils.cumulusutils.RealMain (System.String[] args) [0x00113] in <66529466848843fc9595b67f7759f3d1>:0
      at CumulusUtils.cumulusutils.Main (System.String[] args) [0x00007] in <66529466848843fc9595b67f7759f3d1>:0
    
    I am running the code on Ubuntu 18.04 (up to date with all patches).
    You do not have the required permissions to view the files attached to this post.
    Freddie
    Image

    User avatar
    HansR
    Posts: 506
    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 » Thu 19 Sep 2019 2:02 pm

    Hi freddie,

    Thanks for trying.

    1) The Monthly Rainfall issue is known, I should stop listing if there is not enough months to list but that was not trivial to detect so I skipped it. Nobody had a problem with it but myself (mine is four month old). Now I got to fix it :) Consider it fixed for release 0.8, most likely somewhere in the weekend.

    2) That's a bit odd. I make use of a simple C# call to execute Unix/Linux commands. Could you try the result of "cat /proc/device-tree/model" on the Ubuntu machine? It's my guess there is no output at all, therefore no info on the system. How would you ask on Ubuntu to get an info string like "Raspberry Pi 3 Model B Plus Rev 1.3" (which is the output on my rPi machine). Guess I have to catch the exception or test properly and notify an empty string. The variety of systems might kill this approach, but I don't seem to have access to the system administration/management classes in C# so that route can't be used.
    (btw: on windows, the only command called is sysinfo).

    Best,
    Last edited by HansR on Thu 19 Sep 2019 2:43 pm, edited 1 time in total.
    https://meteo-wagenborgen.nl / Cumulus (3.3.0 b3063)
    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.8.0.96 (tarball Wed Jan 15 10:23:49 UTC 2020)

    freddie
    Posts: 527
    Joined: Wed 08 Jun 2011 11:19 am
    Weather Station: Davis Vantage Pro 2
    Operating System: GNU/Linux (Ubuntu 18.04)
    Location: Dorrington, Shropshire
    Contact:

    Re: Cumulusutils

    Post by freddie » Thu 19 Sep 2019 2:20 pm

    HansR wrote:
    Thu 19 Sep 2019 2:02 pm
    1) Consider it fixed for release 0.8, most likely somewhere in the weekend.
    That would be fab, thank you :D
    HansR wrote:
    Thu 19 Sep 2019 2:02 pm
    2) Could you try the result of "cat /proc/device-tree/model" on the Ubuntu machine? It's my guess there is no output at all, therefore no info on the system.
    Same result as in the exception output I posted:

    Code: Select all

    cat: /proc/device-tree/model: No such file or directory
    HansR wrote:
    Thu 19 Sep 2019 2:02 pm
    How would you ask on Ubuntu to get an info string like "Raspberry Pi 3 Model B Plus Rev 1.3" (which is the output on my rPi machine).
    It does depend on exactly what you want to retrieve. A reasonable (but more detailed) replacement could be:

    Code: Select all

    lshw -short
    which should be parseable for the details you need (and more!)

    Thank you for your work so far.
    Freddie
    Image

    User avatar
    HansR
    Posts: 506
    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 » Thu 19 Sep 2019 5:32 pm

    Hi, Thanks for the quick reply.
    freddie wrote:
    Thu 19 Sep 2019 2:20 pm
    That would be fab, thank you
    Meanwhile check out the solution here.

    Tried the lshw -short but that does not work on raspbian. I am looking for a hardware identification like this: Raspberry Pi 3 Model B Plus Rev 1.3 (check out here), Sun, HP, or whatever. A machine, the result I get with uname -a is the OS and on which processor it runs, not the context. If not possible then OK, I'll dump it.

    Best,
    https://meteo-wagenborgen.nl / Cumulus (3.3.0 b3063)
    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.8.0.96 (tarball Wed Jan 15 10:23:49 UTC 2020)

    freddie
    Posts: 527
    Joined: Wed 08 Jun 2011 11:19 am
    Weather Station: Davis Vantage Pro 2
    Operating System: GNU/Linux (Ubuntu 18.04)
    Location: Dorrington, Shropshire
    Contact:

    Re: Cumulusutils

    Post by freddie » Thu 19 Sep 2019 5:48 pm

    HansR wrote:
    Thu 19 Sep 2019 5:32 pm
    Tried the lshw -short but that does not work on raspbian. I am looking for a hardware identification like this: Raspberry Pi 3 Model B Plus Rev 1.3
    apt-get install lshw
    Sorry, it's installed on most distros by default.
    It will give you what you want :-)
    Freddie
    Image

    User avatar
    HansR
    Posts: 506
    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 » Thu 19 Sep 2019 6:23 pm

    freddie wrote:
    Thu 19 Sep 2019 5:48 pm
    apt-get install lshw
    OK, works absolutely fabulously, could demand that as a precondition. But what about the Sun, HP etc... do they use this command?
    Not that Cumulus will often be run on a Sun but you never know?
    https://meteo-wagenborgen.nl / Cumulus (3.3.0 b3063)
    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.8.0.96 (tarball Wed Jan 15 10:23:49 UTC 2020)

    hvd51
    Posts: 14
    Joined: Fri 13 Jul 2012 5:05 pm
    Weather Station: Davis VP2 +
    Operating System: Windows 10 Ultimate
    Location: 't Zandt, The Netherlands
    Contact:

    Re: Cumulusutils

    Post by hvd51 » Thu 19 Sep 2019 6:58 pm


    Post Reply