WXforum.net

Weather Software => Cumulus => Topic started by: Farmtalk on May 28, 2012, 04:13:25 PM

Title: Editing Cumulus
Post by: Farmtalk on May 28, 2012, 04:13:25 PM
What I am wanting to do is edit the interface of cumulus to where my solar sensor related equipment does not show, and then my rainfall data, including graphs, do not show up, does anyone know how to do this???

Thanks! 8-)
Title: Re: Editing Cumulus
Post by: tobyspond on May 28, 2012, 04:49:48 PM
Hi Joseph,

Not sure I totally understand what you want to do.  Do you want to remove the solar data from the index page?  If so, just edit the indexT.htm file by removing the solar data:

 <!-- Solar data. If you don't have a solar sensor, you may wish to delete everything from here to the next comment -->
  <tr class="td_temperature_data">
    <td>Solar Radiation</td>
    <td><#SolarRad>&nbsp;W/m&sup2;</td>
    <td>Evapotranspiration Today</td>
    <td><#ET>&nbsp;<#rainunit></td>
  </tr>
  <!-- End of solar data -->
  <tr>

If you want to remove the rain graph, your edit the trendT.htm file and remove the graphs you do not want.

I strongly suggest that before you make any edits, you save the originals and work from a copy.

Kerry
Title: Re: Editing Cumulus
Post by: Farmtalk on May 28, 2012, 05:05:42 PM
Ok, Ill work from a copy, if I have any problems, Ill repost  :-)
Title: Re: Editing Cumulus
Post by: Farmtalk on May 28, 2012, 06:28:44 PM
Ok, I think I have the "trends" page complete, but it did not change when I uploaded it (?)
Title: Re: Editing Cumulus
Post by: tobyspond on May 28, 2012, 06:38:02 PM
Joseph,

You do not upload any of the T.htm files.   Cumulus
 automatically does the update.  The T stands for template.  Once you make changes to the template, the htm file changes. On the next update, your page should show the changes.

Have you searched the Cumulus forum and wiki?

Kerry
Title: Re: Editing Cumulus
Post by: Farmtalk on May 28, 2012, 06:56:36 PM
Yeah I looked at the forum but didnt see anything :-(

And nothing happened when cumulus updated, is there something i need to do other than edit trendsT??
Title: Re: Editing Cumulus
Post by: neondesert on May 28, 2012, 07:10:12 PM
Yeah I looked at the forum but didnt see anything :-(

And nothing happened when cumulus updated, is there something i need to do other than edit trendsT??

What exactly are you trying to change (edit) on your trends page, Joe?  :???:
Title: Re: Editing Cumulus
Post by: Farmtalk on May 28, 2012, 07:20:01 PM
For my trends page, I am trying to get rid of all the rain graphs, the rain rate, daily rain fall, etc
Title: Re: Editing Cumulus
Post by: tobyspond on May 28, 2012, 07:46:54 PM
Joseph,

The likely reason is that your copy has a different name or it is not in the cumulus/web folder on your computer.  Create a folder named originals and move the original trend page there.  Keep your edited version in the web folder.   That should do it.

BTW the answer to your solar question is located here:

http://wiki.sandaysoft.com/a/FAQ
http://wiki.sandaysoft.com/a/FAQ#I_don.27t_have_a_solar_sensor._How_do_I_remove_the_solar_data_from_the_supplied_web_pages.3F

Good luck,

Kerry

Title: Re: Editing Cumulus
Post by: neondesert on May 28, 2012, 08:16:03 PM
Joseph,

The likely reason is that your copy has a different name or it is not in the cumulus/web folder on your computer.  Create a folder named originals and move the original trend page there.  Keep your edited version in the web folder.   That should do it.

What Kerry said...  :-)

BTW the answer to your solar question is located here:

http://wiki.sandaysoft.com/a/FAQ
http://wiki.sandaysoft.com/a/FAQ#I_don.27t_have_a_solar_sensor._How_do_I_remove_the_solar_data_from_the_supplied_web_pages.3F

Again, what he said.  :-)    Seriously though, I think Kerry will agree in that READING the WIKI will answer 99% of your questions with Cumulus
and the website templates.  It is very thorough. 
Title: Re: Editing Cumulus
Post by: Farmtalk on May 28, 2012, 08:57:30 PM
Ok I will read it again :grin: :grin:
Title: Re: Editing Cumulus
Post by: Farmtalk on May 29, 2012, 02:49:35 PM
Ok, I think Ive done most of the editing, but I didnt find anything on which folder i need to upload to, and which ones to actually upload, this has me a little confused #-o
Title: Re: Editing Cumulus
Post by: tobyspond on May 29, 2012, 05:55:07 PM
Hi Joseph,

You should not need to upload any files.  By editing the T.htm files and Cumulus does the uploading.  I checked your trends page and it is the same as the original.  Did you make the changes to trendsT.htm?  That is the file you need to change.

If you are still having difficulty can you post your code and/or explain what you have done/changes you have made?

Kerry
Title: Re: Editing Cumulus
Post by: Farmtalk on May 29, 2012, 06:57:05 PM
<!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">
<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><#location> weather</title>
<script type="text/javascript">
function changeImage(im) {
   document.images["graphs"].src = im + "?" + new Date().getTime();
}
</script>

<link href="weatherstyle.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="content">
<h1><#location> weather</h1>
<h2 style="text-align: left; text-transform: none;">&nbsp;Latitude&nbsp;<#latitude>&nbsp;&nbsp;&nbsp;&nbsp;Longitude&nbsp;<#longitude>&nbsp;&nbsp;&nbsp;&nbsp;Elevation&nbsp;<#altitude></h2>
<p>These graphs present the temperature, pressure, and wind speed trends for the last <#graphperiod> hours. </p>
<p>The thumbnail graphs are sampled every ten minutes. Click on a thumbnail to display the corresponding larger graph in the panel above it. The large graphs are sampled every minute. </p>
<p> <img src="images/wind.png" name="graphs" id="graphs" title="Weather Graphs" alt="Weather Graphs"/></p>
<table cellpadding="0" cellspacing="0" id="Graph_menu">
  <tr>
    <td colspan="5">Click on a thumbnail to show a large graph in the panel above.</td>
  </tr>
  <tr>
    <td class="td_thumbnails"><a onclick='changeImage("images/wind.png")'><img src="images/windsm.png" alt="Wind Graph Thumbnail" width="150" height="100" border="0" /></a></td>
    <td class="td_thumbnails"><a onclick='changeImage("images/temp.png")'><img src="images/tempsm.png" alt="Temperature Graph Thumbnail" width="150" height="100" border="0" /></a></td>
    <td class="td_thumbnails"><a onclick='changeImage("images/intemp.png")'><img src="images/intempsm.png" alt="Inside Temperature Graph Thumbnail" width="150" height="100" border="0" /></a></td>
    <td class="td_thumbnails"><a onclick='changeImage("images/press.png")'><img src="images/presssm.png" alt="Pressure Graph Thumbnail" width="150" height="100" border="0" /></a></td>
  <tr>
    <td class="td_thumbnails"><a onclick='changeImage("images/windd.png")'><img src="images/winddsm.png" alt="Wind Direction Thumbnail" width="150" height="100" border="0" /></a></td>
    <td class="td_thumbnails"><a onclick='changeImage("images/tempm.png")'><img src="images/tempmsm.png" alt="Temp Min/Max Graph Thumbnail" width="150" height="100" border="0" /></a></td>
    <td class="td_thumbnails"><a onclick='changeImage("images/hum.png")'><img src="images/humsm.png" alt="Humidity Graph Thumbnail" width="150" height="100" border="0" /></a></td>
  </tr>
  <tr>
    <td colspan="5" class="td_navigation_bar">:<a href="index.htm">now</a>::<a href="gauges.htm">gauges</a>::<a href="today.htm">today</a>::<a href="yesterday.htm">yesterday</a>::<a href="thismonth.htm">this&nbsp;month</a>::<a href="thisyear.htm">this&nbsp;year</a>::<a href="record.htm">records</a>::<a href="trends.htm">trends</a>:<#forum><#webcam></td>
  </tr>
</table>
<p class="credits"><br/>
Page updated <#update><br/>
powered by
<a href="http://sandaysoft.com/products/cumulus" target="_blank">Cumulus</a> v<#version> (<#build>)
</p>
</div>
</body>
</html>


This is my edited code for the trendsT.htm page
Title: Re: Editing Cumulus
Post by: tobyspond on May 29, 2012, 08:02:32 PM
I copied your code and tested it on my computer and it works fine for me. 

Where is this file located?  It should be in C:\Cumulus\web.  Is it still named trendsT.htm?  If not rename the file.

Kerry
Title: Re: Editing Cumulus
Post by: Farmtalk on May 29, 2012, 08:40:09 PM
Yeah thats where it is located, so I just must be uploading wrong somehow :-k

Im uploading to my root directory, is that where im going wrong??
Title: Re: Editing Cumulus
Post by: tobyspond on May 29, 2012, 09:54:35 PM
Joseph,

You do not upload the T.htm files.  If that is what you are talking about.  Cumulus does the processing.

Check the name with the original, make sure it is spelled correctly.  It might be with a capital T.  I'm not at my computer so I cannot verify the spelling.

Kerry
Title: Re: Editing Cumulus
Post by: Farmtalk on May 29, 2012, 09:59:18 PM
Yeah I checked my web files; everything looks to be spelled correct, ill check and see if Ive uploaded and T files that I should not have, but otherwise, i cant see what im doing wrong :-k, its got to be something super simple probably
Title: Re: Editing Cumulus
Post by: PaulMy on May 29, 2012, 11:01:52 PM
Unless you have changed some of your folders and the Cumulus Configuration Internet settings from the default install, all your standard templates (indexT.htm, todayT.htm, trendsT.htm, etc) should be in your c:\cumulus\web folder.  You can edit any of these standard template T.htm files keeping the name and location the same.  Cumulus will process these template T.htm files at the interval that you have specified and then update your website with the changed names of index.htm, today.htm, trends.htm, etc. each reflecting the edit that you have done in any of the T.htm templates.

The index.htm, today.htm. trends.htm currently in your www.fitzweather.com/cumulus website folder are the original templates and from looking in the "View source" they have no edit to them as yet and are showing current data so updating correctly.

In your www.fitzweather.com root you also have the index.htm file (showing the NOW data) which appears to be an edited version by removing the solar code, but last updated May 18.  This unused file can be removed from your root folder.

I expect all you need to do is edit the template T.htm files you want changed, then just save the edited file without changing name, and in due course the edited pages will be on your website.  Like many Cumulus users my indexT.htm file (www.komokaweather.com/weather/index.htm) has been significantly edited.

BUT you should first copy and save, as another name - i.e. indexT-old.htm, the existing T.htm file(s) you plan to edit as backup(s), and use notepad++ to edit, instead of a graphical editor which may cause strange charactors to be placed in the file that can cause the page to crash.

Paul
Title: Re: Editing Cumulus
Post by: Farmtalk on June 04, 2012, 05:55:59 PM
Thanks everybody! Ill hopefully start working on this soon again! Ive been very busy :-(
Title: Re: Editing Cumulus
Post by: Farmtalk on June 07, 2012, 10:57:23 AM
Ok so what I did was just edit the IndexT.htm file to start with, and I finished that, but when I uploaded it, nothing changed??? I should not have any solar data or precipitation data on my homepage. :-k
Title: Re: Editing Cumulus
Post by: tobyspond on June 07, 2012, 12:04:55 PM
Joseph,

You do not upload the indexT file; Cumulus processes the Templates files into the standard htm pages automatically. 

Kerry

Title: Re: Editing Cumulus
Post by: Farmtalk on June 07, 2012, 12:11:17 PM
Ok, so you are saying to just save the edited file and Cumulus will process it.....is there anything else I need to do?
Title: Re: Editing Cumulus
Post by: tobyspond on June 07, 2012, 12:14:41 PM
Yes save the edited file (it should be in the cumulus/web directory) and Cumulus does the rest.  That's it, really!
Title: Re: Editing Cumulus
Post by: Farmtalk on June 07, 2012, 12:22:47 PM
Ok I think I may know what I am doing wrong...I have been saving the files under the file Fitzweather => Cumulus =>

Should I be saving it under the actual file which is under my "C" Drive???
Title: Re: Editing Cumulus
Post by: Farmtalk on June 07, 2012, 12:44:56 PM
Ok, I finally got it!!!!!! The only thing is that in the process I messed up the background imagery and such, which you can see on my homepage, could someone tell me which part of the code that is so I can reinsert that???


And my links at the bottom of the page arent working either :-(
Title: Re: Editing Cumulus
Post by: tobyspond on June 07, 2012, 12:49:53 PM
You need to change the directory in your indexT.htm page; right now the location is pointing to your documents folder on your local computer not the location on your web site.

for example

<link href="../../Documents and Settings/Owner/My Documents/Fitzweather/Cumulus/web/weatherstyle.css" rel="stylesheet" type="text/css" />

needs to be the location of your weatherstyle.css file on the web site

something like

<link href="weatherstylenew.css" rel="stylesheet" type="text/css" />
Title: Re: Editing Cumulus
Post by: Farmtalk on June 07, 2012, 12:56:48 PM
Hmm.. This could be bad, I have all the codes I edited in different files under notepad, but I think I mustve not have copied that piece of code over, where would I insert it...worse come worse Ill download another cumulus and look at it on the unedited version.
Title: Re: Editing Cumulus
Post by: tobyspond on June 07, 2012, 01:04:52 PM
I suggest using notepad++ for editing - it is free.

original indexT attached as text file if you use it save it back to htm file.  Always save the originals.
Title: Re: Editing Cumulus
Post by: Farmtalk on June 07, 2012, 01:10:02 PM
This is what the original is:

<link href="weatherstylenew.css" rel="stylesheet" type="text/css" />

This is what I have, I dont think it has been changed:

<link href="../../Documents and Settings/Owner/My Documents/Fitzweather/Cumulus/web/weatherstyle.css" rel="stylesheet" type="text/css" />

Is there somewhere else that may have caused my background and coloring to disappear?
Title: Re: Editing Cumulus
Post by: tobyspond on June 07, 2012, 01:19:43 PM
Joseph,

What you have is wrong!  Please change it.  The css controls the styles on your webpage.  You have that error throughout the indexT code.
Title: Re: Editing Cumulus
Post by: Farmtalk on June 07, 2012, 01:27:22 PM
For every file where it directs to my documents, do i need to change it?