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 4018) - 28 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 »

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.
: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 »

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: 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 »

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.
: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 »

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: 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 »

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
: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
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 »

" 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
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
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 »

Thanks for confirming Paul :D
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 »

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.
: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 »

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: 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 »

@phil23

You are using the large default (900px) css version, try using the 700 instead ;)
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 »

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.
: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 »

@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: 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 »

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.
: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 »

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: 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 »

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.
: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:
Post Reply