Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.11.4 (build 3133) - 25 May 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 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

griffo42
Posts: 102
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 »

beteljuice wrote:
Wed 13 Jan 2021 11:49 am
:oops: :oops: :oops:

Edit: For Information Only

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

Distribution files updated .. :?
When it didn't work properly for me, I checked on all instances of the relevant variable in the script and changed those where necessary. All was good then. Apologies for not having done a post at the time.

Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win10 - Saratoga Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.htm
https://www.kstwx.net/mxtestv2/index.php
Image

flort
Posts: 25
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Aercus WS3085
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by flort »

I don't know if you are interested in expanding the functionality of this Dayfile Reader but it would be really good if you had an option of what to display in the year average table via a dropdown. What I mean is where you can choose to show 'average', 'hi', 'low' or 'sum' for any of the displayed data as in the attached image. I had a play around with the code but I'm a real novice and couldn't get it to automatically change the output based on the selection dropdown.
screenshot.jpg
Understand if you don't have the desire or the time to pursue this.

Thanks,
Trevor
You do not have the required permissions to view the files attached to this post.

imballinger
Posts: 38
Joined: Mon 29 Aug 2016 6:40 am
Weather Station: AE WS3803
Operating System: Windows 10

Re: Yet Another Dayfile Reader (PHP)

Post by imballinger »

When you first visit my page https://www.porthmadog-weather.co.uk/be ... ummary.php it's showing incorrect data, and even data from years when I didn't have a station, but if you click the "max temp" button it shows the correct information

freddie
Posts: 1338
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux Ubuntu 20.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by freddie »

Your pages also say this:

Code: Select all

page updated 20/03/2021 11:40:00 pm
That was at 9:14 pm on 20 March 2021
Freddie
Image

imballinger
Posts: 38
Joined: Mon 29 Aug 2016 6:40 am
Weather Station: AE WS3803
Operating System: Windows 10

Re: Yet Another Dayfile Reader (PHP)

Post by imballinger »

I only just noticed that! but do you see the error I meant?

freddie
Posts: 1338
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux Ubuntu 20.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by freddie »

imballinger wrote:
Sat 20 Mar 2021 9:18 pm
I only just noticed that! but do you see the error I meant?
Yes, I did. Records stretching back to 2017, when your station started recording in January of this year.
Freddie
Image

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

You have TWO different pages ...

betel_datasummary.php
betel_readDayfile.php

You also seem to have TWO dayfile.txt ?

datasummary.php is seeing the correct dayfile.txt on initial load
... but it hasn't been configured correctly so all the option links then send you to readDayfile.php which is seeing a dayfile.txt with only data from this year.
Image
......................Imagine, what you will KNOW tomorrow !

imballinger
Posts: 38
Joined: Mon 29 Aug 2016 6:40 am
Weather Station: AE WS3803
Operating System: Windows 10

Re: Yet Another Dayfile Reader (PHP)

Post by imballinger »

Where are you seeing two dayfile.txt as there is only one on my server. The initial load is wrong, the one with the temperatures in the 30's, I only set up my station in January this year.

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

You now seem to have it mostly working ....

... but the css file is giving a 404
Image
......................Imagine, what you will KNOW tomorrow !

cliftonweather
Posts: 9
Joined: Sat 14 Nov 2009 12:34 pm
Weather Station: Vantage pro

Re: Yet Another Dayfile Reader (PHP)

Post by cliftonweather »

I've been using Marks SQL version of this for sometime now and it was all working fine until my web host made me update php from ver 7.0 to 7.4, now certain parameters such as sunshine, raindays wind run no longer work, I've tried to work out what has changed in 7.4 but so far have drawn a blank, anybody got any ideas what needs to be changed?
This is the page http://www.cliftonweather.co.uk/mx/datasummary.php
it works to the dayfile version http://www.cliftonweather.co.uk/mx/datasummary2.php

User avatar
ConligWX
Posts: 1266
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus w/DFARS
Operating System: Ubuntu 20.04.2 LTS - NUC
Location: Bangor, NI
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by ConligWX »

cliftonweather wrote:
Wed 24 Mar 2021 1:34 pm
I've been using Marks SQL version of this for sometime now and it was all working fine until my web host made me update php from ver 7.0 to 7.4, now certain parameters such as sunshine, raindays wind run no longer work, I've tried to work out what has changed in 7.4 but so far have drawn a blank, anybody got any ideas what needs to be changed?
This is the page http://www.cliftonweather.co.uk/mx/datasummary.php
it works to the dayfile version http://www.cliftonweather.co.uk/mx/datasummary2.php
have you tried enabling show php errors?

not sure if this is build into the php pages you use as I dont use them at all, but you could try seeing what shows up, or look in your http logs.

Code: Select all

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir PA-II-SD • CumulusMX •

cliftonweather
Posts: 9
Joined: Sat 14 Nov 2009 12:34 pm
Weather Station: Vantage pro

Re: Yet Another Dayfile Reader (PHP)

Post by cliftonweather »

Just tries that but I still get 'Data FAIL' and no indication as to what is the problem and nothing in the http logs that I can see

cliftonweather
Posts: 9
Joined: Sat 14 Nov 2009 12:34 pm
Weather Station: Vantage pro

Re: Yet Another Dayfile Reader (PHP)

Post by cliftonweather »

Im using Version: 4.4 - 21/09/18 - Mark Crossley of the script does anybody know if there is a newer version?

User avatar
beteljuice
Posts: 3212
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

YADR (PHP) CuMX 10.3+

Post by beteljuice »

"I'm using the cuMx 10.3 Neil Thomas templates - will this work ?"

Of course it will Malcolm ...

*NEW* .. >700 px wide< in CuMX 10.3+ template

Here is the beteljuice basic template:

yadr.zip

Code: Select all

	yadr.php - dayfile reader in Neil Thomas / mx 10.3+ page		v:0.0.1		June 2021	the beteljuice
	Last modified: 17 June 2021
	Page: 1 main panel plus a right sidebar
	Requires:
		betel_readDayfile.php (this is where all options are set)
		betel_dayfile_languages.php
		css/700betel_datasummary.css - NB: put in common css directory
		daffodil.png
		hatch2.jpg
		leaf.png
		raindrop.png
		snowflake.png
		sun.png
		... and dayfile.txt
NOTE: The right-hand pane contains chart links which will not work correctly for ver mx ver 3.11+ you until a future update of the charts files ;)

zip also contains an 'easter egg' :)
You do not have the required permissions to view the files attached to this post.
Image
......................Imagine, what you will KNOW tomorrow !

Post Reply