Page 1 of 2

system status page setup

Posted: Thu 30 May 2013 9:19 am
by Michael_Wright
Hi guys i would like to setup a system status page how do i get it on the website

Mike :D

Re: system status page setup

Posted: Thu 30 May 2013 3:24 pm
by water01
It is not a standard template page that Steve supplies, so either you build one in html yourself (not hard if you use another Template page and copy it, rename it say systemT.html) or ask someone who has one if you can have a copy. You will also have to amend the menu to accomodate your new piece of html.

I have one but mine is written for .php, but I have the original html but my menu sytem used at the time was completely non-Steve standard, but others may have a more original type template one.

Re: system status page setup

Posted: Thu 30 May 2013 3:32 pm
by mcrossley
I have one that is standard-ish but slanted towards the Davis station - if you want to modify it for your purposes you are welcome to it.
http://weather.wilmslowastro.com/systeminfo.htm

Re: system status page setup

Posted: Thu 30 May 2013 7:52 pm
by gluepack
It is a (I think) standard part of the Saratoga templates. You can see it on my site (it is a bit dull so that will probably be my next project, to pretty it up a bit). You could have a look at the code and see if it is modifiable for what you need.

Re: system status page setup

Posted: Fri 31 May 2013 10:43 pm
by Michael_Wright
Do I need to add any think else to the <p>This page shows various weather system details.</p>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="padding-bottom: 10px;">
<tbody>
<tr>
<td colspan="2" class="tableseparator_temp">Error Data</td>
</tr>
<tr class="td_temperature_data">
<td>Station&nbsp;Data&nbsp;Feed<noscript>&nbsp;Stopped</noscript>:</td>
<td><script>document.write(0==1 ? "!! Data Stopped !!" : "Data OK")</script><noscript>0</noscript></td>
</tr>
<tr class="td_temperature_data">
<td>Time&nbsp;last&nbsp;data&nbsp;was&nbsp;read&nbsp;from&nbsp;station</td>
<td>31/05/2013 23:29:57</td>
</tr>
<tr class="td_temperature_data">
<td>Latest&nbsp;Error:</td>
<td><script>document.write(""=="" ? "No error" : "")</script><noscript></noscript></td>
</tr>
<tr class="td_temperature_data">
<td>Error&nbsp;Time:</td>
<td>---- ------</td>
</tr>
<tr>
<td colspan="4" class="tableseparator_rainfall">Settings</td>
</tr>
<tr class="td_rainfall_data">
<td>Cumulus&nbsp;Version&nbsp;(Build)</td>
<td>v1.9.4&nbsp;(1079)</td>
</tr>
<tr class="td_rainfall_data">
<td>Realtime&nbsp;Update&nbsp;Interval </td>
<td>8 seconds</td>
</tr>
<tr class="td_rainfall_data">
<td>Website&nbsp;Update&nbsp;Interval </td>
<td>5 minutes</td>
</tr>
<tr class="td_rainfall_data">
<td>Last&nbsp;Update&nbsp;Time </td>
<td>31/05/2013 23:30:02</td>
</tr>
<tr class="td_rainfall_data">
<td>Log&nbsp;Rollover&nbsp;Time </td>
<td>midnight</td>
</tr>
<tr>
<td colspan="2" class="tableseparator_wind">Davis Hardware</td>
</tr>
<tr class="td_wind_data">
<td>Total number of data packets received</td>
<td>2882</td>
</tr>
<tr class="td_wind_data">
<td>Number of missed data packets</td>
<td>112</td>
</tr>
<tr class="td_wind_data">
<td>Percentage of good packets received</td>
<td><script>
var tot = 2882 === 0 ? 1 : 2882;
document.write(((tot / (tot + 112)) * 100).toFixed(1) + '%');
</script>
<noscript>n/a</noscript></td>
</tr>
<tr class="td_wind_data">
<td>Number of times the console resynchronised with the transmitter</td>
<td>0</td>
</tr>
<tr class="td_wind_data">
<td>Longest streak of consecutive packets received</td>
<td>152</td>
</tr>
<tr class="td_wind_data">
<td>Number of packets received with CRC errors</td>
<td>70</td>
</tr>
<tr class="td_wind_data">
<td>The console firmware version</td>
<td>3.12</td>
</tr>
<tr class="td_wind_data">
<td>Console battery condition</td>
<td>4.80v</td>
</tr>
<tr class="td_wind_data">
<td>ISS battery condition</td>
<td>ok</td>
</tr>
<td colspan="2" class="tableseparator_pressure">Station Info</td>
</tr>
<tr class="td_pressure_data">
<td>Station&nbsp;Type</td>
<td>Davis Vantage Pro2</td>
</tr>
<tr class="td_pressure_data">
<td>Station&nbsp;Latitude</td>
<td>N&nbsp;53&deg;&nbsp;19'&nbsp;32"</td>
</tr>
<tr class="td_pressure_data">
<td>Station&nbsp;Longitude</td>
<td>W&nbsp;02&deg;&nbsp;14'&nbsp;34"</td>
</tr>
<tr class="td_pressure_data">
<td>Station&nbsp;Altitude</td>
<td>70&nbsp;m</td>
</tr>
<tr>
<td colspan="2" class="tableseparator_pressure">System Info</td>
</tr>
<tr class="td_pressure_data">
<td>OS&nbsp;Version</td>
<td>Windows XP Service Pack 3 build 2600</td>
</tr>
<tr class="td_pressure_data">
<td>CPU</td>
<td>Intel(R) Pentium(R) M processor 1.60GHz&nbsp;(1&nbsp;cores)</td>
</tr>
<tr class="td_pressure_data">
<td>Memory&nbsp;Status</td>
<td>227/766 MB (free/total)</td>
</tr>
<tr class="td_pressure_data">
<td>Allocated&nbsp;Memory&nbsp;to&nbsp;Cumulus</td>
<td>32.38 MB</td>
</tr>
<tr class="td_pressure_data">
<td>Disk&nbsp;Remaining</td>
<td>11.95 GB</td>
</tr>
<tr class="td_pressure_data">
<td>Cumulus&nbsp;Uptime</td>
<td>2 hours 23 minutes</td>
</tr>
<tr class="td_pressure_data">
<td>Server&nbsp;Uptime</td>
<td>12 days 23 hours</td>
</tr>
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="padding-bottom: 10px;">
<tbody>
<tr>
<td class="td_navigation_bar">
:<a href="/index.htm" title="Current conditions">now</a>:<wbr>:<a href="/gauges-ss.htm" title="Realtime gauges">gauges</a>:<wbr>:<a href="/today.htm" title="Todays & yesterdays highs & lows">today/yesterday</a>:<wbr>:<a href="/monthYear.htm" title="This months/years highs & lows">month/year</a>:<wbr>:<a href="/record.htm" title="All time records">records</a>:<wbr>:<a href="/realtime.htm" title="Realtime gadget">realtime</a>:<wbr>:<a href="/reports.php" title="NOAA Type Reports">reports</a>:<wbr>:<a href="/highcharts/recentGraphs.htm" title="Recent trend graphs">recent</a>:<wbr>:<a href="/highcharts/historicGraphs.htm" title="Historic data graphs">historic</a>:<wbr>:<a href="monthlyrecord.htm" title="Records Month by Month">monthly&nbsp;records</a>:<wbr>:<a href="/datasummary.php" title="Data summary tables">data&nbsp;summary</a>:<wbr>:<a href="/forecast.htm" title="3 day Astronomy forecast">forecast</a>:<wbr>:<a href="/mobile/index.htm" title="Mobile friendly page">mobile</a>:<wbr>:<a href="http://www.wilmslowastro.com" title="My astro pages">Wilmslow&nbsp;Astro</a>:<wbr>:<a href="/systeminfo.htm" title="VP2 Info">System&nbsp;Info</a>:
</td>
</tr>
</tbody>
</table>
<p class="credits">
Page updated 31/05/2013 23:30:02<br />
powered by <a href="http://sandaysoft.com/products/cumulus" target="_blank">Cumulus</a> v1.9.4 (1079)
</p>
<script>
window.onload = function () {
var curImg = new Image();
curImg.src = "http://cumulussites.net/button.php?u=mcrossley";
}
</script>
<noscript>
<img src="http://cumulussites.net/button.php?u=mcrossley" />
</noscript>

Mike

Re: system status page setup

Posted: Fri 31 May 2013 11:38 pm
by beteljuice
That is a 'processed' page - you need the Template file with the <#webtags> in it.

BTW, when posting code could you please drop in the [ code ] [ /code ] tags.

Re: system status page setup

Posted: Fri 31 May 2013 11:59 pm
by Michael_Wright
sorry still getting use to this forum will rember next time anway how can I get a copy of the webtags and where do I put it

Mike

Re: system status page setup

Posted: Sat 01 Jun 2013 12:25 am
by beteljuice
This bit at the bottom would not apply:

Code: Select all

<script>
window.onload = function () {
var curImg = new Image();
curImg.src = "http://cumulussites.net/button.php?u=mcrossley";
}
</script>
<noscript>
<img src="http://cumulussites.net/button.php?u=mcrossley" />
</noscript>
It also tells us you 'lifted' Marks page :lol:

Ask him nicely and he might pass on the template code ;)

Re: system status page setup

Posted: Sat 01 Jun 2013 4:29 pm
by mcrossley
Here's the template, I have removed my custom stuff, but I have left in the Davis fields in case anyone else wants to use it. You will want to delete those as you have a Fine Offset.

Re: system status page setup

Posted: Sat 01 Jun 2013 8:30 pm
by PaulMy
Thanks Mark, I have added it

Paul

Re: system status page setup

Posted: Sun 02 Jun 2013 10:07 am
by Michael_Wright
mcrossley wrote:Here's the template, I have removed my custom stuff, but I have left in the Davis fields in case anyone else wants to use it. You will want to delete those as you have a Fine Offset.
Thankyou Mark for the template i'll make sure I will give you some credit on my website

Regards
Mike

Re: system status page setup

Posted: Sun 02 Jun 2013 10:33 am
by Michael_Wright
Hi all I getting the code in red indreamweaver could some one help me out to get it working. cause I have a fineoffset I have deleted the davis code ???

Code: Select all

<td><script>document.write(<#DataStopped>==1 ? "!! Data Stopped !!" : "Data OK")</script><noscript><#DataStopped></noscript></td>

Re: system status page setup

Posted: Sun 02 Jun 2013 10:55 am
by mcrossley
Hi Michael, the code is fine, Dreamweaver is probably complaining because of the Cumulus web tags which are not valid JavaScript - but once the page has been processed by Cumulus the script will work.

Re: system status page setup

Posted: Sun 02 Jun 2013 11:08 am
by Michael_Wright
do I need to put it in cumulus file

Re: system status page setup

Posted: Sun 02 Jun 2013 11:41 am
by Michael_Wright
Thanks Mark got it working I fig it out so thankyou for the help guys http://www.wildweather.fhost.com.au/systeminfoT.htm just have to delete the davis script out regards MIke