mcrossley wrote: ↑Sat 25 Apr 2020 10:20 am
That is the approach I take, I have three "tag files". A small one updated at realtime interval, the main one at my update interval, and the monthly records file updated daily**
As I said in reply to another of David's posts, so do I, but I have another for "static" web tags. But my set was customised for my purposes (e.g. specific to my Fine Offset), and the set I am testing now is more comprehensive including all possible web tags and a range of output parameters.
As the wiki article on this topic says it is very complicated predicting what other users might want.
water01 wrote: ↑Sat 25 Apr 2020 8:54 am
I have updated the file in the first post to include the array that sfws included
I gave that as an example, the same sort of array can be defined for every 'by month' web tag. I can't understand why you would want to add one only.
water01 wrote: ↑Sat 25 Apr 2020 9:55 am
I personally only upload this at EOD as it typically changes very little and as such it wasn't worth adding to cumuluswebtags.txt which gets uploaded every 15 minutes.
So that is another reason why it seems strange to add just highest temperature array.
Can I also add, for pure PHP files, it is not good practice to add a "?>" to the end of such a file, that is only intended to be included to mark the end of PHP when embedded in a HTML file.
I won't bore you with full technical details, but problems may occur if someone has embedded spaces after where they include your file, or accidentally adds space after that terminator in your file.
Code: Select all
$RecentDewPoint = "<#RecentDewPoint d=1>|<#RecentDewPoint h=1>|<#RecentDewPoint m=1>"; // recent historical data - dew point - one day, one hour and one minute ago
Finally, you might want to explain how people use your $Recentxxxxx variables, I am sure many will struggle with the concept of how to use a string containing 3 values separated by "|". I don't know if you left it like that because that is how you found it in the template you have selected to edit, or you have it like that to match how you use it.