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

Weather Blues Template preview

Discussion of Jacques DesRoches's web site templates

Moderator: JacquesD

User avatar
JacquesD
Posts: 609
Joined: Tue 27 Jul 2010 3:51 am
Weather Station: National Geographic 265nc
Operating System: XP SP3
Location: St-Ours, Québec, Canada
Contact:

Re: Weather Blues Template preview

Post by JacquesD »

Hi Robert,

I think you've got a good simple way to have it right 100%!
Simply replace all "é" with unaccented "e".

But as Beetlejuice mention, Notepad++ could be the solution!
Web pages include a charset="utf-8" (or other) to inform browser about language.
But beside that, the file itself has to be saved with according encoding.

Finally, a good tip about Notepad++ is that it could find any text (é) and replace it by an other (e) in all files in a folder without having to open them. (Sure you can restreint it to only *.html and include subfolders)

And you know, for me... Météo du Quebec or Meteo du Quebec... It's the same! :D
(I plan also to remove those accents as they are false displayed on min. 10% non french sites.)

Jacques
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Weather Blues Template preview

Post by gemini06720 »

Robert to correct properly the incorrect display of 'Météo du Québec' you have to replace the accentuated characters with either their HTML numerical codes or their HTML friendly codes. Thus:

Code: Select all

Météo du Québec

Météo du Québec

Météo du Québec
I prefer to use the friendly codes as they are somewhat more meaningful.
RobertY
Posts: 61
Joined: Fri 09 Dec 2011 5:16 pm
Weather Station: LaCrosse 2315
Operating System: Windows XP SP3
Location: East TN, USA
Contact:

Re: Weather Blues Template preview

Post by RobertY »

Hi gemini06720,

I did a replace of all the Météo du Québec
with
Météo du Québec

Your right, when looking at the code it is easier to tell what that is as opposed to the numeric version.

Thank You!

beteljuice,
Did that fix it for you?
RobertY
Posts: 61
Joined: Fri 09 Dec 2011 5:16 pm
Weather Station: LaCrosse 2315
Operating System: Windows XP SP3
Location: East TN, USA
Contact:

Re: Weather Blues Template preview

Post by RobertY »

Rast Rats Rats and DOUBLE RATS!!!

I tried to be slick to be able to save me time in the future and used php includes in the place of the menus. I php include files made up for both menus.

mainmenu.inc and secondarymenu.inc

created the includes folder and put them in it and uploaded them to the directory. Changed all the htm files to have the
<?php include("includes/mainmenu.inc") ?>
or
<?php include("includes/secondarymenu.inc") ?>

in the proper places. Had cumulus process all the files.

Result was NO Menus. LOL!

I have this working on my main site so I can change both menus (top and side) by just changing one single file or two, depending on what menu needed modifying.

But not in my /weather directory. (sigh)
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Weather Blues Template preview

Post by SJG1976 »

Hi Jacques,

Thank you for developing such a good template.

I now have it working well, without understanding all of what I was doing.

Thanks for all yor work.
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: Weather Blues Template preview

Post by beteljuice »

RobertY wrote:Rast Rats Rats and DOUBLE RATS!!!

... Had cumulus process all the files.

Result was NO Menus. LOL! ...
First of all, as far as I can see the underlying code for the NOAA reports page has not been changed !
(I've cleared my cache and done a forced refresh with the same results) Even if you have used the 'shortcuts' for the copyright, the degree character in the reports would still be 'wrong'. You really need to convert and save the page in the correct format.

Above - what are you saying ?

Are you surprised that you've put PHP code in a html page and it doesn't work ?

If you want a html page to be parsed for PHP, then you need to get your hands dirty and make / edit something called htaccess on your server. Else your pages should be .php NOT .htm, which in turn means you would not use 'include standard pages' but would have to name them yourself in the files to process / upload.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
JacquesD
Posts: 609
Joined: Tue 27 Jul 2010 3:51 am
Weather Station: National Geographic 265nc
Operating System: XP SP3
Location: St-Ours, Québec, Canada
Contact:

Re: Weather Blues Template preview

Post by JacquesD »

Hi SJG,

Happy that this template please you!

Cheers,
Jacques
Image
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Weather Blues Template preview

Post by SJG1976 »

Yes, very very happy thank you.

Just seems to work so well!
Thanks for all your hard work (and along with Steve's software) Ive got what I want, just need to find someone now to develop an iPad app, so I get get the data on that on a I screen real time, for something I can look at when I go to sleep!

Just wish my talents were as good as others on here at developing stuff like this.

And it's nice to have such a friendly forum with people sharing ideas, and knowledge.
uncle_bob
Posts: 505
Joined: Wed 17 Aug 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

Re: Weather Blues Template preview

Post by uncle_bob »

SJG1976 wrote: just need to find someone now to develop an iPad app, so I get get the data on that on a I screen real time, for something I can look at when I go to sleep!
A couple here:
http://www.undertheweather.co.nz/
http://wiki.sandaysoft.com/index.php?ti ... for_iPhone
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Image
RobertY
Posts: 61
Joined: Fri 09 Dec 2011 5:16 pm
Weather Station: LaCrosse 2315
Operating System: Windows XP SP3
Location: East TN, USA
Contact:

Re: Weather Blues Template preview

Post by RobertY »

Hi beteljuice,
Way ahead of you. I did the htaccess with the added line:

AddType application/x-httpd-php .html

If you will check with the main site:

http://robertyelverton.info

You will see that it is working properly. There are no menus in place anywhere on that entire site. The nav menus are in the two files of topmenu.inc and leftcontent.inc that is located in an includes folder.

<!-- Top Menu start -->
<?php include("includes/topmenu.inc") ?>
<!-- Top Menu end -->

<!-- start left content -->
<?php include("includes/leftcontent.inc") ?>
<!-- end of content left -->

ARG! My fault on the NOAA reports page. I missed that page when replacing with:

M&eacute;t&eacute;o du Qu&eacute;bec

see if it shows better for you now. If not then I will just do it the other way and replace all with regular e's. :)
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Weather Blues Template preview

Post by gemini06720 »

Robert, I have no problem seeing your weather pages, including the 'NOAA Style Reports' page. You might have to edit further the 'NOAA Style Reports' page to include a proper title in the header of that page - it is still showing "<#location> | Most recent observations" as it has not been processed by Cumulus - thus the "<#location>" tag has not been replaced with 'Loudon TN"... ;)
RobertY
Posts: 61
Joined: Fri 09 Dec 2011 5:16 pm
Weather Station: LaCrosse 2315
Operating System: Windows XP SP3
Location: East TN, USA
Contact:

Re: Weather Blues Template preview

Post by RobertY »

Hi gemini06720,

Thank You for catching that. I tend to miss things like that. Got it corrected. My mind is long past the steel trap days where nothing got past me. LOL!

I went back to the normal pages. Going to back off the php includes for the weather part of my site for now. Was just trying to make menu changes more streamline for me in the future. :)
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: Weather Blues Template preview

Post by beteljuice »

AddType application/x-httpd-php .html
Need another line - Cumulus defaults are .htm - no 'l' ;)
beteljuice wrote:... the degree character in the reports would still be 'wrong'. You really need to convert and save the page in the correct format.
Image
......................Imagine, what you will KNOW tomorrow !
RobertY
Posts: 61
Joined: Fri 09 Dec 2011 5:16 pm
Weather Station: LaCrosse 2315
Operating System: Windows XP SP3
Location: East TN, USA
Contact:

Re: Weather Blues Template preview

Post by RobertY »

Thanks beteljuice. **bangs head on desk**

I bet that is it. (sigh) That is why it is working on the main site and did not work on the weather site. Main site is html and your correct, weather is just htm.

So monday I will add another line to include htm
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Weather Blues Template preview

Post by SJG1976 »

uncle_bob wrote:
SJG1976 wrote: just need to find someone now to develop an iPad app, so I get get the data on that on a I screen real time, for something I can look at when I go to sleep!
A couple here:
http://www.undertheweather.co.nz/
http://wiki.sandaysoft.com/index.php?ti ... for_iPhone
Thanks, didn't see them, that looks like what I'm after.
Post Reply