Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.9.6 (build 3101) - 20 January 2021 (please see announcement regarding releases since 3.5.0)
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 the NOAA report and Snow Index drop-down menus to 2030)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

Yet Another Dayfile Reader (PHP)

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

Moderator: daj

Phil23
Posts: 604
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 »

It's the alt one I'm running ATM. Seems that the ea one doesn't report Calendar Support.

User avatar
beteljuice
Posts: 3100
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: 604
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 »

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.

Phil23
Posts: 604
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 »

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.

flort
Posts: 14
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Aercus WS2083
Operating System: Windows 10 x64
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: 3100
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: 14
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Aercus WS2083
Operating System: Windows 10 x64
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: 78
Joined: Thu 10 Dec 2015 6:41 am
Weather Station: Davis Vantage Pro2
Operating System: Win 10
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
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win10 - Saratoga Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/mxtestv2/index.php
Image

User avatar
beteljuice
Posts: 3100
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: 48
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: 14
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Aercus WS2083
Operating System: Windows 10 x64
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: 3100
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: 3100
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: 2409
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2+ Cumulus1 / CummulusMX
Operating System: Windows8 / 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

flort
Posts: 14
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Aercus WS2083
Operating System: Windows 10 x64
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