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.

    Yet Another Dayfile Reader (PHP)

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

    Moderator: daj

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

    Re: Yet Another Dayfile Reader (PHP)

    Post by Phil23 » Sun 24 Nov 2019 8:19 pm

    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.
    Image

    User avatar
    beteljuice
    Posts: 2812
    Joined: Tue 09 Dec 2008 1:37 pm
    Weather Station: None !
    Operating System: ex XP SP3 - now W10 laptop grr
    Location: Dudley, West Midlands, UK

    Re: Yet Another Dayfile Reader (PHP)

    Post by beteljuice » Tue 17 Dec 2019 1:25 pm

    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: 377
    Joined: Sat 16 Jul 2016 11:59 pm
    Weather Station: Davis Vantage Pro2 Plus
    Operating System: Win7 Pro
    Location: Australia

    Re: Yet Another Dayfile Reader (PHP)

    Post by Phil23 » Thu 02 Jan 2020 10:06 am

    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.
    Image

    griffo42
    Posts: 39
    Joined: Thu 10 Dec 2015 6:41 am
    Weather Station: Davis VantageVue
    Operating System: Win 10
    Location: Brisbane, Queensland, Australia
    Contact:

    Re: Yet Another Dayfile Reader (PHP)

    Post by griffo42 » Tue 07 Jan 2020 4:31 am

    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
    Davis Vantage Vue Model #6357 - CumulusMX - Win10 - Saratoga Scripts
    https://www.kstwx.net/index.php
    https://www.kstwx.net/cu/index.htm
    Image

    User avatar
    billy
    Posts: 63
    Joined: Mon 30 Nov 2015 10:54 am
    Weather Station: Oregon WMR200
    Operating System: RPi jessie
    Location: Perth, Australia

    Re: Yet Another Dayfile Reader (PHP)

    Post by billy » Tue 07 Jan 2020 9:13 am

    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: 39
    Joined: Thu 10 Dec 2015 6:41 am
    Weather Station: Davis VantageVue
    Operating System: Win 10
    Location: Brisbane, Queensland, Australia
    Contact:

    Re: Yet Another Dayfile Reader (PHP)

    Post by griffo42 » Wed 08 Jan 2020 7:30 am

    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
    Davis Vantage Vue Model #6357 - CumulusMX - Win10 - Saratoga Scripts
    https://www.kstwx.net/index.php
    https://www.kstwx.net/cu/index.htm
    Image

    User avatar
    billy
    Posts: 63
    Joined: Mon 30 Nov 2015 10:54 am
    Weather Station: Oregon WMR200
    Operating System: RPi jessie
    Location: Perth, Australia

    Re: Yet Another Dayfile Reader (PHP)

    Post by billy » Wed 08 Jan 2020 10:23 am

    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: 18
    Joined: Sun 14 Oct 2012 4:23 pm
    Weather Station: Oregon Scientific WMR100
    Operating System: Raspbian Jessie
    Location: Mjølfjell, Voss, Norway

    Re: Yet Another Dayfile Reader (PHP)

    Post by sutne » Wed 08 Jan 2020 10:52 am

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

    I also miss the annual rainfall summary.

    Best regards
    Steinar

    griffo42
    Posts: 39
    Joined: Thu 10 Dec 2015 6:41 am
    Weather Station: Davis VantageVue
    Operating System: Win 10
    Location: Brisbane, Queensland, Australia
    Contact:

    Re: Yet Another Dayfile Reader (PHP)

    Post by griffo42 » Wed 08 Jan 2020 11:30 am

    Hi Billy

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

    Keith
    Davis Vantage Vue Model #6357 - CumulusMX - Win10 - Saratoga Scripts
    https://www.kstwx.net/index.php
    https://www.kstwx.net/cu/index.htm
    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: Yet Another Dayfile Reader (PHP)

    Post by PaulMy » Wed 08 Jan 2020 3:05 pm

    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

    User avatar
    billy
    Posts: 63
    Joined: Mon 30 Nov 2015 10:54 am
    Weather Station: Oregon WMR200
    Operating System: RPi jessie
    Location: Perth, Australia

    Re: Yet Another Dayfile Reader (PHP)

    Post by billy » Wed 08 Jan 2020 11:48 pm

    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: 2812
    Joined: Tue 09 Dec 2008 1:37 pm
    Weather Station: None !
    Operating System: ex XP SP3 - now W10 laptop grr
    Location: Dudley, West Midlands, UK

    Re: Yet Another Dayfile Reader (PHP)

    Post by beteljuice » Thu 09 Jan 2020 3:39 am

    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: 2812
    Joined: Tue 09 Dec 2008 1:37 pm
    Weather Station: None !
    Operating System: ex XP SP3 - now W10 laptop grr
    Location: Dudley, West Midlands, UK

    *** BUG FIX ***

    Post by beteljuice » Sat 11 Jan 2020 1:59 am

    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 !

    Post Reply