Page 1 of 1

Strange figure in "This month"

Posted: Thu 24 Jan 2013 3:52 pm
by abarnett1934
My weather station melrosecrescentweather.co.uk is working really well but in "This month", between This month's highs and lows
and the banner heading Temperature and Humidity there appears the figure 0 in the centre. I cannot find it in any of the T files, so how do I get rid of it. It does not appear in This Years and the textappears to be OK.

Any ideas?
Arthur

Re: Strange figure in "This month"

Posted: Thu 24 Jan 2013 3:59 pm
by steve
You have some kind of corruption; your 'this month' page currently looks like this:
2013-01-24 15_57_41-melrosecrescentweather.co.uk_thismonth.htm.png
It could be that the template file is corrupted, or perhaps it was an ftp problem. I'll look again after your next update in a couple of minutes.

Re: Strange figure in "This month"

Posted: Thu 24 Jan 2013 4:06 pm
by steve
It's looking OK now, other than that spurious '0'.

It looks like you've edited the template to add this month's sunshine hours, and there's a mistake in the html:

Code: Select all

<tr>
   <td colspan="4" class="tableseparator_solar_data">Solar Data</td>
 </tr>    
       <tr class="td_solar_data">
       <td>Total&nbsp;hours&nbsp;of&nbsp;Sunshine</td>
      <td>64.3</td>
0</td>
      <td>&nbsp;</td>
    </tr>

The "0</td>" is spurious; that's where that "0" is coming from.

Re: Strange figure in "This month"

Posted: Thu 24 Jan 2013 4:16 pm
by abarnett1934
Dear Steve,
Problem solved, my old fingers caused me to hit the ) I suppose. You are brilliant!
I'm now working out how to get the monthly and yearly totals of Sunshine hours from the "View totals."
Again my thanks, donation on the way.
Best wishes,
Arthur

Re: Strange figure in "This month"

Posted: Thu 24 Jan 2013 4:23 pm
by steve
abarnett1934 wrote:I'm now working out how to get the monthly and yearly totals of Sunshine hours from the "View totals."
I did wonder how you were getting the monthly total, presumably you just 'hard code' the actual figure into the template? There isn't a web tag because Cumulus doesn't maintain a count of the total, currently. The 'This month' screen in Cumulus calculates the total by scanning dayfile.txt, so it's not practical to do that for a web tag. I can't think of any way you could currently get the figure from Cumulus directly to put on a web page.

Re: Strange figure in "This month"

Posted: Thu 24 Jan 2013 4:28 pm
by abarnett1934
Dear Steve,

Yes I do just hard code it in. Keeps me out of mischief.
Donation sent.
Best wishes,
Arthur

Re: Strange figure in "This month"

Posted: Tue 05 Mar 2013 9:22 pm
by aznetcowboy
Steve,

Just where do you find this code? For Arizona you'd expect lots of sunshine. However it has not been all that good recently, but 0 hours is really inaccurate. Or is it because my PWS doesn't support the sunshine? I don't see where I have it selected to send that information onto the website, so that is also a question.

Tom

Re: Strange figure in "This month"

Posted: Tue 05 Mar 2013 9:31 pm
by steve
If your weather station doesn't have a solar sensor, then Cumulus can't calculate sunshine hours, and if the template you're using has it on it, you probably want to remove it. The standard Cumulus templates have instructions in them in comments for removing the solar data.

Re: Strange figure in "This month"

Posted: Tue 05 Mar 2013 9:41 pm
by aznetcowboy
Thanks Steve, I will start the hunt soon. Not right now, but before the day is over. ;)