Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3048 - 02 March 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

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

Alternative Monthly Extremes using <#webtag>s

Post by beteljuice » Mon 07 May 2012 10:14 pm

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

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.

betel_EN_monthlyrecord.zip
betel_NL_monthlyrecord.zip
betel_FR_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 )
You do not have the required permissions to view the files attached to this post.
Last edited by beteljuice on Fri 08 Feb 2019 1:56 am, edited 17 times in total.
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
GraemeT
Posts: 308
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT » Mon 07 May 2012 11:14 pm

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.

Image

User avatar
beteljuice
Posts: 2591
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 May 2012 11:16 pm

Minor bug fix (already)

Wet / dry 'from' month was one out.

:oops:
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
GraemeT
Posts: 308
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT » Mon 07 May 2012 11:34 pm

It doesn't look as good in IE8, sorry.
Views ok in IE9 and Chrome, although sizing is slightly different.
Cheers,
Graeme.

Image

User avatar
beteljuice
Posts: 2591
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 May 2012 11:43 pm

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: 308
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT » Mon 07 May 2012 11:44 pm

beteljuice wrote: Wet / dry 'from' month was one out.
Yes, that's better...
Cheers,
Graeme.

Image

User avatar
GraemeT
Posts: 308
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT » Mon 07 May 2012 11:49 pm

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.

Image

User avatar
beteljuice
Posts: 2591
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 May 2012 12:02 am

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: 308
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7
Location: Bayswater, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by GraemeT » Tue 08 May 2012 12:06 am

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.

Image

User avatar
beteljuice
Posts: 2591
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 » Wed 09 May 2012 6:07 pm

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: 565
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 » Thu 10 May 2012 4:10 pm

Love this!

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

Regards.
Image

User avatar
beteljuice
Posts: 2591
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 » Thu 10 May 2012 6:34 pm

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: 565
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 » Fri 11 May 2012 10:48 am

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: 459
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 » Fri 11 May 2012 5:10 pm

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: 2591
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 » Fri 11 May 2012 11:31 pm

Update V1.2 - http://sandaysoft.com/forum/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