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 4018) - 28 March 2024

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

Alternative Monthly Extremes using <#webtag>s

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

Moderator: daj

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

Re: Alternative Monthly Extremes using <#webtag>s

Post by BCJKiwi »

records.js

I have made many changes/updates to cumulus1 and cumulusMX standard website template files I am not 100% sure which are original anymore. However I think the following describes the original setup.

In C:\cumulusMX\web folder there is a recordsT.dat file. This same file also exists in cumulus1.
This contains arrays of standard looking tags.
This gets processed and delivered to the website as records.js

In cumulusMX and cumulus1 web folders there is also a recordT.htm file which also gets processed and delivered to the website as record.htm
However I don't see where records.js is referenced in these files.

I don't use the .htm files but instead use a static php file on the webserver which is basically the same as the .htm file but references uploaded tag files for the the same data that the uploaded .htm files contain, and uses a php include() to load the .js file.

On further checking it seems the recordsT.dat file is not part of the original builds and am unable to find the original source (apologies to the originator of either of these files).

So.. have attached the recordsT.dat file and the simplest (cumulus1) version of the php file. The php file will require modification to suit the webpage and of course will require a tag file that includes the variables used in the php file.
Included in the .zip is the CUtagsMXT.txt file which is uploaded to the website including a large range of tags.
Trust these files will be of use.
records.zip
You do not have the required permissions to view the files attached to this post.
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: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

Cumulus MX version now available

See first post ...
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by mcrossley »

Well done, one tiny problem with the MX version. Line 182 has a spurious ">"

Code: Select all

 var monthnames = new Array("January>",
Its a good test for an MX update I have that now allows HTML tags in the format string - global replace of xb/zb ;)
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: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

mcrossley wrote: Mon 07 Jan 2019 5:13 pmWell done, one tiny problem with the MX version. Line 182 has a spurious ">"
Sometimes I just hate you !!!
Its a good test for an MX update I have that now allows HTML tags in the format string - global replace of xb/zb ;)
Of course mine is 'fixed' for bold, the technique holds true ;) - should really have created an AKA for < and >
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 3777
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: Alternative Monthly Extremes using <#webtag>s

Post by PaulMy »

I think I have it now including all my collected data since January 1, 2009

http://www.komokaweather.com/cumulusmx/ ... rd_mx.html

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: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

B*gg*r ....

Found one more orphan ">" in the English MX file.

Download again please - sorry .. :oops:
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 3777
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: Alternative Monthly Extremes using <#webtag>s

Post by PaulMy »

Download again please - sorry
Which link would be the most recent?

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: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

There is only one link per language .... all in the first post.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 3777
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: Alternative Monthly Extremes using <#webtag>s

Post by PaulMy »

But, but, I don't speak FR so have used the only other http://www.komokaweather.com/cumulusmx/ ... rd_mx.html that my poor eyes can find

Paul
flag.jpg
You do not have the required permissions to view the files attached to this post.
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: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

How odd .....

The file shows in 'edit' view but does not appear in published page ? :o

.. also the two that showed both had the same attachment number ! :shock:

All redone. :?
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 3777
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: Alternative Monthly Extremes using <#webtag>s

Post by PaulMy »

Now showing 3 zips and seems fine http://www.komokaweather.com/cumulusmx/ ... rd_mx.html

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

mx Bug fix - Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

mx versions only - bug fix ...

Whilst channel hopping on what working links are left, I discovered that in the Cu mx version the dates in the far right wet / dry <mouseover> were NOT being parsed.

All good now - download in first post ...
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: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

Updates coming soon ....

Just discovered JQuery 3.1 (which of course is the lowest version you are all loading into your page aren't you ? ) has 'depreciated' one of the functions used in the tooltip mouse-overs.

I can't see any obvious harm, but just in case ....

If you want to Do It Yourself, there is only one instance to change.

Using Notepad++ or similar, in your ????T.html file

Search for .andSelf() and replace with .addBack()
Image
......................Imagine, what you will KNOW tomorrow !
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by flort »

@beteljuice:
I just noticed on my site that the time of extremes is coded as HH:MM which results in hours:month. If I change it to HH:mm then it displays hours:minutes as it should.
I looked at some of the other websites using this page and some show correctly but others are the same as mine.
Might be worth looking at.

Regards,
Trevor
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: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

Are you using C1 page variant with CuMX ?
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply