Page 1 of 1

Dayfile Ephemera

Posted: Sat 09 Nov 2019 3:33 pm
by beteljuice
beteljuice dayfile ephemera

Or to put another way ....
Something from the beteljuice playground for all the people with years of data and are anally retentive :lol:

Still Work In Progess ...
It may never see the light of day !

It provides "On this day (any year)" data, and "On this day last year" data.
Edit: and now ... "On tomorrow (any year)"
Lots of meaningless things to play with.

Preview of all output and var names

Edit: This is simply a php include script - It doesn't produce a table or a 'page' !
The demonstration is only showing all the data available and its variable name.

So lets say you want to show 'thisday' (station) alltime high and low temperatures together with the year(s):

Code: Select all

<?php
include('nametobedecided.php');
?>

lots of html stuff
On this day all time Tmax <?php echo $maxtemp_hi. "&deg;C " .$maxtemp_hi_year; ?> <br />
On this day all time Tmin <?php echo $mintemp_lo. "&deg;C " .$mintemp_lo_year; ?> <br />

more html stuff
If you know what you are doing you could always change this day to eg. 10th Nov ;) by php / JS / ajax vars ? etc. etc.


If anyone is interested and I'm still around - I might let it escape into the wild :o

Re: Dayfile Ephemera

Posted: Sat 09 Nov 2019 3:39 pm
by HansR
Stupid and useless maybe, but where would we be without play :?

Re: Dayfile Ephemera

Posted: Sat 09 Nov 2019 5:54 pm
by PaulMy
So should I try that and replace http://www.komokaweather.com/komokaweat ... isdate.php :?:

Enjoy,
Paul

Re: Dayfile Ephemera

Posted: Sat 09 Nov 2019 11:42 pm
by beteljuice
I didn't know that existed !
... seems I'm late to the party :(

Is that a 'stand-alone' or Saratoga only ?

.. and is it mysql or dayfile.txt ?

Edit: Ah .. It's MySQL dayfile ...

Re: Dayfile Ephemera

Posted: Sun 10 Nov 2019 2:10 am
by beteljuice
Now added 'Tomorrow" data.

The idea is not to produce a meaningless table, but rather to 'pepper' reasonably interesting data amongst your existing content.

eg. You may like to put some 'this day last year' info in brackets by current data.

... but each to their own I suppose :roll:

Re: Dayfile Ephemera

Posted: Sun 10 Nov 2019 4:38 am
by PaulMy
Is that a 'stand-alone' or Saratoga only ?
.. and is it mysql or dayfile.txt ?
Edit: Ah .. It's MySQL dayfile ...
It is one of a few scripts that I put together by myself a few years ago, and yes it is from my MySQL dayfile db.
eg. You may like to put some 'this day last year' info in brackets by current data.
Now that would be a challenge :oops:
The idea is not to produce a meaningless table, but rather to 'pepper' reasonably interesting data amongst your existing content.
Like this? http://www.komokaweather.com/komokaweat ... maxmin.php

Enjoy,
Paul

Re: Dayfile Ephemera

Posted: Sun 10 Nov 2019 11:55 am
by beteljuice
That's one way of doing things ...
BTW - all the dates are ?? Nov 2019 is that right, or just the 'sample' you're checking ?

BTW #2 - I'm adding you to my new 'Hateful People" list ;)

Re: Dayfile Ephemera

Posted: Sun 10 Nov 2019 3:19 pm
by PaulMy
all the dates are ?? Nov 2019 is that right, or just the 'sample' you're checking ?
Now looking at it the title is misleading... the scripts is to show the last time that the data was higher or lower than the current, so for example today being a typical November day shows most recent higher and lower were this month, but it could be any time over the period of the data such as when a new record is set. Yesterday it showed the lower minimum temperature as April so yesterday was the coldest for us since April. It can also change during the day as the comparison is to the current (realtime) data. Actually it is quite interesting to see and say "today is the coldest since last winter" or the wettest, or the hottest, etc. Yes some reasonably interesting data amongst our existing content. I never added colour for say when the previous higher/lower was more than a year ago (wouldn't know how to ) like some of your great/unique/fun scripts.

BTW #2a - Glad though I am not on your 'xxtchy list' :shock:

Enjoy,
Paul