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 4018) - 28 March 2024

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: 226
Joined: Thu 10 Dec 2015 6:41 am
Weather Station: Davis Vantage Pro2
Operating System: Win 11 Home
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
Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
Image
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
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: 2434
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 »

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: 2434
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 »

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: 3292
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: 3292
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: 25
Joined: Sat 14 Nov 2009 12:34 pm
Weather Station: Vantage pro+
Operating System: RPi3 Model 3 running Buster
Location: Clifton, Beds
Contact:

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: 1571
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
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 •

Image
cliftonweather
Posts: 25
Joined: Sat 14 Nov 2009 12:34 pm
Weather Station: Vantage pro+
Operating System: RPi3 Model 3 running Buster
Location: Clifton, Beds
Contact:

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: 25
Joined: Sat 14 Nov 2009 12:34 pm
Weather Station: Vantage pro+
Operating System: RPi3 Model 3 running Buster
Location: Clifton, Beds
Contact:

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: 3292
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 ...

Edit: 24 Aug 2021 - fix to 'missing' mobile menu :oops:

*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.1.0	the beteljuice
	Last modified: 24 Aug 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.

zip also contains an 'easter egg' :)
You do not have the required permissions to view the files attached to this post.
Last edited by beteljuice on Tue 24 Aug 2021 9:48 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Yet Another Dayfile Reader (PHP)

Post by Phil23 »

Thanks BetelJuice,

Dropped this in my new site yesterday & it worked fine the the 7 days data.
The site owner did pick up on an issue I'd missed later though.

The menu doesn't work once the scale goes down to tablet/ipad size.
I can reproduce the same on my Tabs & but scaling a window on the PC.

I have it in these two places.
https://s7.inverellit.com/daily.php & https://w2.inverellit.com/daily.php

Sized as below, clicking the menu does nothing.
Screenshot 2021-08-25 062217.jpg
You do not have the required permissions to view the files attached to this post.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Post Reply