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

Yet Another Dayfile Reader (PHP)

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

Moderator: daj

Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Yet Another Dayfile Reader (PHP)

Post by Phil23 »

Monthly totals are not yearly totals [tick], get that.

But, the curved ball was me not grasping the terminology of heating & cooling days; and Day Degrees.
Trying to get my head around what those figures mean in real life; seems related to 65°F
Knee jerk reaction was why are temperatures being Summed, but I'm getting it now that the values are not temperatures.

Does Phil ever read / pay attention to what the beteljuice writes [cross] [tick].

But the hammer's killing a few brain cells.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
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: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

A suggestion from BCJKiwi ...
Just a thought about heatdays and cooldays.

I added these to the SANITIZE list quite a long time ago.
Why?
Well it seems to me that if the value on any one day is zero, then by definition it is NOT a heating day NOR a cooling day.
This change makes the average values make more sense to me.
Comment added to bottom of first post, but as this a user choice, not added as a 'default' to base distribution file.
Image
......................Imagine, what you will KNOW tomorrow !
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Yet Another Dayfile Reader (PHP)

Post by Phil23 »

Thought it had died for a brief moment tonight.

NO DATA??????????

Seems it's just a 9:00am rollover thing in conjunction with a new year....
Capture.JPG
You do not have the required permissions to view the files attached to this post.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
griffo42
Posts: 226
Joined: Thu 10 Dec 2015 6:41 am
Weather Station: Davis Vantage Pro2
Operating System: Win 11 Home
Location: Brisbane, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by griffo42 »

For beteljuice

As a suggestion for this great piece of software, would you consider adding a further line to the rainfall page. I suggest that this line shows the cumulative monthly total of rainfall under each month or part thereof so at 31 December the yearly total is shown.

please consider

Thanks

Keith
Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
Image
User avatar
billy
Posts: 255
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi bullseye
Location: Gooseberry Hill, Western Australia

Re: Yet Another Dayfile Reader (PHP)

Post by billy »

Keith,

I have modified the standard reader so it displays as per the attached screen shot. However, the version of the dayfile reader I started with - courtesy of Mark Crossley - was (a) quite old and (b) extracts the data from a sql database of the dayfile. I use different colours for the daily, monthly and cumulative totals because their means and ranges are vastly different.
If it is of any use I am very happy to share it.
Image
You do not have the required permissions to view the files attached to this post.
griffo42
Posts: 226
Joined: Thu 10 Dec 2015 6:41 am
Weather Station: Davis Vantage Pro2
Operating System: Win 11 Home
Location: Brisbane, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by griffo42 »

Billy

Thanks for your offer. I'm not sure whether I can make it work as I am a totally "self taught" programmer but would like to have a look at the code you have "just in case".

Thanks

Keith
Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
Image
User avatar
billy
Posts: 255
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi bullseye
Location: Gooseberry Hill, Western Australia

Re: Yet Another Dayfile Reader (PHP)

Post by billy »

well I suspect the self taught (I'm one) are the majority of the forum's membership ;)

I will send you the modified dayfile reader in a pm. If you are not uploading your dayfile to a sql database then it will be of very limited value but it may at least give you some clues on a way to format the table.
sutne
Posts: 372
Joined: Sun 14 Oct 2012 4:23 pm
Weather Station: HP2553 (WS80) and HP2564 (WS90)
Operating System: Raspbian Bullseye and Bookworm
Location: Rjoanddalen and Kronstad, Norway
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by sutne »

Billy,
could I also have a copy of this, please?

I also miss the annual rainfall summary.

Best regards
Steinar
griffo42
Posts: 226
Joined: Thu 10 Dec 2015 6:41 am
Weather Station: Davis Vantage Pro2
Operating System: Win 11 Home
Location: Brisbane, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by griffo42 »

Hi Billy

thanks for your offer. I am not uploading to a MySQL database but will have a look at it.

Keith
Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
Image
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: Yet Another Dayfile Reader (PHP)

Post by PaulMy »

Hi Billy,
I am updating daily to a GoDaddy MySQL KomokaWeather db Dayfile table. If that could work I would appreciate a copy of your script.

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
User avatar
billy
Posts: 255
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi bullseye
Location: Gooseberry Hill, Western Australia

Re: Yet Another Dayfile Reader (PHP)

Post by billy »

Hi Paul, no worries - I will send via a pm.

Just to make clear its ancestry and limitations, this version was
(1) forked from the standard version some years ago - so doesn't have all the beteljuice modifications since then.
(2) was then modified by Mark Crossly (and perhaps others) to read the dayfile from a sql db.
(3) and then last year I added the rainfall running totals summary tables. My changes are poorly documented as, given point (1) in particular, I did not think it likely others would use it! I simply added some markers to give me clues of where I had fiddled things. Whether there are enough sign-posts even for me to easily figure out what I did is another thing!

If others are brave enough to want a copy just pm me.
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: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

Whilst considering the possibility, and the can of worms it may open (Windrun etc.), and it's actual validity given that WMO 'year' begins 09:00 March 1st local, I have suddenly realised that the years table is NOT displaying 2020 data.

When my heart gets off the floor I'll investigate ...

EDIT: Discovered a problem starting line #1913 - A direct result of the mods to correct the Seasonal display ...

... but now I've got 'til end of Feb to fix it, and have to wait 'til March to see if the fix will truly work.

That is if anybody is still using this prog and not using other alternatives / unfriendly templates .. :(
Image
......................Imagine, what you will KNOW tomorrow !
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

*** BUG FIX ***

Post by beteljuice »

IMPORTANT BUG FIX

Release..V7.1.2 now available from first post ...

The more observant of you will have noticed that in the year summary table 2020 had gone walk-about :o
This was a bug introduced in v1.7.1 and will persist until March (then 2020 will display)
It is not yet certain if the fix will cause problems in March ... So it's upto you if you update now or wait to see what happens :?

If you are updating then only betel_readDayfile.php is affected.
As usual Always Back-up your existing copy !
To save eye strain just cut-n-paste everything from the start of your working copy down to *** END OF USER VARS and paste over same area in new.
Image
......................Imagine, what you will KNOW tomorrow !
sperry russ
Posts: 89
Joined: Mon 30 Jan 2012 5:09 pm
Weather Station: Davis Vantage Pro 2 Cabled
Operating System: Windows 7
Location: Central Florida USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by sperry russ »

It is March now and my version v7.1.2 is not showing the seasonal stats properly. You can see it here:

https://sperry.us/stats/stats.php
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: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

All your seasonal figures are one year in the future !

Did you notice whether or not it was like this in February ?

There are a few summation format probs that shouldn't be there either.
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply