Page 5 of 7

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Sun 29 Jul 2012 12:36 pm
by sfws
Deleted as obsolete

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Wed 24 Oct 2012 7:36 am
by sfws
Deleted as obsolete

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Sat 07 Feb 2015 3:38 am
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

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Tue 14 Jun 2016 9:47 pm
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

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Wed 15 Jun 2016 12:29 am
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 ? .....

trial - CMx version ...

Posted: Fri 04 Jan 2019 1:09 am
by beteljuice
Could someone running MX please see if this parses / checks out alright ...
betel_monthlyrecord_mxT.zip

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 04 Jan 2019 4:02 am
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

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 04 Jan 2019 4:19 am
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:

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 04 Jan 2019 12:06 pm
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.

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 04 Jan 2019 1:05 pm
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.

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 04 Jan 2019 1:49 pm
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>

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 04 Jan 2019 2:45 pm
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.

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 04 Jan 2019 3:30 pm
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

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 04 Jan 2019 8:36 pm
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.)

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Sat 05 Jan 2019 1:11 am
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 ?