Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.2.3 build 3059 - 04 December 2019.
    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: 344
    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 30 Jun 2019 10:25 pm

    Just some further info of what I can now reproduce.

    Refresh page.
    Click on EVT & I get the error.
    Choose Seasonal from the drop down & then EVT & I get valid data.
    Change back to Daily in the drop down & I still have valid data.
    Choose maxtemp & then back to evt & it errors again.


    Cheers

    Phil.
    Image

    User avatar
    beteljuice
    Posts: 2790
    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 » Sun 30 Jun 2019 10:34 pm

    I'm not seeing any problem !!

    Everything including EVT is working fine, including different years /daily / season (Using FF)

    Are you sure only EVT acts that way, page should load quickly ....

    EDIT; Thought, you aren't loading the data at reatime interval are you ? - that may create access 'holes' because of it's size.
    dayfile.txt only needs to be uploaded every 24 hrs.
    Image
    ......................Imagine, what you will KNOW tomorrow !

    Phil23
    Posts: 344
    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 30 Jun 2019 11:21 pm

    beteljuice wrote:
    Sun 30 Jun 2019 10:34 pm
    I'm not seeing any problem !!
    Just investigated it a bit further.
    Above unpredictability is reproducible on this Laptop. in IE, (will check my other PC in both a bit later).
    BUT all works fine in Chrome.

    Also edited a record for 31/12/18 that showed ET at -1446.13; changed it to 6.13 which follows trends,
    This change is reflected in Chrome's pages but not IE.

    Cleared the cache, but no difference.

    Also just checked it in Edge, :roll: & it works perfectly there.
    EDIT; Thought, you aren't loading the data at reatime interval are you ? - that may create access 'holes' because of it's size.
    dayfile.txt only needs to be uploaded every 24 hrs.
    At this stage I've only uploaded a static copy of Dayfile.txt.

    Would like to know also how best to upload once every 24 hours.

    Thanks

    Phil.
    Image

    User avatar
    beteljuice
    Posts: 2790
    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 » Mon 01 Jul 2019 12:27 am

    Cu MX is alien to me :geek: but I believe something along the lines of:

    " you could use the Extra web files function in CumulusMX by entering the source (i.e. \CumulusMX\Reports\dayfile.txt) and remote (\yourlocalfolder\dayflie.txt), tick FTP, and tick End of Day." (NO process or realtime)

    ... but I don't really know ....
    Image
    ......................Imagine, what you will KNOW tomorrow !

    Phil23
    Posts: 344
    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 » Mon 01 Jul 2019 12:40 am

    IE issue sorted now thanks.
    Simply a matter of closing & restarting IE on that Laptop for some reason.

    Now reading entire post to try & get it embedded in a standard Cumulus page.

    Overlooked the end of day FTP option.

    Cheers
    Image

    User avatar
    PaulMy
    Posts: 2008
    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 » Mon 01 Jul 2019 12:51 am

    " you could use the Extra web files function in CumulusMX by entering the source (i.e. \CumulusMX\Reports\dayfile.txt) and remote (\yourlocalfolder\dayflie.txt), tick FTP, and tick End of Day." (NO process or realtime)

    ... but I don't really know ....
    Yes the extra web files works and have been using that for www.komokaweather.com/cumulusmx/dayfile.txt

    Enjoy,
    Paul

    User avatar
    beteljuice
    Posts: 2790
    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 » Mon 01 Jul 2019 12:56 am

    Thanks for confirming Paul :D
    Image
    ......................Imagine, what you will KNOW tomorrow !

    Phil23
    Posts: 344
    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 » Mon 01 Jul 2019 10:55 am

    Up & working now.
    Might need polishing a bit. Like most other stuff.
    (As in the differnet menu's I have top & bottom.

    http://weather.inverellit.com/datasummary.php

    Full credit to Beteljuice for making this contribution to others.
    Much appreciated.

    Just one thing missing, & that's a credit to yourself at the bottom of the page.

    Cheers.
    Image

    User avatar
    beteljuice
    Posts: 2790
    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 » Mon 01 Jul 2019 12:09 pm

    Just one thing missing, & that's a credit to yourself at the bottom of the page.
    Add it if you wish ...

    the beteljuice scripts / snippets are usually recognized once seen / investigated ;)
    You've probably been using bits 'n' pieces all along ... :lol:
    Image
    ......................Imagine, what you will KNOW tomorrow !

    User avatar
    beteljuice
    Posts: 2790
    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 » Mon 01 Jul 2019 11:09 pm

    @phil23

    You are using the large default (900px) css version, try using the 700 instead ;)
    Image
    ......................Imagine, what you will KNOW tomorrow !

    Phil23
    Posts: 344
    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 » Mon 01 Jul 2019 11:25 pm

    beteljuice wrote:
    Mon 01 Jul 2019 11:09 pm
    You are using the large default (900px) css version, try using the 700 instead ;)
    Yeah, I did try the various options in your first post & found large to most pleasing on my screens. 1920x1080.

    An observation after having browsed my data a bit.

    For Rainfall & EVT, a daily average seems less applicable on the bottom of the pages than a monthly total for each month of the year.
    (Lol, maybe that's a British thing, cause it rains every day...)</Aussie Humour>

    I see that present in the seasonal view, but the table at the bottom of the daily pages is nice & easily readable.

    Edit,
    Actually EVT lends it's self to both, as there's always a daily value for the calc,
    but rainfall not so much.


    Cheers.
    Image

    User avatar
    beteljuice
    Posts: 2790
    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 02 Jul 2019 1:06 am

    @phil23
    For Rainfall ..., a daily average seems less applicable on the bottom of the pages than a monthly total for each month of the year.
    (Lol, maybe that's a British thing, cause it rains every day...)
    Read through the code on the 'flags' that can be set for existing data sets ...

    See viewtopic.php?f=14&t=11397&start=285#p93823 for an example.
    Image
    ......................Imagine, what you will KNOW tomorrow !

    Phil23
    Posts: 344
    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 04 Jul 2019 10:23 pm

    Been editing a few of the rogue negative ET values from my dayfile & notice a similar IE issue as I saw before.

    After uploading a new dayfile, the data doesn't update on the pages in IE.
    Works absolutely perfectly in Chrome, but it appears as if IE keeps the array in memory & it is only refreshed but closing & reopening IE.

    In IE I can refresh, hard refresh, clear cache, leave the page or close the tab, but still get the stale data until I actually close then reopen IE.

    No biggie, but worth a mention to save others from a little hair tearing.
    Put that one down to Microsoft.
    Image

    User avatar
    beteljuice
    Posts: 2790
    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 04 Jul 2019 11:38 pm

    Ensure the following two lines are in the <head> section of your page ..

    Code: Select all

    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    If that doesn't work ?????
    Image
    ......................Imagine, what you will KNOW tomorrow !

    Phil23
    Posts: 344
    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 » Wed 10 Jul 2019 6:19 am

    Browsed the code a few times, but at a bit of a loss understanding how the tables are built, let alone how the averages are put at the bottom.
    Is there a specific block of code you can point me to?

    Cheers

    Phil.
    Image

    Post Reply