Page 1 of 1
anyone got realtime.txt file in webtags?
Posted: Sun 15 May 2011 2:45 pm
by daj
Has anyone got the realtime.txt file equivalent using the PHP webtags? (or even using the Cumulus webtags)
(I could do one but I was just being lazy and seeing if anyone had one already)
I want to use the realtime.txt file but I only want it every 5 minutes! I could as cumulus to only update realtime every 300 seconds but as far as I know that also means the realtime task in Cumulus keeps the FTP connection open constantly, which I want to avoid.
Re: anyone got realtime.txt file in webtags?
Posted: Sun 15 May 2011 3:25 pm
by steve
daj wrote:Has anyone got the realtime.txt file equivalent using the PHP webtags? (or even using the Cumulus webtags)
(I could do one but I was just being lazy and seeing if anyone had one already)
The description of the realtime.txt file in the wiki has the equivalent web tags listed, so you could do some sort of edit on that, if no-one has done it already.
the realtime task in Cumulus keeps the FTP connection open constantly, which I want to avoid.
You can use RTdisconnectcount in cumulus.ini to make it disconnect every N uploads. Set it to 1 and it would disconnect every time.
Re: anyone got realtime.txt file in webtags?
Posted: Sun 15 May 2011 3:32 pm
by daj
steve wrote:You can use RTdisconnectcount in cumulus.ini to make it disconnect every N uploads. Set it to 1 and it would disconnect every time.
Thant sounds like just what I need. Thanks
Re: anyone got realtime.txt file in webtags?
Posted: Sun 15 May 2011 8:01 pm
by mcrossley
I thought I'd knock a tag version of realtime.txt for the wiki, however it turns out that it cannot be done - well not an exact match.
The attached file has three lines:
1 - the tags
2 - a genuine realtime.txt
3 - the equivalent tag generated realtime.txt
As you can see, there are some differences.
Re: anyone got realtime.txt file in webtags?
Posted: Sun 15 May 2011 8:11 pm
by steve
I think the only differences are that <#beaufort> puts an "F" on the front, and <#tempunit> puts "°" on the front. Yes? I could put a parameter on those (like the date/time ones), thus:
<#beaufort prefix=no> (default is yes for backwards compatibility)
<#tempunit prefix=no> (ditto)
Re: anyone got realtime.txt file in webtags?
Posted: Sun 15 May 2011 8:26 pm
by mcrossley
Yep, those are the only two differences I can see - and the cloudbase unit is incorporated into <#cloudbase> tag. Though this does not have any net effect.
Perhaps add a "suffix=no" parameter (with yes being default) to cloudbase, and add a <#cloudbaseunit> tag for consistency. I already have to strip the cloudbase suffix in javascript on my web pages.
I hate to add work for you though Steve!