Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

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

Standard Website Pages Templates Title (weather)

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
SJG1976
Posts: 365
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:

Standard Website Pages Templates Title (weather)

Post by SJG1976 »

Hi All,

Probably really basic, but for the life of me I can't find where the page Title is being set.

I thought it was from the Website Data json file.
And that it was being pulled from the setpagedata.js

However I seem to keep having the the page title as

Glemsford Weather weather
I've removed the part where I htough tit was

Code: Select all

		// Set some header stuff
		$(document).prop('title', cmx_data.location + ' weather ');
		$('meta[name=description]').attr('content', cmx_data.location + ' weather data ');
		$('meta[name=keywords]').attr('content', $('meta[name=keywords]').attr('content') + ', ' + cmx_data.location);
The prop Title part.

However it still seems to be showing up?
User avatar
PaulMy
Posts: 3875
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Standard Website Pages Templates Title (weather)

Post by PaulMy »

Hi,
I believe it is from Station settings > General Settings > Location = Name
and index.htm line 60 Weather.

Code: Select all

		<div id="Content">	<!--	Start of panel content	-->
			<div class="w3-row-padding w3-theme-light site-width">	<!--	Page Title	-->
				<div class="w3-col l12">
					<h1><span data-cmxdata="location"></span> Weather <span class="subText"></span></h1>
				</div>
			</div>	<!--	End of title row	-->
Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
SJG1976
Posts: 365
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: Standard Website Pages Templates Title (weather)

Post by SJG1976 »

Hi Paul,

Thanks for the reply.

I thought that bit was for the Change in the Main Heading page.
I've updated that part and it only seems to do the header.

The reason I think it's on the Java 'setpagedata.js' is because of the Lowercase w in Weather.

That is the only Reference I can find to it.
It maybe just cached on mine, but I can't seem to get it to be removed.

It also does it on all the Other Standard Pages as well.

I've just uploaded the FIle, and when I got to view the Source it still says at Line 169 on the setpage.js the 'weather' entry is still there.
Do the .js files get updated on every live update?

Thanks for looking..
User avatar
ConligWX
Posts: 1652
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04 LTS
Location: Bangor, NI
Contact:

Re: Standard Website Pages Templates Title (weather)

Post by ConligWX »

yeap looks like setpagedata

LINE 168 on my file...

Code: Select all

		// Set some header stuff
		$(document).prop('title', cmx_data.location + ' weather');
however your site shows "Glemsford Weather weather" in the tab title

so your "cmx_data.location" = Glemsford Weather

in default index.htm:

Code: Select all

<h1><span data-cmxdata="location"></span> Weather <span class="subText"></span></h1>
so not sure why it is not showing "Glemsford Weather Weather" on the page unless you ahve added or removed something there too.

can you confirm your setpagedata.js and index.htm are default?

Code: Select all

# Checking CumulusMX file integrity on Linux
# go to your installation directory (eg. /opt/CumulusMX/)
# and run the following command (add --quiet to end of line if only want to see errors):
# ---------------------------------------------------
#  md5sum --check hash_md5_3221.txt
# ----------------------------------------------------
#
# Checking file integrity on Windows
# Start a PowerShell session
# go to your installation folder (eg. cd C:\CumulusMX)
# and run the following command:
# ---------------------------------------------------
#  .\MXutils\windows\CheckMD5HashFile.ps1 -HashFile .\hash_md5_3221.txt
btw nice part of the country, my family is from round those parts.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
User avatar
SJG1976
Posts: 365
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: Standard Website Pages Templates Title (weather)

Post by SJG1976 »

Many Thanks.

I've just uploaded.
Cleared the Cache and all seems to be working now (for me at least) needed to do a Chrome Incognito to get to see the new page.

I've only recently moved here was originally in Chelmsford (CM2Weather) so a bit of a change.
Much nicer Views and way of life, just wish I had better internet, but you can't have everything.

Thanks both for you help!

:)
Post Reply