Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

weather blues 2 questions

Discussion of Jacques DesRoches's web site templates

Moderator: JacquesD

fastbysuzuki
Posts: 66
Joined: Fri Sep 09, 2011 8:54 pm
Weather Station: davis vantage pro 2 cabled
Operating System: windows 7 64bit
Location: Fleetwood, Lancashire
Contact:

weather blues 2 questions

Postby fastbysuzuki » Fri Mar 03, 2017 10:09 pm

Hi I am trying to learn php I have a test site as of yet no data going to it and I have two questions to ask please where can I edit the text
"The weather station in use is the Davis Vantage Pro2, and these pages are updated every 10 minutes
The meteorological day used at this station ends a 9 am." on the index.php page I have searched through god knows how many pages I cannot find it anywhere.
also I would like to remove "humidex" and "sun up" from showing on the index.php page.
any help would be appreciated.
I have asked on the weather by you forum but had no reply's.

uncle_bob
Posts: 459
Joined: Wed Aug 17, 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

Re: weather blues 2 questions

Postby uncle_bob » Fri Mar 03, 2017 11:22 pm

fastbysuzuki wrote:Hi I am trying to learn php I have a test site as of yet no data going to it and I have two questions to ask please where can I edit the text
"The weather station in use is the Davis Vantage Pro2, and these pages are updated every 10 minutes
The meteorological day used at this station ends a 9 am." on the index.php page I have searched through god knows how many pages I cannot find it anywhere.



Those options are pulled from the Cumulus station settings.

also I would like to remove "humidex" and "sun up" from showing on the index.php page.
any help would be appreciated.


It's been a while since I used the Weather Blues template but you will need to find the references in the php code.
BTW, Notepad + is great for this stuff so you can open all the pages code at once and search them all for any text string.

fastbysuzuki
Posts: 66
Joined: Fri Sep 09, 2011 8:54 pm
Weather Station: davis vantage pro 2 cabled
Operating System: windows 7 64bit
Location: Fleetwood, Lancashire
Contact:

Re: weather blues 2 questions

Postby fastbysuzuki » Sun Mar 05, 2017 7:35 pm

Hi thanks for the reply, am I right or wrong in assuming the values are taken from cumulus as in the highlighted parts here
"The weather station in use is the Davis Vantage Pro 2 these pages are updated every 10 minutes. The meteorological day used at this station ends at 10am.
I would like to add "Please check the date & time below to ensure information is current."

but I cannot find the text The weather station in use is the ---- these pages are updated every ------ The meteorological day used at this station ends at ----
the only place I have located it is in the indexT.htm but this file is not processed when using wb2
I searched via notepad all the likely php pages looking for the string "the weather station* with no results stumped now! :bash:

water01
Posts: 1401
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: weather blues 2 questions

Postby water01 » Sun Mar 05, 2017 11:51 pm

indexT.htm is the template file that Cumulus processes and uploads as index.htm. All changes should be made in these template files so they are kept and not overwritten in the next upload, so make your changes there.

uncle_bob
Posts: 459
Joined: Wed Aug 17, 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

Re: weather blues 2 questions

Postby uncle_bob » Mon Mar 06, 2017 1:52 am

fastbysuzuki wrote:Hi thanks for the reply, am I right or wrong in assuming the values are taken from cumulus as in the highlighted parts here
"The weather station in use is the Davis Vantage Pro 2 these pages are updated every 10 minutes. The meteorological day used at this station ends at 10am.
I would like to add "Please check the date & time below to ensure information is current."

but I cannot find the text The weather station in use is the ---- these pages are updated every ------ The meteorological day used at this station ends at ----
the only place I have located it is in the indexT.htm but this file is not processed when using wb2
I searched via notepad all the likely php pages looking for the string "the weather station* with no results stumped now! :bash:


Like I said. Those text fields are in the Cumulus Station Settings menu item. Change them in there and the webtag will update.

User avatar
PaulMy
Posts: 1548
Joined: Sun Sep 28, 2008 11:54 pm
Weather Station: Davis Vantage Pro 2 w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: weather blues 2 questions

Postby PaulMy » Mon Mar 06, 2017 2:40 am

but I cannot find the text The weather station in use is the ---- these pages are updated every ------ The meteorological day used at this station ends at ----
the only place I have located it is in the indexT.htm but this file is not processed when using wb2
I searched via notepad all the likely php pages looking for the string "the weather station* with no results stumped now

I don't use the WB template but if the standard Cumulus files, including indexT.htm file, are not uploaded (unticked Use Standard Files) for the WB template then there must be a similar file in WB that will have that string.

The View Source of your WB site looks nearly identical to the Cumulus standard files so if that is not the standard Cumulus indexT.htm it is a near like copy of it.

Paul

fastbysuzuki
Posts: 66
Joined: Fri Sep 09, 2011 8:54 pm
Weather Station: davis vantage pro 2 cabled
Operating System: windows 7 64bit
Location: Fleetwood, Lancashire
Contact:

Re: weather blues 2 questions

Postby fastbysuzuki » Mon Mar 06, 2017 7:35 pm

Hi thanks for the reply yes the "include standard files" has to be unticked and "include standard images" (ticked) will carry on searching :|

User avatar
PaulMy
Posts: 1548
Joined: Sun Sep 28, 2008 11:54 pm
Weather Station: Davis Vantage Pro 2 w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: weather blues 2 questions

Postby PaulMy » Mon Mar 06, 2017 8:36 pm

I have just downloaded the WB zip and extracted. I see there is a similar indexT, etc. in the web folder and in indexT.htm

Code: Select all

      <!-- content begins -->
      <div class="cont_top"></div>
      <div id="content">
         <div class="razd_lr_h">
            <div id="left_h">
               <h1 style="padding-top:15px">Welcome to <#longlocation></h1>
               <p>The weather station in use is the <#stationtype>, and these pages are updated every <#interval> minutes.<br />The meteorological day used at this station ends at <#rollovertime>.
               </p>
               <br />
               <h1>Forecast : <span style="color: #000"><#forecast></span></h1><br />
               <!-- WEATHER DATA BEGIN -->


That is where you would edit. Presumably you would have these files being processed and FTP by Cumulus through the extra Files settings.

Enjoy,
Paul

User avatar
PaulMy
Posts: 1548
Joined: Sun Sep 28, 2008 11:54 pm
Weather Station: Davis Vantage Pro 2 w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: weather blues 2 questions

Postby PaulMy » Mon Mar 06, 2017 9:15 pm

Sorry, I may have misled. My first attempt was downloading an older version of WB. Doing a download of V.2.2b I see it has changed quite a bit. I think your answer is in the \lang\text_standard_en.php lines 335, etc. and then in index.php lines 83 to 93

Code: Select all

$Tr_ind_station = "The weather station in use is the  ";
$Tr_ind_update = "and these pages are updated every ";
$Tr_ind_mday = "The meteorological day used at this station ends a";


Code: Select all

      <!-- content begins -->
      <div class="cont_top"></div>
      <div id="content">
         <div class="razd_lr_h">
            <div id="left_h">
               <h1 style="padding-top:15px"><?php echo $Tr_welcome.' '.$Tr_station; ?></h1>
               <p><?php echo $Tr_ind_station.' '.$stationtype.', '.$Tr_ind_update.' '.$interval.' '.$Tr_minutes.'<br />'.$Tr_ind_mday.' '.$rollovertime; ?>.
               </p>
               <br />
               <h1><?php echo $Tr_forecast; ?> : <span style="color: #000"><?php echo $forecast; ?></span></h1><br />
               <!-- WEATHER DATA INCLUSION -->


I am not knowledgeable with PHP so not sure what or how you would edit those.

Enjoy,
Paul

User avatar
PaulMy
Posts: 1548
Joined: Sun Sep 28, 2008 11:54 pm
Weather Station: Davis Vantage Pro 2 w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: weather blues 2 questions

Postby PaulMy » Mon Mar 06, 2017 10:02 pm

Checking your http://ncirossallpoint.co.uk/weather/ and looks like you've found it and got it changed.

Enjoy,
Paul

fastbysuzuki
Posts: 66
Joined: Fri Sep 09, 2011 8:54 pm
Weather Station: davis vantage pro 2 cabled
Operating System: windows 7 64bit
Location: Fleetwood, Lancashire
Contact:

Re: weather blues 2 questions

Postby fastbysuzuki » Mon Mar 06, 2017 11:25 pm

Hi, thanks again for the reply it's looks like you have found it as you say I will have to look into how to add to it.
You are looking at out present weather site that is weather blues 1 ( the HTML edition) the one I am working on is a test site and has no data going to it http://www.ncirossallpoint.co.uk/test/index.php


Return to “Weather by You Templates”

Who is online

Users browsing this forum: No registered users and 2 guests