Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.4.6 (build 3070) - 23 March 2020
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

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: 2873
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

Dayfile Ephemera

Post by beteljuice » Sat 09 Nov 2019 3:33 pm

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: 632
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Dayfile Ephemera

Post by HansR » Sat 09 Nov 2019 3:39 pm

Stupid and useless maybe, but where would we be without play :?
https://meteo-wagenborgen.nl / Cumulus (3.4.3 b3067)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

User avatar
PaulMy
Posts: 2067
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: Dayfile Ephemera

Post by PaulMy » Sat 09 Nov 2019 5:54 pm

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

Enjoy,
Paul
Davis Vantage Pro 2 - Windows 8 - Cumulus v1.9.4 b.1099 - CumulusMX/WiFiLogger
www.komokaweather.com
www.komokaweather.com/cumulusmx
www.komokaweather.ca
www.komokaweather.com/pws
Image

User avatar
beteljuice
Posts: 2873
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: Dayfile Ephemera

Post by beteljuice » Sat 09 Nov 2019 11:42 pm

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

Post by beteljuice » Sun 10 Nov 2019 2:10 am

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

Post by PaulMy » Sun 10 Nov 2019 4:38 am

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 Pro 2 - Windows 8 - Cumulus v1.9.4 b.1099 - CumulusMX/WiFiLogger
www.komokaweather.com
www.komokaweather.com/cumulusmx
www.komokaweather.ca
www.komokaweather.com/pws
Image

User avatar
beteljuice
Posts: 2873
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: Dayfile Ephemera

Post by beteljuice » Sun 10 Nov 2019 11:55 am

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

Post by PaulMy » Sun 10 Nov 2019 3:19 pm

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 Pro 2 - Windows 8 - Cumulus v1.9.4 b.1099 - CumulusMX/WiFiLogger
www.komokaweather.com
www.komokaweather.com/cumulusmx
www.komokaweather.ca
www.komokaweather.com/pws
Image

Post Reply