Page 1 of 2
Request help with betel_datasummary.php
Posted: Sun 24 Feb 2019 5:55 pm
by Dennisdg
Request some help please.
I have for some years successfully used betel_datasummary.php on my web site, unfortunately for the last few days (5 or 6) it is broken with no error returned. From my drop down menu when selecting records/annual data only my station name and Lat/Long are returned. To me it seems there is an issue with the dayfile.txt on my server. If I remove the dayfile.txt from my server the annual data screen is returned with an un-populated form that displays the calendar/seasons etc.
I have betel.datasummary.ccs, betel_summary.php, betel_languages.php and betel_readDayfile.php and the dayfile.txt all in the same /public_html folder.
My web site host is set to use PHP 5.6. I do have available versions up to 7.3, none of which fix this issue.
This used to work, I haven’t changed any of these files, my host company say they haven’t changed anything either.
Any help will be gratefully received.
Thanks
Re: Request help with betel_datasummary.php
Posted: Sun 24 Feb 2019 8:57 pm
by beteljuice
When I just tried your site the none of the php o/p was there ...
However; you said you got something happening if you 'emptied' dayfile.txt - at a glance I didn't see anything obvious, but if you try (server side ONLY) removing the last 12 or so entries and see if that gives somesort of result.
Re: Request help with betel_datasummary.php
Posted: Sun 24 Feb 2019 10:16 pm
by Dennisdg
On the server I renamed dayfile.txt to dayfile.txt.old then the page displays your un-populated page without the data.
I removed data from 1st Feb in the dayfile.txt, still no joy, just the station name and Lat/Long.
However, removing all the dayfile data and saving it on the server file size 0, the page displays un-populated.
Deleting the file then loading a fresh dayfile.txt (file size 614,106) brings back the same problem.
Re: Request help with betel_datasummary.php
Posted: Sun 24 Feb 2019 10:22 pm
by beteljuice
Very odd ...
OK ... try removing all the data for this year.
Re: Request help with betel_datasummary.php
Posted: Sun 24 Feb 2019 10:37 pm
by beteljuice
I've just tried your dayfile.txt on my test page and no problems ! (latest ver. but running php 5.x)
I can only recommend downloading latest versions and trying again ...
Re: Request help with betel_datasummary.php
Posted: Sun 24 Feb 2019 10:44 pm
by Dennisdg
Just gone to bed, got an early start tomorrow at 05.30. Please point me to where I can download the latest versions.
I'll take another go later tomorrow.
Thanks for your help
Re: Request help with betel_datasummary.php
Posted: Sun 24 Feb 2019 11:29 pm
by beteljuice
Yet Another Dayfile Reader
viewtopic.php?f=14&t=11397
Re: Request help with betel_datasummary.php
Posted: Mon 25 Feb 2019 3:46 pm
by Dennisdg
Thanks for that.
Working now, just need some tarting up.
Regards
Re: Request help with betel_datasummary.php
Posted: Tue 31 Dec 2024 10:15 pm
by Super-T
With the New Year arriving I have noticed that my Betel Datasummary can't move to 2025. Is there an update or can someone modify Betel's data summary PHP to take me forward for another few years?
I should have noticed that before the new year.
https://www.janter.co.nz/weather/betel_datasummary.php
Re: Request help with betel_datasummary.php
Posted: Tue 31 Dec 2024 10:17 pm
by Mapantz
Isn't it supposed to show the new year when the data has been added at the rollover time?
Re: Request help with betel_datasummary.php
Posted: Tue 31 Dec 2024 11:35 pm
by RayProudfoot
It takes at least 30 mins to update after midnight rollover. Perhaps a bit longer with a new year.
Re: Request help with betel_datasummary.php
Posted: Wed 01 Jan 2025 12:07 am
by RayProudfoot
On further reflection you’ll not see anything for 2025 until 2 January.
Re: Request help with betel_datasummary.php
Posted: Wed 01 Jan 2025 8:58 am
by Super-T
Thanks. Will see what happens in 2 hours time

You're right I think as it always shows 1 day behind, not instant info.
Re: Request help with betel_datasummary.php
Posted: Wed 01 Jan 2025 9:51 am
by SamiS
The dayfile.txt contains data for 2025 only after the 1st day of January has ended and rollover happened, so this delay is kind of mandatory. For those using 9am rollover it will happen even later.
Re: Request help with betel_datasummary.php
Posted: Wed 01 Jan 2025 9:31 pm
by Super-T
All good now. Rolled over to 2025.
Happy New Year