Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - 28 November 2014
Latest Cumulus MX release v3.0.0 build 3046 - 02 January 2019. See the Wiki for download

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: 878
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by BCJKiwi » Sat 05 Jan 2019 4:47 am

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: 2537
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice » Mon 07 Jan 2019 4:43 pm

Cumulus MX version now available

See first post ...
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
mcrossley
Posts: 5314
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by mcrossley » Mon 07 Jan 2019 5:13 pm

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: 2537
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice » Mon 07 Jan 2019 5:28 pm

mcrossley wrote:
Mon 07 Jan 2019 5:13 pm
Well 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: 1749
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: Alternative Monthly Extremes using <#webtag>s

Post by PaulMy » Mon 07 Jan 2019 6:24 pm

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

User avatar
beteljuice
Posts: 2537
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice » Mon 07 Jan 2019 9:41 pm

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

Post by PaulMy » Mon 07 Jan 2019 11:10 pm

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

Paul

User avatar
beteljuice
Posts: 2537
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice » Tue 08 Jan 2019 12:44 am

There is only one link per language .... all in the first post.
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
PaulMy
Posts: 1749
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: Alternative Monthly Extremes using <#webtag>s

Post by PaulMy » Tue 08 Jan 2019 2:56 am

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.

User avatar
beteljuice
Posts: 2537
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Alternative Monthly Extremes using <#webtag>s

Post by beteljuice » Tue 08 Jan 2019 3:14 am

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

Post by PaulMy » Tue 08 Jan 2019 3:41 am

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

Enjoy,
Paul

Post Reply