Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3050 - 1 May 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

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: 2710
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice » Mon 05 Aug 2019 2:37 pm

@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: 1922
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by PaulMy » Mon 05 Aug 2019 4:50 pm

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

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

Re: Yet Another Dayfile Reader (PHP)

Post by BCJKiwi » Mon 05 Aug 2019 9:55 pm

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: 2710
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice » Mon 05 Aug 2019 10:42 pm

@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: 2710
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice » Tue 06 Aug 2019 12:49 am

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: 91
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 » Tue 06 Aug 2019 1:25 am

Thats the issue.
Used:

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

Guy

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

Re: Yet Another Dayfile Reader (PHP)

Post by BCJKiwi » Tue 06 Aug 2019 2:17 am

@ 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: 2710
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice » Tue 06 Aug 2019 2:40 am

@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: 816
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 » Tue 06 Aug 2019 5:33 am

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: 2710
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice » Tue 06 Aug 2019 7:17 am

@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: 816
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 » Tue 06 Aug 2019 10:35 pm

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

Probably changed a lot.

T

User avatar
grwkak
Posts: 91
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 » Tue 06 Aug 2019 11:05 pm

@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: 2710
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

... minor update ######

Post by beteljuice » Tue 06 Aug 2019 11:29 pm

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: 1922
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by PaulMy » Wed 07 Aug 2019 1:46 am

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

Phil23
Posts: 192
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Re: php 7 test pilots please.

Post by Phil23 » Thu 08 Aug 2019 10:19 pm

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.
Image

Post Reply