Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
converting custom templates to html5
Moderator: daj
- ace2
- Posts: 679
- Joined: Tue 14 Jan 2014 12:38 pm
- Weather Station: maxkon ws-1081pc
- Operating System: windows 7 & 8
- Location: Adelaide, south Australia, Australia
- Contact:
converting custom templates to html5
Is it worth converting custom templates to be compatible with html5?
What is required to be changed or is it too hard??
What is required to be changed or is it too hard??
CHRIS

web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
-
sfws
- Posts: 1183
- Joined: Fri 27 Jul 2012 11:29 am
- Weather Station: Chas O, Maplin N96FY, N25FR
- Operating System: rPi 3B+ with Buster (full)
Re: converting custom templates to html5
HTML5 adds some extras that can be useful for more specialist web pages.ace2 wrote:Is it worth converting custom templates to be compatible with html5?
e.g. '<video> ... </video>', '<audio> ... </audio>' and various alternatives to '<div> .... </div>' like '<article> ... </article>'
But if you do not need to use those, then the only reason to convert is to use the modern syntax just because it is the modern 'standard'.
At its simplest, all you do is to change the first few lines of each HTML file:ace2 wrote:What is required to be changed or is it too hard??
Code: Select all
<!DOCTYPE html>
<!-- the above must be on the first line by itself and tells the browser that HTML 5 applies -->
<html lang="en"><!-- modify this if you are not using English language -->
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8"><!-- assigns the recommended standard encoding -->
<meta name="description" content="<#location> weather data">
<meta name="keywords" content="Cumulus, <#location> weather data, weather, data, weather station">
<title><!-- insert here what is to appear in browser tab title --></title>
<link href="weatherstyle.css" rel="stylesheet"> <!-- This line links the standard Cumulus stylesheet
to the HTML page and implies the HTML and CSS files are in the same web site directory -->
</head>
<body> <!-- This defines the start of what the browser is to display in its window -->-
duke
Re: converting custom templates to html5
Here is a comprehensive article for you on the history of HTML5 and also the future proposed 5.1 and 5.2, My personal answer is yes and also use the correct semantics.
And of course, back up and validate your pages as you modify them:
http://html5.validator.nu/ and http://www.w3schools.com/website/web_validate.asp
And of course, back up and validate your pages as you modify them:
http://html5.validator.nu/ and http://www.w3schools.com/website/web_validate.asp
- ace2
- Posts: 679
- Joined: Tue 14 Jan 2014 12:38 pm
- Weather Station: maxkon ws-1081pc
- Operating System: windows 7 & 8
- Location: Adelaide, south Australia, Australia
- Contact:
Re: converting custom templates to html5
Thanks for that info, my main concern is that I used a HTML5 checker on my pages, it came up with hundreds of error to make in compliant.sfws wrote:HTML5 adds some extras that can be useful for more specialist web pages.
e.g. '<video> ... </video>', '<audio> ... </audio>' and various alternatives to '<div> .... </div>' like '<article> ... </article>'
But if you do not need to use those, then the only reason to convert is to use the modern syntax just because it is the modern 'standard'.
So if I don't really require those special features, then I don't need to worry about it.
CHRIS

web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: converting custom templates to html5
Your pages already have lots of errors (not criticising, just pointing it out), so it seems to me that you may as well make the change to HTML5 and then make them validate? Either way, you really should look at correcting at least the most serious of the errors which might cause the pages not to render correctly in some browsers.
Steve
- ace2
- Posts: 679
- Joined: Tue 14 Jan 2014 12:38 pm
- Weather Station: maxkon ws-1081pc
- Operating System: windows 7 & 8
- Location: Adelaide, south Australia, Australia
- Contact:
Re: converting custom templates to html5
Yep, I've been slowly weeding them out, but means changing so much.steve wrote:Your pages already have lots of errors (not criticising, just pointing it out), so it seems to me that you may as well make the change to HTML5 and then make them validate? Either way, you really should look at correcting at least the most serious of the errors which might cause the pages not to render correctly in some browsers.
Maybe i should take the approach of starting with the new templates and adding in my custom stuff while editing it......
Just seems like so much needs to be changed to suit................
CHRIS

web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
-
duke
Re: converting custom templates to html5
The errors on your pages may prevent some browsers from delivering your page as you intended and should therefore be corrected first.
Also, from a quick glance most of these will have no effect on converting to html5 anyway and need rectifying for whatever you validate your page as.
Once you get started using the validater, those errors should not take long to rectify (I have not looked at your other pages for error count).
Also, from a quick glance most of these will have no effect on converting to html5 anyway and need rectifying for whatever you validate your page as.
Once you get started using the validater, those errors should not take long to rectify (I have not looked at your other pages for error count).
Last edited by duke on Wed 13 Aug 2014 9:14 am, edited 2 times in total.
- ace2
- Posts: 679
- Joined: Tue 14 Jan 2014 12:38 pm
- Weather Station: maxkon ws-1081pc
- Operating System: windows 7 & 8
- Location: Adelaide, south Australia, Australia
- Contact:
Re: converting custom templates to html5
Let the fun begin
CHRIS

web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
- ace2
- Posts: 679
- Joined: Tue 14 Jan 2014 12:38 pm
- Weather Station: maxkon ws-1081pc
- Operating System: windows 7 & 8
- Location: Adelaide, south Australia, Australia
- Contact:
Re: converting custom templates to html5
Attempted to fix errors on my index page, every time I fixed one, it would create more!!!
Looking for a better HTML editor than notepad++???
I take it general errors from script are considered normal.
I started with a fresh template and started addind what I had in the custom ones.
http://www.users.on.net/~ace2/templates/about.htm
Still have the bottom section to do....
Just wish there was a easier HTML editor
Looking for a better HTML editor than notepad++???
I take it general errors from script are considered normal.
I started with a fresh template and started addind what I had in the custom ones.
http://www.users.on.net/~ace2/templates/about.htm
Still have the bottom section to do....
Just wish there was a easier HTML editor
CHRIS

web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
-
water01
- Posts: 3670
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10/11 64bit Synology NAS
- Location: Burnham-on-Sea
- Contact:
Re: converting custom templates to html5
I use Webuilder 2014, not free, but very, very good. Supports HTML, PHP, Jscript, Ruby, HTML5 and CSS3 and many others and contains Validation tools and debuggers.
See here http://www.webuilderapp.com/
See here http://www.webuilderapp.com/
-
sfws
- Posts: 1183
- Joined: Fri 27 Jul 2012 11:29 am
- Weather Station: Chas O, Maplin N96FY, N25FR
- Operating System: rPi 3B+ with Buster (full)
Re: converting custom templates to html5
See http://www.htmlkit.com/download I use its free obsolete version
I do use Notepad++ for minor edits to all types of files.
as it will batch edits and apply them to all the files in a folder according to a filename match using wildcards; that feature may no longer be easy to find.HTML-Kit 292
I do use Notepad++ for minor edits to all types of files.
Last edited by sfws on Mon 03 Aug 2015 2:54 pm, edited 1 time in total.
- ace2
- Posts: 679
- Joined: Tue 14 Jan 2014 12:38 pm
- Weather Station: maxkon ws-1081pc
- Operating System: windows 7 & 8
- Location: Adelaide, south Australia, Australia
- Contact:
Re: converting custom templates to html5
Before I posted the wrong site address I started editing
Correct one is. http://users.on.net/~ace2/index3.htm
Correct one is. http://users.on.net/~ace2/index3.htm
CHRIS

web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
-
duke
Re: converting custom templates to html5
Chris, I thought the point of this thread was that you were wanting to convert your templates to html5?
At the top of your template you have:
For html5 you should simply have:
nothing else. If you had (have?) been validating your pages as you go you would note the validater shows what the template is being checked as. I your case
May I also suggest you take this opportunity to change the character set to UTF-8.
If you are serious about writing web pages my vote goes to WeBuilder 2014 too. If you set your router up correctly you can validate your templates on your desk top without having to ftp them somewhere.
Also, take a look at the XAMPP web server if you have not done so already.
At the top of your template you have:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">Code: Select all
<!DOCTYPE HTML>Here is the link for you: Aces index pageiso-8859-1 Doctype: XHTML 1.0 Transitional
May I also suggest you take this opportunity to change the character set to UTF-8.
Code: Select all
<meta charset="UTF-8">I would think not.I take it general errors from script are considered normal.
If you are serious about writing web pages my vote goes to WeBuilder 2014 too. If you set your router up correctly you can validate your templates on your desk top without having to ftp them somewhere.
Also, take a look at the XAMPP web server if you have not done so already.
-
duke
Re: converting custom templates to html5
And it's really frustrating when people make a post and then delete it!
- ace2
- Posts: 679
- Joined: Tue 14 Jan 2014 12:38 pm
- Weather Station: maxkon ws-1081pc
- Operating System: windows 7 & 8
- Location: Adelaide, south Australia, Australia
- Contact:
Re: converting custom templates to html5
Sorry I realised I had made a mistake.....
CHRIS

web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used