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

Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Grimers »

Aha, thanks guys. It wasn't something I've done then! I've modified my script, so hopefully I'll be able to find what's been changed. :lol:
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 »

Thanks Mark. :clap:

Only problem is I don't actually have a script which works accross all versions of php :bash:

I'll have to go back to the 'base' release when I can get my tired old head around it - thought, did it behave like this in earlier php releases ?
Image
......................Imagine, what you will KNOW tomorrow !
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Grimers »

No idea on that one, but just thinking it may be easier for you to distribute just the snippet of code that needs changing, as quite a few people have changed the scripts' look. :)
User avatar
PaulMy
Posts: 3775
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 »

I am helping a new user with his website and trying to get the Dayfile Reader working. He had downloaded the script but that didn't work out of the box so he came here with his laptop and now using my working files, edited with his data files, etc. But no luck http://www.blenheimweather.ca/cu/betel_ ... maryCU.php

Any suggestion where I have misled?

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
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by jlmr731 »

PaulMy wrote:I am helping a new user with his website and trying to get the Dayfile Reader working. He had downloaded the script but that didn't work out of the box so he came here with his laptop and now using my working files, edited with his data files, etc. But no luck http://www.blenheimweather.ca/cu/betel_ ... maryCU.php

Any suggestion where I have misled?

Paul
do you know what version of php?
can you access any error log files from his server? that might give a clue
i had issues with php ver 7 and if you look back a few pages BCJKiwi did post a workaround that got mine to work.
User avatar
PaulMy
Posts: 3775
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 »

Thanks for your reply.
His php version is 5.6 and looking at his cPanel there were no errors shown. Could there be some php settings that needs to be done?

We think we have the dayfile.txt path correct as everything is in the same folder, and message indicating that day file not found when we had entered an incorrect path.

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
User avatar
jdc
Posts: 142
Joined: Tue 19 Jun 2012 8:51 pm
Weather Station: Davis VP2 : Instromet
Operating System: Win 10
Location: Portsoy,.
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by jdc »

Just a thought - are dayfile delimiters correctly set? As I see dates are 03-07-17

Code: Select all

$field_delimiter = ',';
$date_delimiter = '-';
User avatar
PaulMy
Posts: 3775
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 »

I don't have direct access at the moment but will check that out. Thanks,

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

Yes you are correct and it is now working by changing the date delimiter. Thank you very much :clap:

I will have him look at his setup and see why he has his date format different.

Paul

@John,
Looked at your website and it is very very nice.
We travel through Northumberland County and Tweed village to get to our cottage ;)
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
sperry russ
Posts: 89
Joined: Mon 30 Jan 2012 5:09 pm
Weather Station: Davis Vantage Pro 2 Cabled
Operating System: Windows 7
Location: Central Florida USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by sperry russ »

I have noticed that if rainfall is .004 or less that it does not show in the statistics of dayfile reader. If .005 or more it does. Is there any way for me to show the lesser amounts in my statistics with the dayfile reader?

Thanks
User avatar
mcrossley
Posts: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by mcrossley »

I added "Rain Days" to my version a little while back - maybe something someone wants to incorporate into the official release?
http://weather.wilmslowastro.com/datasummary.php
sperry russ
Posts: 89
Joined: Mon 30 Jan 2012 5:09 pm
Weather Station: Davis Vantage Pro 2 Cabled
Operating System: Windows 7
Location: Central Florida USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by sperry russ »

That shows any day that rain has fallen. But is there anyway to show the actual amount? Between .010-.050
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 »

sperry russ wrote:I have noticed that if rainfall is .004 or less that it does not show in the statistics of dayfile reader. If .005 or more it does. Is there any way for me to show the lesser amounts in my statistics with the dayfile reader?
Simple answer Sperry - remove the following single line from the PHP script.
Line 443 (in my copy) reads

Code: Select all

        if($value < 0.05) $value = 0; // 1 tip regarded as error
I can see your source using "http://sperry.us/stats/stats.php?view=getorfmiland", although that shows a messy output, it does confirm that your script does contain the above line within a function called "DoRain". So if your source is minimised and so you cannot identify line numbers, in your script editor use Find to locate the above code snippet up to and including the semicolon, so you can delete it. You probably also want to delete the equivalent nearby line for rainfall in mm.
sperry russ
Posts: 89
Joined: Mon 30 Jan 2012 5:09 pm
Weather Station: Davis Vantage Pro 2 Cabled
Operating System: Windows 7
Location: Central Florida USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by sperry russ »

Thanks for all the help. It is displaying the lower amounts now.
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 »

Distribution file and languages file updated.

Thank you sutne for the Norwegian translation :D
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply