Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 18, 2013 9:53 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  [ 8 posts ] 
Author Message
 Post subject: two questions <#LastRainTipISO> and auto refresh
PostPosted: Tue Jan 31, 2012 12:40 pm 
Offline

Joined: Mon May 23, 2011 6:10 am
Posts: 35
Location: bb2 5jf
Weather Station: vantage pro2
Operating System: windows xp
Hi all question 1 is there away to show the date for rain tip tag as 13:45 on 21 Jan instead of 2012-01-30 06:21
question 2 is i can get all my tags to auto refresh using the <span id tag but cant seem to get the since midnight and last 24hrs.
many thanks Darron


Top
 Profile  
 
 Post subject: Re: two questions <#LastRainTipISO> and auto refresh
PostPosted: Tue Jan 31, 2012 12:45 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17548
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
dezzeer wrote:
Hi all question 1 is there away to show the date for rain tip tag as 13:45 on 21 Jan instead of 2012-01-30 06:21

Yes, see the 'format' parameter in the help for the web tags.
Quote:
question 2 is i can get all my tags to auto refresh using the <span id tag but cant seem to get the since midnight and last 24hrs.

I'm not familiar with this technique; hopefully someone else can help.

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


Top
 Profile  
 
 Post subject: Re: two questions <#LastRainTipISO> and auto refresh
PostPosted: Tue Jan 31, 2012 2:09 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1845
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
You don't give a link to your site nor tell us whose flavour of AJAX code you are using !

If the AJAX code is parsing realtime.txt then there are no entries for (rain) since midnight, or (rain) last 24.

However if your station 'day' begins midnight, then there is rain today entry (#10 or array[9])

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: two questions <#LastRainTipISO> and auto refresh
PostPosted: Tue Jan 31, 2012 3:03 pm 
Offline

Joined: Mon May 23, 2011 6:10 am
Posts: 35
Location: bb2 5jf
Weather Station: vantage pro2
Operating System: windows xp
my website is on http://www.dazmather.co.uk
cheers
sorry about this but would the code look something like this
<#LastRainTipISO>format="dd/mmm/yy">
a bit confused many thanks again


Top
 Profile  
 
 Post subject: Re: two questions <#LastRainTipISO> and auto refresh
PostPosted: Tue Jan 31, 2012 4:08 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17548
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
dezzeer wrote:
<#LastRainTipISO>format="dd/mmm/yy">


<#LastRainTipISO format="dd/mmm/yy"> (note the syntax) would give you (e.g.) 31/Jan/12

If you want "13:45 on 21 Jan" you need

<#LastRainTipISO format="hh:mm 'on' dd mmm">

or

<#LastRainTipISO format="hh:mm 'on' d mmm">

if you don't want a leading zero on single-digit days.

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


Top
 Profile  
 
 Post subject: Re: two questions <#LastRainTipISO> and auto refresh
PostPosted: Wed Feb 01, 2012 11:06 am 
Offline

Joined: Mon May 23, 2011 6:10 am
Posts: 35
Location: bb2 5jf
Weather Station: vantage pro2
Operating System: windows xp
hi steve thanks.
got one small issue it seems to be putting a slightly bigger background colour on the display for the date.
www.dazmather.co.uk

<tr class="td_rainfall_data">
<td>Rainfall&nbsp;Last Hour</td>
<td><span id="rhour"></span>&nbsp;<#rainunit></td>
<td>Last rainfall</td>
<td><#LastRainTipISO format="hh:mm 'on' dd mmmm"><td>
</tr>
thanks again Darron


Top
 Profile  
 
 Post subject: Re: two questions <#LastRainTipISO> and auto refresh
PostPosted: Wed Feb 01, 2012 11:12 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17548
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
There's an error in your html:

<td><#LastRainTipISO format="hh:mm 'on' dd mmmm"><td>

should be

<td><#LastRainTipISO format="hh:mm 'on' dd mmmm"></td>

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


Top
 Profile  
 
 Post subject: Re: two questions <#LastRainTipISO> and auto refresh
PostPosted: Wed Feb 01, 2012 12:12 pm 
Offline

Joined: Mon May 23, 2011 6:10 am
Posts: 35
Location: bb2 5jf
Weather Station: vantage pro2
Operating System: windows xp
thanks steve once again must look more closely next time.

cheers Darron


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


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