Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3050 - 1 May 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

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: 466
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Final post in top ten topic
Operating System: Tempermental Win. 10 PC
Location: Moving

Re: Alternative Monthly Extremes using <#webtag>s

Post by sfws » Sun 29 Jul 2012 12:36 pm

Deleted as obsolete
Last edited by sfws on Mon 03 Aug 2015 3:16 pm, edited 2 times in total.

sfws
Posts: 466
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Final post in top ten topic
Operating System: Tempermental Win. 10 PC
Location: Moving

Re: Alternative Monthly Extremes using <#webtag>s

Post by sfws » Wed 24 Oct 2012 7:36 am

Deleted as obsolete
Last edited by sfws on Mon 03 Aug 2015 3:16 pm, edited 2 times in total.

User avatar
JennyLeez
Posts: 266
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 » Sat 07 Feb 2015 3:38 am

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: 582
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64
Location: null

Re: Alternative Monthly Extremes using <#webtag>s

Post by Mapantz » Tue 14 Jun 2016 9:47 pm

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

Post by beteljuice » Wed 15 Jun 2016 12:29 am

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

trial - CMx version ...

Post by beteljuice » Fri 04 Jan 2019 1:09 am

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

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

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

Post by beteljuice » Fri 04 Jan 2019 4:19 am

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

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

Post by beteljuice » Fri 04 Jan 2019 1:05 pm

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

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

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

I can copy in previous monthly log files MmmYYlog.txt from Cumulus 1 into my MX if that is helpful for testing.

Enjoy,
Paul

BCJKiwi
Posts: 881
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 » Fri 04 Jan 2019 8:36 pm

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

Post by beteljuice » Sat 05 Jan 2019 1:11 am

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