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

Post Reply
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

Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

The beteljuice has been playing as usual.

Herewith an alternative Monthly Extremes page (Template) using <#webtag>s.

Requires Cumulus V1.9.3 or above OR Cumulus MX

This example won't update and is for illustrative purposes only:

Alternative Example

SEE LOWER DOWN FOR NEW Neil Thomas template version ;)

You can set the 'default' view.
You can give the visitor the option of views (or not).

Although it's full of JavaScript, it is JS 'safe'. If a visitor has JS disabled then they see the 'normal' (list) style for EVERY month (the nav buttons should then scroll up / down to the required month).

Edit: Zip files contain BOTH v1.9.4 AND MX versions - use the right one for you !

Template file only needs to be processed / uploaded once every 24hr. - rename to suit yourself.

Edit: Mar 2021 - MX versions ONLY, incorrect hours:mins format bug fix.
ALL versions - jQuery newer ver 'called', and future js bug fix.

betel_EN_monthlyrecord.zip
betel_FR_monthlyrecord.zip
betel_NL_monthlyrecord.zip


Editing / language changes:

There are a LOT of things that require a very good knowledge of find and replace techniques.

If you change ANYTHING with a time format in it I recommend changing one at a time and testing !!!

If anyone does a non-english version could they please post it for others ?


(My eternal thanks to Steve for helping me in some nasty debugging :? - and to paulmy with the MX version )


New mx 10.3 template version ONLY

The beteljuice is slowly trying out his playthings in the 'new' Neil Thomas templates ...

This one is a rewrite to use the weatherdata.json file instead of having to be processed / uploaded by Cumulus.

Part of the README.txt file ...

zip file contents:-
alt_monthlyrecord.htm
css/alt_mon.css
js/alt_monthlyrecdata.js
this README.txt

Upload the files to your website.

Menu:
There are two ways you can handle this:

1/ (NOT recommended) back-up your existing monthlyrecord.htm and rename alt_monthlyrecord.htm to monthlyrecord.htm.

2/ (Prefered) Copy and BACK_UP YOUR EXISTING js/ menu(type).js
Edit the filename in the (new) js/ menu file

That's it ...

Easter Egg ...

(You'll have to download the file to find out ;) )

betel_alt_mon.zip
You do not have the required permissions to view the files attached to this post.
Last edited by beteljuice on Thu 22 Apr 2021 4:05 pm, edited 25 times in total.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT »

Well done Beteljuice

for some reason Dreamweaver's error-checker protests there is a syntax error on line 185, but I can't find it...

The page works ok, though.

http://weather.gktnet.com/cumulus/betel ... record.htm

Cheers.
Last edited by GraemeT on Mon 07 May 2012 11:16 pm, edited 1 time in total.
Cheers,
Graeme.
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 »

Minor bug fix (already)

Wet / dry 'from' month was one out.

:oops:
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT »

It doesn't look as good in IE8, sorry.
Views ok in IE9 and Chrome, although sizing is slightly different.
Cheers,
Graeme.
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 »

for some reason Dreamweaver's error-checker protests there is a syntax error on line 185, but I can't find it...
If you are checking the Template - I'm surprised that's all it's screaming about !

That is first of many Cumulus processed time formats and contains lots of single / double quotes and < >.

Should test OK once processed by Cumulus ?

That's why I had so much trouble debugging it in the first place :bash:
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT »

beteljuice wrote: Wet / dry 'from' month was one out.
Yes, that's better...
Cheers,
Graeme.
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT »

beteljuice wrote:Should test OK once processed by Cumulus ?
Correct, no problems once all the quotes and tags converted.
If you are checking the Template - I'm surprised that's all it's screaming about !
Firefox validation plug-in picks up 789 warnings!
Cheers,
Graeme.
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 »

Firebug 1.9.1 plug-in is all clear.

Are you talking about the html validator which seems to have been a bit sick for nearly a year ?
Anyways - It works - until someone find out differently that is ...
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT »

I'm using HTML Validator 0.9.5.1 and Web Developer 1.1.9
They're ok for most pages, but some with lots of javascript seem to get too complex for the validator, so I generally just leave alone.

Edit: ...after making a mental note (which I usually forget in 5 minutes)... :lol:
Cheers,
Graeme.
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 »

Sign of the times ...

You build a better mousetrap ...... and everyones too busy playing with their mobile 'phones :lol:
Image
......................Imagine, what you will KNOW tomorrow !
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 »

Love this!

Just worries me about the upload every 15 minutes, as it's quite a large file.

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

Valid comment ....

It only really needs to be processed / uploaded once every 24hrs sometime after your station 'roll-over' time.

I will let someone else describe the technique of removing it from 'standard' upload and using 'toolbox' or whatever to do the business.

Any volunteers .....
Image
......................Imagine, what you will KNOW tomorrow !
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 »

beteljuice wrote:Valid comment ....

It only really needs to be processed / uploaded once every 24hrs sometime after your station 'roll-over' time.
That's a good shout, i use toolbox already. So i guess save the monthlyrecordT.htm somewhere else? Then open the monthlyrecordT.htm up in the default upload folder and delete the contents?

Regards.
Image
bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by bnwrx »

List style displays "F" but table style displays "C". Can I edit this somewhere?

link:http://woodlandweather.org/45betel.htm

I think I found it, I edited lines 632-636 and 648-352.....
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 »

Update V1.2 - https://cumulus.hosiene.co.uk/viewtopic.p ... 563#p63563

Thought I'd changed that :oops:

distribution file updated.
Last edited by beteljuice on Sat 12 May 2012 2:26 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply