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 4019) - 03 April 2024

Legacy Cumulus 1 release 1.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

sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Yet Another Dayfile Reader (PHP)

Post by sfws »

User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
Mapantz
Posts: 1808
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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'),
You do not have the required permissions to view the files attached to this post.
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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 :D

Appreciate the help !!
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
Nottub
Posts: 188
Joined: Fri 04 Dec 2020 4:35 pm
Weather Station: Davis VP2 (Cabled)
Operating System: RPi 4 (Buster)
Contact:

Re: Yet Another Dayfile Reader (PHP)

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


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
Image
freddie
Posts: 2471
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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.
Freddie
Image
Nottub
Posts: 188
Joined: Fri 04 Dec 2020 4:35 pm
Weather Station: Davis VP2 (Cabled)
Operating System: RPi 4 (Buster)
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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
Image
Mrc
Posts: 57
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Ecowitt hp2551
Operating System: Windows 10
Location: Finland

Re: Yet Another Dayfile Reader (PHP)

Post 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.
RayProudfoot
Posts: 3390
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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.
Cheers,
Ray, Cheshire.

Image
User avatar
PaulMy
Posts: 3829
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 »

@ 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
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
RayProudfoot
Posts: 3390
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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.
Cheers,
Ray, Cheshire.

Image
User avatar
PaulMy
Posts: 3829
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 »

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
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
Mapantz
Posts: 1808
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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..
Image
RayProudfoot
Posts: 3390
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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.
Cheers,
Ray, Cheshire.

Image
User avatar
HansR
Posts: 5957
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post 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.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply