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
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
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
Moderator: daj
- 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
Yes, see the 'format' parameter in the help for the web tags.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
I'm not familiar with this technique; hopefully someone else can help.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.
Steve
- 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
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])
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])
......................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
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
cheers
sorry about this but would the code look something like this
<#LastRainTipISO>format="dd/mmm/yy">
a bit confused many thanks again
- 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
<#LastRainTipISO format="dd/mmm/yy"> (note the syntax) would give you (e.g.) 31/Jan/12dezzeer wrote:<#LastRainTipISO>format="dd/mmm/yy">
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
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 Last Hour</td>
<td><span id="rhour"></span> <#rainunit></td>
<td>Last rainfall</td>
<td><#LastRainTipISO format="hh:mm 'on' dd mmmm"><td>
</tr>
thanks again Darron
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 Last Hour</td>
<td><span id="rhour"></span> <#rainunit></td>
<td>Last rainfall</td>
<td><#LastRainTipISO format="hh:mm 'on' dd mmmm"><td>
</tr>
thanks again Darron
- 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
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>
<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
thanks steve once again must look more closely next time.
cheers Darron
cheers Darron