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 4019) - 03 April 2024

Legacy Cumulus 1 release 1.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

Dayfile Ephemera

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
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

Dayfile Ephemera

Post 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
Last edited by beteljuice on Sun 10 Nov 2019 6:31 pm, edited 2 times in total.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
HansR
Posts: 5957
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Dayfile Ephemera

Post by HansR »

Stupid and useless maybe, but where would we be without play :?
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
PaulMy
Posts: 3830
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: Dayfile Ephemera

Post by PaulMy »

So should I try that and replace http://www.komokaweather.com/komokaweat ... isdate.php :?:

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
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: Dayfile Ephemera

Post 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 ...
Last edited by beteljuice on Sun 10 Nov 2019 3:57 am, edited 1 time in total.
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: Dayfile Ephemera

Post 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:
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 3830
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: Dayfile Ephemera

Post 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
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
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: Dayfile Ephemera

Post 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 ;)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 3830
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: Dayfile Ephemera

Post 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
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
Post Reply