Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

two questions <#LastRainTipISO> and auto refresh

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
dezzeer
Posts: 35
Joined: Mon 23 May 2011 6:10 am
Weather Station: vantage pro2
Operating System: windows xp
Location: bb2 5jf

two questions <#LastRainTipISO> and auto refresh

Post by dezzeer »

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
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: two questions <#LastRainTipISO> and auto refresh

Post by steve »

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.
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
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: two questions <#LastRainTipISO> and auto refresh

Post by beteljuice »

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 !
dezzeer
Posts: 35
Joined: Mon 23 May 2011 6:10 am
Weather Station: vantage pro2
Operating System: windows xp
Location: bb2 5jf

Re: two questions <#LastRainTipISO> and auto refresh

Post by dezzeer »

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
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: two questions <#LastRainTipISO> and auto refresh

Post by steve »

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
dezzeer
Posts: 35
Joined: Mon 23 May 2011 6:10 am
Weather Station: vantage pro2
Operating System: windows xp
Location: bb2 5jf

Re: two questions <#LastRainTipISO> and auto refresh

Post by dezzeer »

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
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: two questions <#LastRainTipISO> and auto refresh

Post by steve »

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
dezzeer
Posts: 35
Joined: Mon 23 May 2011 6:10 am
Weather Station: vantage pro2
Operating System: windows xp
Location: bb2 5jf

Re: two questions <#LastRainTipISO> and auto refresh

Post by dezzeer »

thanks steve once again must look more closely next time.

cheers Darron
Post Reply