Background
I have switched all my pages to be PHP processed now.
I have the dayfile.txt being put into MySQL daily just after it is updated at midnight.
The realtime.txt is being archived into a 'rolling' MySQL table at a one minute sampling period.
The monthly log files are dumped into a MySQL table daily - but currently I do do not make any use of this data.
Random thoughts
Minimising the data transfer from Cumulus to the web site is probably a good thing.
Cumulus has it's 'own' PHP variables file, and the popular Saratoga templates has another.
The one problem with both these solutions is that they use a single file, so a comprise on the update time has to be accepted. Currently they 'normally' update at the Cumulus web update interval (5-20 minutes for most people), but they contain some data that only changes daily, some that changes over a 5-10 minute time scale, and some that changes in real-time.
That says to me that really there should be three PHP variable files, one for each type of data, updating at appropriate intervals. Any PHP script then pulls in which files it needs to complete the task in hand. There may or may not be some overlap in the variables in the real-time and current files, depending on how efficient it is to include two files over duplicating the data (harking back to my DB days long ago I am averse to duplication unless there is a obvious performance benefit).
Then there is the question of the format of the data files. Structure as PHP code, or bare 'csv' text, or use something like JSON or XML (no!). The advantage of PHP code is that it is efficient for PHP pages, but using something like JSON allows the same files to easily be used for client side browser code - I like that efficient, no separate files required for each new client side do-dah that comes along.
Or, are the data files just used to populate MySQL tables, and PHP and client requests pull the data from there?
I'm sure there are no 'right' answers but I'd be interested in informed views.
Asides
I was going to standardise on the Saratoga PHP data file format, but I don't use the templates and I then thought I need the 'full' files plus a real-time sub-set of the variables in another file. So if I was breaking away from the 'standard' why not create three JSON format data files?
The next version of the SS gauges will probably have the option to move away from the realtimegaugesT.txt file, I am looking to implement an optional PHP script to generate the required JSON data on the fly for those that already have the data sat in PHP variables anyway! - Like me
Whacky thought
Another issue is that all the 'weather programs' use different names for the same variables, what is really required is a 'standard' JSON data format and naming convention that all the developers started using. Imagine that, templated solutions you could use across platforms with minimal change! Pie in the sky.