Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.11.4 (build 3133) - 25 May 2021 (please see announcement regarding releases since 3.5.0)
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

flort
Posts: 25
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Aercus WS3085
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by flort »

What do you mean by C1 page variant. My site is based on the old style web page and I'm using CumulusMX.

http://flor.byethost24.com/weather/index.htm

User avatar
beteljuice
Posts: 3212
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 »

flort wrote:
Thu 25 Mar 2021 10:49 am
What do you mean by C1 page variant. My site is based on the old style web page and I'm using CumulusMX.
It maybe the old 'style' webpage but you need to use the mx variant of the page script ;)
Image
......................Imagine, what you will KNOW tomorrow !

flort
Posts: 25
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Aercus WS3085
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by flort »

What is the MX variant of the page script? When I created it I just downloaded your file at the start of this post and modified it to suit my requirements. Everything worked fine except for the time and I fixed that by changing HH:MM to HH:mm.

flort
Posts: 25
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Aercus WS3085
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by flort »

This is the start of the page I am using:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
<meta name="description" content="<#location> weather data" />
<meta name="keywords" content="Cumulus, <#location> weather data, weather, data, weather station" />
<title><span data-cmxdata="location"></span> weather</title>
<!-- betejuice variant Cumulux MX ONLY - Oct 2019 (wet / dry fix) -->

<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="lib/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" />
<link href="weatherstyle.css" rel="stylesheet" type="text/css" />

<script src="lib/jquery/jquery-latest.min.js"></script>
<script src="lib/jquery/jquery.tmpl.js"></script>

<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/setpagedata.js"></script>

User avatar
beteljuice
Posts: 3212
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 »

The zip contains TWO files.

One for use with 'old' C1 Cumulus, the other for CuMX ...

hold on for a moment ....

You're right :o

How did that slip through and not be picked up :oops:

I'll fix it ....
Image
......................Imagine, what you will KNOW tomorrow !

flort
Posts: 25
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Aercus WS3085
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by flort »

Thanks.

User avatar
beteljuice
Posts: 3212
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

UPDATE - Alternative Monthly Extremes using <#webtag>s

Post by beteljuice »

UPDATE 25 Mar 2021

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


Downloads on first post ...

Thanks to flort for reporting the MX bug ...
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
beteljuice
Posts: 3212
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 - 'new' mx 10.3

Post by beteljuice »

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 websitedata.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 ;) )

Edit: Some changes coming, see next but one post ... (but play by all means) fixed

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:04 pm, edited 5 times in total.
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
mcrossley
Posts: 8478
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Alternative Monthly Extremes using <#webtag>s

Post by mcrossley »

Clever - one addition you may want to look at in a spare hour is the use of Apparent vs. Feels Like preference :twisted:

User avatar
beteljuice
Posts: 3212
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 »

Ahhh .........

Just realised I need to edit all the header info mouse-overs in the htm file for user UOM via data-cmxdata :groan:

I feel a headache coming on :bash:

Edit: All done ...
Image
......................Imagine, what you will KNOW tomorrow !

Post Reply