Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Tarting up my Data Summary

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

Moderator: daj

RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Tarting up my Data Summary

Post by RayProudfoot »

Gents, it's a OS / browser issue. I was looking at the page via my iPad which has some wind arrows in a blue block and others not.

But on my Win 7 laptop running Firefox the view is consistent - no blue blocks and just arrows. Weird how the same data can be interpreted differently by different OSs.
Cheers,
Ray, Cheshire.

Image
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Tarting up my Data Summary

Post by RayProudfoot »

Whilst I remain very happy with the New Data Summary page I've noticed an anomaly with rainfall compared to what is stored in my dayfile.txt. See attached image showing Sept 2017 rainfall taken from dayfile.txt. Here is the Data Summary page. http://www.cheadlehulmeweather.co.uk/be ... ummary.php

The code appears to have a threshold for rainfall. Anything below 0.05" is shown as 0. I noticed this when looking at my Monthly Record page for September. The record days with rain is 16 days (3-18/9/2017) but the rainfall shown on the Sept 2017 Data Summary does not reflect that.

The following days had rain but all show as zero....

3/9 0.04"
4/9 0.03"
6/9 0.02"
16/9 0.02"

If anyone knows the code well enough could they confirm if there is a minimum threshold which is treated as zero? Thanks.
You do not have the required permissions to view the files attached to this post.
Cheers,
Ray, Cheshire.

Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Tarting up my Data Summary

Post by beteljuice »

If anyone knows the code well enough could they confirm if there is a minimum threshold which is treated as zero? Thanks.
Correct - Strictly speaking one 'bucket tip' could be dew or condensation or even vibration adding to whatever may be remaining in there from the last event and is thus disregarded.
Image
......................Imagine, what you will KNOW tomorrow !
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Tarting up my Data Summary

Post by RayProudfoot »

Thanks for confirming beteljuice. I also have a threshold set in Cumulus so 0.01" is treated as a dry day.

But those amounts I listed were all greater than 0.01" so should have been treated as rain days. If you add up the individual amounts for Sept they come to 4.56" which is different to the total of 4.68" - the correct total.
Cheers,
Ray, Cheshire.

Image
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Tarting up my Data Summary

Post by RayProudfoot »

I've found the relevant section of code in betel_readDayfile.php line 443. That is the only instance in that file. I would like to change it to 0.02 thereby ignoring tips of 0.01". A single tip is 0.01" of course, no more.

Do I need to check anywhere else?
Cheers,
Ray, Cheshire.

Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Tarting up my Data Summary

Post by beteljuice »

Code: Select all

        if($value < 0.05) $value = 0; // 1 tip regarded as error
Both Davis and the Met Office regard this as a dry day.
... but if you want to change it - go ahead
Image
......................Imagine, what you will KNOW tomorrow !
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Tarting up my Data Summary

Post by RayProudfoot »

beteljuice wrote:

Code: Select all

        if($value < 0.05) $value = 0; // 1 tip regarded as error
Both Davis and the Met Office regard this as a dry day.
... but if you want to change it - go ahead
I take your point but the threshold is 0.01" on all my other Cumulus records so I would like consistency. 0.05" is a lot of rain to be treated as a dry day. Or is that mm?

Thanks once again for providing the code, much appreciated.
Cheers,
Ray, Cheshire.

Image
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Tarting up my Data Summary

Post by dazza1223 »

hi i saw some where the Data Summary.sql one but can i find it any where? :bash:
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Tarting up my Data Summary

Post by sfws »

dazza1223 wrote:i saw some where the Data Summary.sql one but can i find it any where?
The Wiki http://wiki.sandaysoft.com/a/Daily_Summary#PHP_scripts lists all scripts available.
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Tarting up my Data Summary

Post by dazza1223 »

ok thank for that but i cant find the data Summary.sql php one there im sure mark has made one :D
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Tarting up my Data Summary

Post by RayProudfoot »

Gents, just one glitch from my recent HDD crash. My Data Summary page hasn’t been updated for a couple of days. I had to edit cumulus.ini and add the entry for the beteljuice file to be uploaded.

It’s done now but the data hasn’t changed. Does it only kick in after midnight?
Cheers,
Ray, Cheshire.

Image
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Tarting up my Data Summary

Post by sfws »

RayProudfoot wrote: Sun 11 Apr 2021 2:03 pm It’s done now but the data hasn’t changed. Does it only kick in after midnight?
Yes, that Data Summary page is based on contents of "dayfile.txt". That is updated at rollover, so for you midnight is first chance to see new data

What I don't understand, from what you say, is what edit you made in your cumulus.ini.

Beteljuice's Main file - betel_readDayfile is code for web page and that is fixed surely?

-- If the entry you edited is DailyProgram=...., then the action will only happen at end of day
-- If the entry you added is ExtraLocalNN=\cumulus\data\dayfile.txt , then you (using legacy Cumulus) are uploading that file multiple times a day, although its content is not changing

I had "DailyProgram=batch\end_of_day_Cumulus_batch_with_delay.cmd" to run a little batch file that uploaded the dayfile.txt and ran a script to read today.ini stored in the backup file (hence reference to delay).

FWIW, MX has an option in extra files, to upload only at end of day. That is one piece of new functionality that is very useful.
Last edited by sfws on Sun 11 Apr 2021 2:27 pm, edited 2 times in total.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Tarting up my Data Summary

Post by beteljuice »

Edit: Cross post with sfws
... and add the entry for the beteljuice file to be uploaded.
The 'betejuice' page is 'static' isn't it ?
All it does is read dayfile.txt, which currently is 08/04/2021.
IF this file is set for upload, then it should be 'end of day / rollover'.
Last edited by beteljuice on Sun 11 Apr 2021 7:09 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Tarting up my Data Summary

Post by PaulMy »

@Ray,
So you won't have to wait until tomorrow to see the result, you can manually FTP the dayfile.txt to your remote.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Tarting up my Data Summary

Post by RayProudfoot »

Thanks everyone. Beteljuice spotted the problem with dayfile.txt not having been FTP'd for some reason. I've done it manually and Data Summary is now okay.

The reason dayfile.txt wasn't being FTP'd is because it's a job inside Cumulus Toolbox and whilst I had started all my wx programs I'd overlooked that during all the maintenance I was doing on Friday. Toolbox is now running and all should be well.

sfws, the reason I need to edit cumulus.ini is because I have more than 10 files to upload and the interface only allows for 10. You have to edit cumulus.ini to add any more.
Cheers,
Ray, Cheshire.

Image
Post Reply