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

sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Alternative Monthly Extremes using <#webtag>s

Post by sfws »

Deleted as obsolete
Last edited by sfws on Mon 03 Aug 2015 3:16 pm, edited 2 times in total.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Alternative Monthly Extremes using <#webtag>s

Post by sfws »

Deleted as obsolete
Last edited by sfws on Mon 03 Aug 2015 3:16 pm, edited 2 times in total.
User avatar
JennyLeez
Posts: 314
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by JennyLeez »

I have installed the table script of this 'Alternative Monthly Extremes' Script and just want to say thanks.
As opposed to the list page the table page displays the month extremes at a glance. I like that.

I found this while reading through older posts, so thought I would bump it up plus thank beteljuice for yet another neat script.
Here is my page:

http://wairoa.net/weather/extremes_table.htm

Cheers
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
Mapantz
Posts: 1777
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by Mapantz »

I've only just spotted this, and fancied giving it a try (was expecting a few small bugs as i'm using CMX) But it isn't looking anything like anyone elses that have been posted..

http://www.warehamwx.co.uk/cumulus/mont ... d_test.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 »

Ah .... anything using <#webtags> involving month / date formating needs rewriting for CMx - I don't know if anyone has done this particular script ? .....
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

trial - CMx version ...

Post by beteljuice »

Could someone running MX please see if this parses / checks out alright ...
betel_monthlyrecord_mxT.zip
You do not have the required permissions to view the files attached to this 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 »

Hi,
Have a look here http://www.komokaweather.com/cumulusmx/ ... rd_mx.html
Some issues ;)

Have been using this version of CMX since December.

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 »

Thanks Paul .... everythings broke, I forgot how unforgiving all this formatting was the first time around !

Edit:
Have been using this version of CMX since December.
I think that's one of the problems - re. Month naming. It correctly picks up data in 'list' style for those two months, but doesn't know the names of the months you haven't recorded for yet - seems odd.

Perhaps Mark knows something ? - the unknown months seem to have default data values at least.

... there is also a syntax problem which stops 'table' style js arrays being correctly populated so breaks nearly everything else :groan:
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 »

Hi beteljuice, I haven't had a chance to look it it, but perhaps a hint... The date format codes for web tags are different in MX and C1, in particular the old C1 month code equates to minutes in CMX.
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 »

Hi Mark;

Should be correct - syntax problem works in one place but not another. Continuing to investigate ...

Code: Select all

example 1; Does work - <#ByMonthTempHT mon=1 format="'day' dd, yyyy 'at' HH:MM">
example 2; should work but fails - <#ByMonthTempHT mon=1 format="'Day <b>'dd'</b>, Year <b>'yyyy'</b> @ <b>'HH:MM'</b>'">
The 'interesting' one is:

Code: Select all

<#ByMonthTempHT mon=2 format=MMM> (or MMMM)
For a month with data returns month name correctly.
In Pauls case (Only has last Dec and this Jan) mon = 2 > mon = 11 returns "Dec" / "December" - the actual data values appear to be 'out-of-range' defaults.
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 »

Cumulus cannot cope with the "<>" characters within the format string.

As a workaround I use constructs like this...

Code: Select all

Day <b><#ByMonthTempHT mon=1 format="dd"></b>, Year <b><#ByMonthTempHT mon=1 format="yyyy"></b> @ <b><#ByMonthTempHT mon=1 format="HH:MM"></b>
Last edited by mcrossley on Fri 04 Jan 2019 4:26 pm, edited 1 time in total.
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 »

And the tag returning November for Paul...

Code: Select all

<#ByMonthTempHT mon=2 format=MMM> 
is a bug, MX initialises all the monthly records to the date it was first launched.
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 can copy in previous monthly log files MmmYYlog.txt from Cumulus 1 into my MX if that is helpful for testing.

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
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 »

Is there a particular reason for not using the records.js file that CumulusMX uploads as part of the default uploads it makes?

I have a php script producing the output which uses the records.js file. I am not sure of the original source of the file but it appears to be the CumulusMX interface with a different .css to suit each template.
The Cumulus website php file is 11kb in size and the records.js file is 18kb in size.
Our
https://silveracorn.nz/weather/wxrecords.php
https://silveracorn.nz/cumulus/records.php
https://silveracorn.nz/cumulusmx/records.php
sites all use the same records.js data file and the php files are very similar just being tweaked to suit the different templates.

The php files are only copied to the webserver once and the records.js file is automatically being uploaded by MX (even if you don't use it.)
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 »

PaulMy wrote:Fri 04 Jan 2019 2:35 pm ....
If it is beneficial I can add in CumulusMX data folder some previous monthly data files from CU1 such as xx18log.txt
I have no idea what that would do or if they are compatible, with the cmx 'bug' you would need at least one data entry in all months (year doesn't matter) - better check with Mark.

Marks post proves I was looking at the right thing, one more attempt at an easy work-around, else one other possibility or thousands of extra characters in the coding :shock:

@Mark - So CMX <#ByMonth.... is problematic if the user hasn't been running for a year ?
Thw work-around rather defeats 'format' and as stated above would add thousands of extra characters in the coding, may be easier to forget 'bold'.

records.js data ....
The beteljuice has no knowledge of what comes out-of-the-box with CMX, why haven't I heard of this, or someone utilising it before ????

Edit:
Does records.js share the same problems as cmx <#webtags> ? ie. what values are given for months that don't have data yet ?
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply