Page 1 of 1

Add a link inside Cumulus webpages

Posted: Mon 30 Jan 2012 8:23 pm
by ttexsun
How can I add a link inside cumulus webpages with realtime and show it in cuumlus webpages with now,gauges,today,yesterday,...ect.
ttexsun

Re: Add a link inside Cumulus webpages

Posted: Mon 30 Jan 2012 8:36 pm
by steve
If you want a link to it in each of the standard files, like the existing menu, you'll need to edit the files in the web folder with a 'T' in them (e.g. indexT.htm etc) to add a link to your realtime page.

Re: Add a link inside Cumulus webpages

Posted: Mon 30 Jan 2012 9:03 pm
by ttexsun
I don't understand how to edit the files---now:gauges:today---ect. I can open them up, but don't see how to edit them. ttexsun

Re: Add a link inside Cumulus webpages

Posted: Mon 30 Jan 2012 9:39 pm
by steve
Edit them with a plain text editor, even notepad will do. Look for the 'navigation bar':

Code: Select all

<tr>
    <td colspan="4" 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>
and add any links you want to that.

Re: Add a link inside Cumulus webpages

Posted: Mon 30 Jan 2012 10:04 pm
by ttexsun
Thanks, I'll give it a try. ttexsun

Re: Add a link inside Cumulus webpages

Posted: Tue 31 Jan 2012 4:41 pm
by ttexsun
Hello Steve,
It's me again. I've tried to edit with the notepad, but nothing happens. Can you give me an example on how to enter a "realtime" link to cumulus webpages using the code example? I don't mean to be so (dumb) about all this stuff. If I can do this I should be able to do away with the link on my webpage in http://www.dewellsweatherstation.net in my Weather Information tab? Thanks for all your help. ttexsun

Re: Add a link inside Cumulus webpages

Posted: Tue 31 Jan 2012 4:49 pm
by steve
In indexT.htm, changing this:

Code: Select all

<tr>
    <td colspan="4" 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>
to this

Code: Select all

<tr>
    <td colspan="4" class="td_navigation_bar">:<a href="index.htm">now</a>::<a href="http://www.dewellsweatherstation.net/CumulusRealtime.html">realtime</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>
will give a link to your realtime page as the second link in the navigation bar. Repeat for the other 'T' files.

Re: Add a link inside Cumulus webpages

Posted: Tue 31 Jan 2012 6:00 pm
by ttexsun
Thanks Steve, YOUR THE BEST ttexsun

Re: Add a link inside Cumulus webpages

Posted: Wed 01 Feb 2012 2:27 pm
by ttexsun
:mrgreen: Hello Steve, One more question. How do I put the string---:now::realtime::gauges::today::yesterday::this month::thisyear::records::trends::forum: on the realtime page? Thanks again ttexsun :clap:

Re: Add a link inside Cumulus webpages

Posted: Wed 01 Feb 2012 2:46 pm
by steve
What I've done is to create a page that uses the existing style and navigation bar, and embeds the Silverlight application in it:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="weatherstyle.css" rel="stylesheet" type="text/css">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="description" content="Sanday weather data">
  <meta name="keywords" content="Cumulus, Sanday weather data, weather, data, weather station">
  <title>Sanday weather</title>
  <link href="weatherstyle.css" rel="stylesheet" type="text/css">  
  <script type="text/javascript" src="Silverlight.js"></script>
</head>
<body>
<div id=content>
<h1>Sanday weather</h1>
<h2 style="text-align: left; text-transform: none;">&nbsp;Latitude&nbsp;N&nbsp;59&deg;&nbsp;14'&nbsp;33"&nbsp;&nbsp;&nbsp;&nbsp;Longitude&nbsp;W&nbsp;02&deg;&nbsp;35'&nbsp;16"&nbsp;&nbsp;&nbsp;&nbsp;Elevation&nbsp;5&nbsp;m</h2>

<div id='errorLocation' style="font-size: small;color: Gray;"></div>
    <div id="silverlightControlHost">
		<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="834" height="880">
			<param name="source" value="CumulusRealtime.xap?v=1.0.0.5"/>
			<param name="onerror" value="onSilverlightError" />
			<param name="background" value="white" />
			<param name="minRuntimeVersion" value="3.0.40624.0" />
			<param name="autoUpgrade" value="true" />
			<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
		    </a>
		</object>
		<iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
    </div>
<table border="0" cellpadding="0" cellspacing="0" width="100%"> 
  <tbody>    
    <tr>
      <td colspan="3" 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>:</td>
    </tr>
  </tbody>
</table>
</div>
</body>
</html>
Note that you'll need to edit the 'Sanday' bit and the co-ordinates etc.

Re: Add a link inside Cumulus webpages

Posted: Wed 01 Feb 2012 8:26 pm
by ttexsun
After I make the corrections,it is a txt.file. How do I use it to get it to load on my cumulusrealtime page? ttexsun

Re: Add a link inside Cumulus webpages

Posted: Thu 02 Feb 2012 12:22 am
by beteljuice
Should have saved it as .htm

You should be able to just rename it, and then you just upload it to your webspace (NOT using Cumulus)

Re: Add a link inside Cumulus webpages

Posted: Thu 02 Feb 2012 1:18 am
by ttexsun
Thanks beteljuice, for the reply, but still I am not doing something right. I thought I knew a little about computers until I statred working on this project but doing this is all togather a different ballgame. :lol: Think I am going to quit for today. Thanks again. I can always use help on this project.