Re: Default Cumulus web page working in PHP using realtime.t
Posted: Wed 09 Feb 2011 10:36 am
Just a little tip here! Davids existing script parses the realtime.txt file and splits the data when it finds a space. A lot of the extra webtags available for use have spaces in (i.e. "Rising Rapidly"). So the script would treat this as two tags, and sometimes one if it was "Steady" for example, therefore resulting in unpredictable data positions.daj wrote:You don't need to use the default realtime.txt file, you could build your own using webtags or create a second one. Examplefractonimbus wrote:And also (3) the Last Rainfall data, which is not part of the realtime.txt. Is there a way to get Cumulus to add parameters to realtime.txt, or to some small text file to upload at the same time?
Ideally the dawn dusk, sun and moon etc data would be nice to include, too, but I may have to let the regular upload process do that (which is what I did with the PHP page).
DN
realtime-extras.txt
<#sunrise> <#sunset> <#dawn> <#dusk>
Get Cumulus to process this file in realtime and it will upload too. Your code can then parse this additional file for the extra data
I've overcome this by creating the extra realtime file and placed a ~ (tilda) after each webtag like this:
Code: Select all
<#temptrendtext>~
<#presstrend>~
<#dawn>~
<#dusk>~
<#daylightlength format="h'hrs' n'min'">~
<#sunrise>~
<#sunset>~
<#daylength format="h'hrs' n'min'">~
<#moonrise>~ ... and so on