Page 53 of 59
Re: Yet Another Dayfile Reader (PHP)
Posted: Sun 30 Jan 2022 11:23 am
by sfws
Re: Yet Another Dayfile Reader (PHP)
Posted: Sun 30 Jan 2022 1:27 pm
by Paul C
HI
I am not sure who the last reply was from but to start the message " again" wasnt helpful and uncalled for. I had always found this forum to be very helpful.
Anyway - I had tried to read the help pages and wiki, but I was still unable to grasp what is happening
The day file does include the high gust of 54knots yesterday morning. What I am failing to understand is why its not showing in the output to my pages. Its there in my other page summaries/records but not my year one .
http://www.bramptonweather.co.uk/yadr.php
Does my page need to be altered in some way ? anyone else noticed an issue
Thankyou
Re: Yet Another Dayfile Reader (PHP)
Posted: Sun 30 Jan 2022 2:18 pm
by Mapantz
Paul C wrote: ↑Sun 30 Jan 2022 1:27 pm
HI
I am not sure who the last reply was from but to start the message " again" wasnt helpful and uncalled for. I had always found this forum to be very helpful.
Anyway - I had tried to read the help pages and wiki, but I was still unable to grasp what is happening
The day file does include the high gust of 54knots yesterday morning. What I am failing to understand is why its not showing in the output to my pages. Its there in my other page summaries/records but not my year one .
http://www.bramptonweather.co.uk/yadr.php
Does my page need to be altered in some way ? anyone else noticed an issue
Thankyou
Your page shows '54' which is what is in your Dayfile. So, if you want it showing as knots instead of km/h
Screenshot 2022-01-30 141759.png
Screenshot 2022-01-30 141659.png
Go in to the betel dayfile.php and look for:
Code: Select all
'wind' => (isset($SITE['uomWind']) ? substr($SITE['uomWind'], 1) : 'km/h'),
Change to:
Code: Select all
'wind' => (isset($SITE['uomWind']) ? substr($SITE['uomWind'], 1) : 'kts'),
Re: Yet Another Dayfile Reader (PHP)
Posted: Sun 30 Jan 2022 4:10 pm
by Paul C
Thats great, working fine now
( I had assumed (wrongly) that as I record in knots and upload in knots it was reading it OK and converting it on the page, but of course it has to know what you are using to start with)
easy
Appreciate the help !!
Re: Yet Another Dayfile Reader (PHP)
Posted: Fri 26 Aug 2022 8:30 am
by Nottub
With my limited knowledge of all things coding wise, I managed to get this running following the instructions in this thread.
However I had an issue with Wind Direction. There were several entries blank in odd months in my records which I am manually adding.
It's taken me some time to fathom it.
My orginal Davis Weather Monitor 2 recorded true North as 0 degrees which is read as a null value by the Betel_Dayfile Reader.
Weatherlink happily recorded 0 degrees as North, 359 degrees as North, and 1 degree as North ( the nearest wind direction).
However the Betel_Dayfile Reader sees this 0 degrees as a null value, but not the 359 and 1 degree as these are valid, and correctly show as North.
So the errors are limied to those very odd occasions where the wind was recorded as true North i.e. 0 degrees.
When I look at the original Monitor 2 Consol manual (P11) which identifies North as 0 degrees, whereas the Vantage Pro 2 Consol manual (p21) shows North as 360 degrees.
Just need to work out if there's an easy way to amend the Betel_Dayfile Reader.
Thought it worthy of note, and to see if theres an easy fix.
Martyn
Re: Yet Another Dayfile Reader (PHP)
Posted: Fri 26 Aug 2022 8:50 am
by freddie
Nottub wrote: ↑Fri 26 Aug 2022 8:30 amJust need to work out if there's an easy way to amend the Betel_Dayfile Reader.
It might be more accurate to amend your data files to change any 0 directions to 360, as 0 as a direction isn't valid.
Re: Yet Another Dayfile Reader (PHP)
Posted: Fri 26 Aug 2022 9:34 am
by Nottub
It only takes one 15 minute value in Weatherlink to read 0 degrees and the whole dayfile reads 0. Even if the average wind direction lies elsewhere.
What I have been doing is generating a NOAA report in Cumulus which shows the direction and then manually editing the dayfile with the equivalent value in degrees.
I have records back to 2000, 20 years of the Weather Monitor2. So I have 240 months where 0 degrees was seen as North. So a few potential records to edit.
Thanks
Martyn
Re: Yet Another Dayfile Reader (PHP)
Posted: Thu 09 Nov 2023 5:19 am
by Mrc
There is problem with UV. If UV data is zero, then there is blank spot where data should be. If UV is 1.0 or higher everything is fine.
Re: Yet Another Dayfile Reader (PHP)
Posted: Thu 09 Nov 2023 5:28 pm
by RayProudfoot
My data in the dayfile reader is perfect with one exception which I’ve tried to solve but have failed.
Use this link
http://www.cheadlehulmeweather.co.uk/be ... ummary.php
and select Rainfall. Then select Seasonal in the drop down.
Look at Autumn 2023. The monthly rainfall for September, October and November is 3.39, 5.70 and 1.54.
That adds up to 10.63 but 11.63 is displayed. All the other totals are fine. It’s just the current season where it adds 1 inch.
Re: Yet Another Dayfile Reader (PHP)
Posted: Thu 09 Nov 2023 6:12 pm
by PaulMy
@ Mrc, in the version I am using it displays 0.0 when the High UV-1 is 0.
@ Ray, in my version it sums and displays correctly.
http://www.komokaweather.com/cumulusmxw ... hp?lang=en
Enjoy,
Paul
Re: Yet Another Dayfile Reader (PHP)
Posted: Thu 09 Nov 2023 6:36 pm
by RayProudfoot
@ Ray, in my version it sums and displays correctly.
But I haven’t really changed anything. Just my location I think. Can you isolate the segment of code for that option and I’ll compare it to mine.
Re: Yet Another Dayfile Reader (PHP)
Posted: Thu 09 Nov 2023 8:25 pm
by PaulMy
Hi Ray,
I've looked in betel_datasummary.php but really have no idea where/what to look for. If you know where it is in your file maybe that will help me find something similar,
Enjoy,
Paul
Re: Yet Another Dayfile Reader (PHP)
Posted: Thu 09 Nov 2023 9:44 pm
by Mapantz
After reading about the rainfall issue in the seasonal drop down, I feel like I remember seeing this discussed in this thread (or a different one) and beteljuice fixed it?! My brain isn't what it used to be, so I could be wrong..
Re: Yet Another Dayfile Reader (PHP)
Posted: Thu 09 Nov 2023 10:03 pm
by RayProudfoot
Paul / Mapantz, I’ll have a look at the code and see if I can find the section of code. I’m no expert on this language.
I was a late adaptor of this brilliant addon but don’t recall Beteljuice discussing the problem.
Re: Yet Another Dayfile Reader (PHP)
Posted: Fri 10 Nov 2023 1:07 am
by HansR
There must be some PHP knowledgeable user in the community willing to adopt this orphaned heritage?
The maintenance effort does not seem huge.