Page 41 of 55

Re: Yet Another Dayfile Reader (PHP)

Posted: Mon 05 Aug 2019 2:37 pm
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 ..

Re: Yet Another Dayfile Reader (PHP)

Posted: Mon 05 Aug 2019 4:50 pm
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

Re: Yet Another Dayfile Reader (PHP)

Posted: Mon 05 Aug 2019 9:55 pm
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.

Re: Yet Another Dayfile Reader (PHP)

Posted: Mon 05 Aug 2019 10:42 pm
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:

Re: Yet Another Dayfile Reader (PHP)

Posted: Tue 06 Aug 2019 12:49 am
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 !!!!

Re: Yet Another Dayfile Reader (PHP)

Posted: Tue 06 Aug 2019 1:25 am
by grwkak
Thats the issue.
Used:

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

Guy

Re: Yet Another Dayfile Reader (PHP)

Posted: Tue 06 Aug 2019 2:17 am
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

Re: Yet Another Dayfile Reader (PHP)

Posted: Tue 06 Aug 2019 2:40 am
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 ....

Re: Yet Another Dayfile Reader (PHP)

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

Re: Yet Another Dayfile Reader (PHP)

Posted: Tue 06 Aug 2019 7:17 am
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

Re: Yet Another Dayfile Reader (PHP)

Posted: Tue 06 Aug 2019 10:35 pm
by Super-T
I'd better read the "HowTo" file then :-)

Probably changed a lot.

T

Re: Yet Another Dayfile Reader (PHP)

Posted: Tue 06 Aug 2019 11:05 pm
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

... minor update ######

Posted: Tue 06 Aug 2019 11:29 pm
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

Re: Yet Another Dayfile Reader (PHP)

Posted: Wed 07 Aug 2019 1:46 am
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

Re: php 7 test pilots please.

Posted: Thu 08 Aug 2019 10:19 pm
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.