IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

I strongly advise all users using my server for their web site to make alternative arrangements.

Outgoing mail is disabled because of the malware on the server. No new forum registrations are currently possible, and mail to the forum administrator will not work.

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Tarting up my Data Summary

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

Moderators: daj, TNETWeather

RayProudfoot
Posts: 2585
Joined: Wed May 06, 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

Postby RayProudfoot » Sun Aug 26, 2018 1:55 pm

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: 2585
Joined: Wed May 06, 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

Postby RayProudfoot » Tue Sep 18, 2018 12:21 pm

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: 2479
Joined: Tue Dec 09, 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Tarting up my Data Summary

Postby beteljuice » Tue Sep 18, 2018 12:31 pm

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: 2585
Joined: Wed May 06, 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

Postby RayProudfoot » Tue Sep 18, 2018 12:37 pm

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: 2585
Joined: Wed May 06, 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

Postby RayProudfoot » Tue Sep 18, 2018 12:47 pm

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: 2479
Joined: Tue Dec 09, 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Tarting up my Data Summary

Postby beteljuice » Tue Sep 18, 2018 12:53 pm

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: 2585
Joined: Wed May 06, 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

Postby RayProudfoot » Tue Sep 18, 2018 1:03 pm

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: 395
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: Tarting up my Data Summary

Postby dazza1223 » Thu Sep 20, 2018 10:41 pm

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

sfws
Posts: 449
Joined: Fri Jul 27, 2012 11:29 am
Weather Station: Customised mix of Fine Offset
Operating System: Tempermental Win. 10 PC
Location: UK

Re: Tarting up my Data Summary

Postby sfws » Fri Sep 21, 2018 6:33 am

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: 395
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: Tarting up my Data Summary

Postby dazza1223 » Fri Sep 21, 2018 9:43 am

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


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 4 guests