Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 18, 2013 3:26 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 59 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 3:42 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1703
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
I think it's because your pages are php, not html.

Looking at your other tags they are preceeded with "id="

I can't test this here but try changing one to this:-

<td class="right_align_indented"> id="LongestDryPeriod" days to id="TLongestDryPeriod"></td>

Good luck!

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 3:47 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
Rob

Can you show us the original record.php file. The one we access on your site has been processed already

Even just show the section with the offending tags

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 3:50 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
yeah, sure mate, this is the entire page below, have just tried what you said above, no different, sorry :-(

<!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="<?php include("title.php");?> weather data" />
<meta name="keywords" content="Cumulus, <#location> weather data, weather, data, weather station" />
<title><?php include("title.php");?> weather</title>
<link href="weatherstyle.css" rel="stylesheet" type="text/css" />
<script src="jquery.js" type="text/javascript"></script>
<script src="realtimeparser.js" type="text/javascript"></script>
</head>

<body>
<!-- START Display fixed menu -->
<?php include("menu.php");?>
<!-- END Display fixed menu -->
<div id="content">
<h1><?php include("title.php");?> weather</h1>
<h2 style="text-align: left; text-transform: none;">&nbsp;Latitude&nbsp;<?php include("latitude.php");?>&nbsp;&nbsp;&nbsp;&nbsp;Longitude&nbsp;<?php include("longitude.php");?>&nbsp;&nbsp;&nbsp;&nbsp;Elevation&nbsp;<?php include("altitude.php");?></h2>
<tr>
<td class="td_rainfall_data" width="33%">New Weather Record</td>
<td class="td_wind_data" id="NewRecordSet"></td>
<td class="td_rainfall_data" width="8%" align="center" id="NewRecord"></td>
</tr>
<p>Records began on <span id="recordsbegandate"></span>. Here are the extremes recorded since then.</p>
<table width="100%" cellpadding="0" cellspacing="0" id="Current_Weather_Records">
<caption>Weather Records</caption>
<tr>
<td colspan="3" class="tableseparator_temp"><span id="TempRecordSet"></span> Temperature & Humidity</td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="HighTempRecordSet"></td>
<td><b>Highest&nbsp;Temperature</td>
<td id="tempH"></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="LowTempRecordSet"></td>
<td><b>Lowest&nbsp;Temperature </td>
<td id="tempL"></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="HighAppTempRecordSet"></td>
<td><b>Highest&nbsp;Apparent&nbsp;Temperature </td>
<td><span id="apptempH"></span> <span id="TapptempH"></span></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="LowAppTempRecordSet"></td>
<td><b>Lowest&nbsp;Apparent&nbsp;Temperature </td>
<td><span id="apptempL"></span> <span id="TapptempL"></span></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="LowWindChillRecordSet"></td>
<td><b>Lowest&nbsp;Wind&nbsp;Chill&nbsp;Temperature</td>
<td id="wchillH"></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="HighMinTempRecordSet"></td>
<td><b>Highest Minimum Temperature</td>
<td id="mintempH"></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="LowMaxTempRecordSet"></td>
<td><b>Lowest Maximum Temperature</td>
<td id="maxtempL"></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="HighDewPointRecordSet"></td>
<td><b>Highest&nbsp;Dew&nbsp;Point</td>
<td><span id="dewpointH"></span> <span id="TdewpointH"></span></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="LowDewPointRecordSet"></td>
<td><b>Lowest&nbsp;Dew&nbsp;Point</td>
<td><span id="dewpointL"></span> <span id="TdewpointL"></span></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="HighHumidityRecordSet"></td>
<td><b>Highest&nbsp;Humidity</td>
<td id="humH"></td>
</tr>
<tr class="td_temperature_data">
<td width="4%" id="LowHumidityRecordSet"></td>
<td><b>Lowest&nbsp;Humidity </td>
<td id="humL"></td>
</tr>
<tr>
<td colspan="3" class="tableseparator_rainfall"><span id="RainRecordSet"></span> Rainfall</td>
</tr>
<tr class="td_rainfall_data">
<td width="4%"></td>
<td><b>Last Rain</td>
<td><span id="LastRainDaysAgo"></span> <span id="LastRainDate"></span></td>
</tr>
<tr class="td_rainfall_data">
<td width="4%" id="HighRainRateRecordSet"></td>
<td><b>Highest&nbsp;Rain&nbsp;Rate</td>
<td id="rrateM"></td>
</tr>
<tr class="td_rainfall_data">
<td width="4%" id="HighHourlyRainRecordSet"></td>
<td><b>Highest&nbsp;Hourly&nbsp;Rainfall</td>
<td id="rfallhH"></td>
</tr>
<tr class="td_rainfall_data">
<td width="4%" id="HighDailyRainRecordSet"></td>
<td><b>Highest&nbsp;Daily&nbsp;Rainfall</td>
<td id="rfallH"></td>
</tr>
<tr class="td_rainfall_data">
<td width="4%" id="HighMonthlyRainRecordSet"></td>
<td><b>Highest&nbsp;Monthly&nbsp;Rainfall</td>
<td id="rfallmH"></td>
</tr>
<tr class="td_temperature_data">
<td width="5%"></td>
<td class="main_table_text_labels"> Longest Dry Period</td>
<td class="right_align_indented"><#LongestDryPeriod> days to <#TLongestDryPeriod></td>
</tr>
<tr class="td_temperature_data">
<td width="5%"></td>
<td class="main_table_text_labels"> Longest Wet Period</td>
<td class="right_align_indented"><#LongestWetPeriod> days to <#TLongestWetPeriod></td>
</tr>

<tr>
<td colspan="3" class="tableseparator_wind"><span id="WindRecordSet"></span> Wind</td>
</tr>
<tr class="td_wind_data">
<td width="4%" id="HighWindGustRecordSet"></td>
<td><b>Highest&nbsp;Wind&nbsp;Gust</td>
<td id="gustM"></td>
</tr>
<tr class="td_wind_data">
<td width="4%" id="HighWindSpeedRecordSet"></td>
<td><b>Highest&nbsp;Wind&nbsp;Speed&nbsp;Average</td>
<td id="wspeedH"></td>
</tr>
<tr>
<td colspan="3" class="tableseparator_pressure"><span id="PressureRecordSet"></span> Pressure</td>
</tr>
<tr class="td_pressure_data">
<td width="4%" id="LowPressureRecordSet"></td>
<td><b>Lowest&nbsp;Pressure</td>
<td id="pressL"></td>
</tr>
<tr class="td_pressure_data">
<td width="4%" id="HighPressureRecordSet"></td>
<td><b>Highest&nbsp;Pressure</td>
<td id="pressH"></td>
</tr>

</tr>
</table>
<p class="credits"><br />
<span id="update"></span><br />
powered by
<a href="http://sandaysoft.com/products/cumulus" target="_blank">Cumulus</a> <span id="version"></span> (<span id="build"></span>)
</p>
</div>
</body>
</html>

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 3:58 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
Ok, I've had a look and you are not processing the file in the normal Cumulus way. In stead you are using Javascript to populate the page with data

Its looks like you (or someone else) has modified a javascript file (originally written by me!) and added a section starting "READ REALTIME EXTRAS FILE". This seems to read an additional file realtimeextras.txt with much more data than the standard realtime file

This realtimeextras.txt file does not seem to contain the new tags for Longest Wet & Dry days so will need them added, and also the Javascript updated to process these tags

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 4:02 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
Ahhh, i thought it was summat like that, yeah Paul has helped me MASSIVELY, I just hate having to rely on people to get me to change things, and Paul has spent loads of time with me, but for some reason some of it just dont sink in!

Paul is away at the moment, i was just trying to sort it and not hassle him again, but I will wait I guess, I shouldn't mess with something i don't understand!

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 4:15 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
If you send me your realtimeextras.txt (the one on you PC that Cumulus would process) I can look at it, and the Javascipt (I can get that from the website).

Once I work through it I will make and explain the changes and send it back, along with an updated javascript file

It does concern me a little if you are processing realtimeextras.txt (size and frequency). realtime is supposed to be a quick snap shot of key data, and not almost every piece of data. Depends how often you are processing the data I guess.

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 4:35 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
sent email to your "findmyinbox" address is that ok?

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 4:42 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1703
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Hi Rob,

Looks like David is well on the way to sorting out your problem. I too would like to use PHP but I need to understand it all first and that won't be quick.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 4:45 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
I guess i should take time to read about it myself, but even then, for some reason it don't sink in!

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 4:51 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1703
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
The simplest PHP example is the banner many of us have in our signatures. I managed to tweak that so if you are interested in learning PHP that might be a good place to start.

You can find out more here. http://cumulus.tnetweather.com/projects/phpggbanner

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 5:04 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
Yeah, i had the banner for a while, but i managed to stuff up some setting on my browser, so i could never see it myself, so i got rid of it

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 5:08 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2501
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
steve wrote:
I would suggest that anyone who doesn't like the way I've implemented this facility should write some javascript (or whatever) to modify the figures to suit themselves (e.g. based on whether it's rained so far today or not).
As I have already done on my 'now' page...

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 5:09 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1703
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
robynfali wrote:
Yeah, i had the banner for a while, but i managed to stuff up some setting on my browser, so i could never see it myself, so i got rid of it


I can't see why a browser would mess it up. Mine is visible in IE7 and Firefox. But you probably have your hands full with your current problem. Might be worth revisiting it when things calm down. It's always handy knowing how to tweak code on your own website. ;)

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 5:17 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17547
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
mcrossley wrote:
As I have already done on my 'now' page...

Yes, I thought you had, which is why I was confident in suggesting it :lol: Presumably your "Consecutive Rain Days (incl. today)" says "...(excl. today)" if it hasn't rained so far today?

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 5:20 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2501
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
doh! I hadn't thought of that...

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 59 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group