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 4017) - 17 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

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 »

@Paul ..

You and your bl**dy framed pages .... 8-)

... and I still hate your auto refresh - 'resets' everything when I've picked something or 'messing around' investigating 8-)

Looks alright, but I have a feeling that somewhere there's a note or advisory that is inbetween tables which is fixed to black, so you wouldn't be able to see it.

.. must rush, got to see nurse ..
Image
......................Imagine, what you will KNOW tomorrow !
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 »

... and I still hate your auto refresh
:o :?: :?
Something I've done and shouldn't have?

but I have a feeling that somewhere there's a note or advisory that is in between tables which is fixed to black
No error being logged on my site, other than an ajax-dashboard undefined error which I have posted elsewhere viewtopic.php?f=25&t=17521

What could I be looking for?

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
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by BCJKiwi »

Good work Beteljuice!!

Have a couple of queries.

1. Daily and Seasonal Rainfall:
raindrop.png not showing just a dot. On expanding the font size I see a box with a cross in it indicating the image is not available. It has been copied to the same location as the summer winter etc images.

2. Seasonal Rainfall:
In seasons that don't have any data, (Autumn 2012 and spring/summer 2019) monthly and season results are showing when averages do not.
Have not looked into how the rain days calcs are done but suggest it may look better if they did not show 0d in seasons without data.
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 »

@BCJK

1/ You have your images in a different (customised) location, so the link(s) for raindrop.png need to be similarly customised (or put in the /weather directory)

2/
Have not looked into how the rain days calcs are done but suggest it may look better if they did not show 0d in seasons without data.
Very simple - if rain > 0 count ++

... but, logic / philosophical argument.
As we only inspect one dataset at a time - how do we know if a result of 0 is a valid value or 'not recorded' ?

@Paul
No error being logged on my site,
It's not present normally Paul, only under certain circumstances which at the moment I can't remember :lol:
Image
......................Imagine, what you will KNOW tomorrow !
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 »

grwkak wrote: Sun 04 Aug 2019 11:55 pm Seem to have this partially working:

http://wilsonsweather.host-ed.me/dayfilebetel/test.php

...... the page never changes.
Any suggestions?

Guy
Ahh ... I see the data is being downloaded (hence you you don't get "DATA FAIL" message), but for some reason the page content isn't being replaced.

Edit: Rubbish content removed !!!!
Last edited by beteljuice on Tue 06 Aug 2019 2:41 am, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
grwkak
Posts: 169
Joined: Fri 28 Jun 2013 12:32 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Hambden, Ohio US
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by grwkak »

Thats the issue.
Used:

<div id="tableData">
<?php include('betel_readDayfile.php');?>
</div>

Guy
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by BCJKiwi »

@ Beteljuice,

Thanks, have the raindrop showing now.

If the 0d for Year/Month in the future can't be worked out on the fly then I suppose the only other option would be check if the month is in the future by either using the date, or by checking if there is no data for say temp.
But - this all seems a bit complicated.

There is probably a better way??

Thanks
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 »

@guy ...

Wait a minute ... somethings very wrong, that's the old version.

Let me backtrack a bit

Hmm ... somewhere down the line I've changed the name of the file :?

The correct code IS:

Code: Select all

<div id="tableData">
<?php include('betel_readDayfile.php');?>
</div>
So it looks like a wrong path at about line 45 (this file name), see what you have in the 'old' version ...

Edit: Now you are confusing me ... both files inc. betel_readDayfile.php say they are ver 7.1, not 7.1.1

@BCJK
... by checking if there is no data for say temp.
If I had gone "the easy route" of a separate table for raindays and made it a 'calculated' one, then I could have looked for eg. temp val for a date entry, but of course the beteljuice decided to go sideways and create a lot of grief for himself ....
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Super-T
Posts: 890
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Super-T »

I downloaded "betel_readDayfile_7_1_1.zip" to get the error "FATAL ERROR - Language File FAIL !!"

Whta I did was to rename the betel_readDayfile.php to remove the betel_ Perhaps That is the problem?
2019-08-06_174333.jpg
T
You do not have the required permissions to view the files attached to this post.
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 »

@Terry

NOoooooooooooooooo .....

Things will get confused with your old one.

In your screen shot there is no languages file !

Did you download the 'distribution' zip ???

The apparently missing file is betel_dayfile_languages.php (which can be downloaded separately.)

I intend to PM you at some point with suggestions for your pages :o
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Super-T
Posts: 890
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Super-T »

I'd better read the "HowTo" file then :-)

Probably changed a lot.

T
User avatar
grwkak
Posts: 169
Joined: Fri 28 Jun 2013 12:32 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Hambden, Ohio US
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by grwkak »

@beteljuice

May be a version downloaded prior to the latest. I started setting it up then stopped for a week or so.

Guy
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

... minor update ######

Post by beteljuice »

Dear ALL

Minor Update .....


Sorry :? - Seasonal Raindays presentation and maths 'tweaked'
Main file only ..

Existing Users .....
If your existing stuff is pre ver 7.1, it is recommended to move your existing files to a back-up folder, and start over with the full distribution zip, using your settings in your existing file as an incomplete guidance ONLY


Download from the usual place viewtopic.php?f=14&t=11397#p91488

PS. demo pages not done yet, but see test here: http://beteljuice.co.uk/daytest/test_da ... all&pane=1
Last edited by beteljuice on Wed 07 Aug 2019 3:48 am, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
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 »

Updated and all looks fine.

@betel
I think a typo on the new download zip that you may want to correct to avoid version confusion.

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
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: php 7 test pilots please.

Post by Phil23 »

beteljuice wrote: Sat 03 Aug 2019 10:11 pm @phil23 .. the prog is designed for you to be creative, not me ....
Looking at what I'm trying to understand, I'd presume I'd need an entire new block of code a bit like what starts around line 914 & goes to about 1128,
but modified to created a table of either high or low extremes depending on which is most relevant.
Max for Max's, Wind, Daily rain, EVT etc & Min Minimums.

Probably another control variable similar to
$show_year_averages = true; // show year(s) averages (totals) below daily summary, true / false
$show_year_extremes = true; // show year(s) Max (Mins) below daily summary, true / false

Sounds like something WAYYYYY beyond my capabilities, but is the above the basic concept?

Or is it something the code already accommodates, but I just don't understand?

Maybe I need to just view the Seasonal page & observe those figures there where they already exist.

Cheers.

PS latest Looks great on my data.
: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