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 »

It's the alt one I'm running ATM. Seems that the ea one doesn't report Calendar Support.
: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 »

Knock, knock ....

As we have seen from your other problems, they have not correctly / fully installed the latest php version.

It's for your host to fix.
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: Thu 02 Jul 2020 2:26 am Knock, knock ....
All messages received not......

I'm guilty of writing post & not hitting submit. :groan:
But Hey, I blame clients & the phone for that. :bash:

Think one of my replies was "pending" for a few hours & I missed other responses.

Have notified Host & in the meantime am using one of the "ea" builds/

Thanks.
: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:
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 opened http://weather.inverellit.com/datasummary.php to look at November's rainfall.

I see 3 days & it reports 4; there's a mystery 0.2mm getting into the total as an extra day somewhere......

Any thoughts. Not sure if mines current either.

Edit:- Ignore, I'm staring blind this morning......

didn't see the 0.2mm on the 22nd as it wasn't shaded in.
: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:
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by flort »

I just installed this Dayfile Reader and am very impressed with the functionality and depth of information displayed. I have one query though -

In the Seasonal View it shows my Dataset is incomplete for February 2017, however, there is nothing missing when I look at the Daily View.
Seasonal View.jpg
Feb 17.jpg
If you want to look at the website it is http://flor.byethost24.com/weather/index.htm

Thanks.
You do not have the required permissions to view the files attached to this post.
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

UPDATE 7.1.4 *** Yet Another Dayfile Reader (PHP)

Post by beteljuice »

UPDATE - ver 7.1.4

First of all, apologies to everyone - the beteljuice did do a bugfix for the above post, and updated the cookies code as promised viewtopic.php?p=142901#p142901 ... but never got round to 'publishing' them :oops:

Edit: For Information ONLY

Minor modification to main betel_readDayfile.php - Don't forget to back-up your existing copy first - it has all your user vars you've tweaked !!!

If you would prefer to modify the file youself (simples !)

Code: Select all


*** Incomplete code removed

... and ...

Code: Select all

// approx line #1675

foreach($displayUOM as $key => $val){

//$script .= "    document.cookie = 'theseUOM[".$key."] =".$val."; '+expires;\n";
$script .= "    document.cookie = 'theseUOM[".$key."] =".$val."; '+expires+'; sameSite=lax;'\n";
}
All files available in first post.
Last edited by beteljuice on Thu 14 Jan 2021 11:56 am, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by flort »

Thanks for posting the fix. I have applied it and February 2017 now shows as a complete dataset, however, this current month (January 2021) no longer shows as incomplete. Is this able to be corrected?
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 »

flort wrote: Wed 13 Jan 2021 5:53 am Thanks for posting the fix. I have applied it and February 2017 now shows as a complete dataset, however, this current month (January 2021) no longer shows as incomplete. Is this able to be corrected?
In addition to that requested by flort, the Note at the foot of the seasonal table is not there. Also, my first month Mar 2011 which is incomplete is not marked with and asterisk.

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

:oops: :oops: :oops:

Edit: For Information Only

Typo (var had two names - $daycnt and $dayCnt)

Code: Select all


*** Incomplete code removed

Distribution files updated .. :?
Last edited by beteljuice on Thu 14 Jan 2021 11:57 am, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
meteosangonera
Posts: 52
Joined: Thu 07 Jun 2018 2:17 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by meteosangonera »

Thank you very much beteljuice!

I love your script.
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by flort »

I installed the update but it still didn't work. I searched through the file and found the same variable listed on lines 1399, 1444 and 1530. I changed them so all variables read $dayCnt and it now works correctly.
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 »

flort wrote: Thu 14 Jan 2021 5:43 am I installed the update but it still didn't work. I searched through the file and found the same variable listed on lines 1399, 1444 and 1530. I changed them so all variables read $dayCnt and it now works correctly.
Thank you flort - the beteljuice again apologises for being lackadaisical, but I have just suddenly 'lost' a dear friend and drinking buddy of more than 20 years.
Suspect heart attack after recovering from Covid acquired at his Mother In Laws funeral (Cancer).
His widows in a right state ....

I'll re-post when I redo the coding - hopefully correctly this time (What I actually meant to do was to correct that var to $daycnt and not the camelCase entry :roll: )
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: V 7.1.4 Update - Yet Another Dayfile Reader (PHP)

Post by beteljuice »

V 7.1.4 Update

Hopefully the beteljuice has now correctly edited the main file correctly :? [tsk .. bad grammar]

Don't forget to back-up your existing copy first - it has all your user vars you've tweaked !!!

Files in first post ...
Last edited by beteljuice on Thu 14 Jan 2021 11:15 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
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 »

, but I have just suddenly 'lost' a dear friend and drinking buddy of more than 20 years.
Sorry to hear such sad news. Trust you will continue to be safe and healthy.

Sincerely,
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
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by flort »

I have installed the update and can confirm everything is working as expected. Thanks again.
Post Reply