JESUS HEREDERO wrote:The format cloudbase.php test works well in all 1 .. 5
Jesus, I presume you are writing about the command line 'test=' with values from 1 to 5, such as:
Code: Select all
http//www.mysite.com/cloud-base.php?test=1&html=1
It uses different fixed weather data to produce different images for testing purposes...
JESUS HEREDERO wrote:But two questions, if you do not need to use realtime.txt METAR conditions, Cumulus falsifies or not used.
Jesus, the 'cloudbase' script is designed to use the Cumulus 'realtime.txt' data file (or the Weather Display 'clientraw.txt' data file) which is updated often (about every 5 seconds). The 'cloudbase' script also uses the 'CUtags.php' (webtag file) if it is available to get additional variables.
I have tried to make 'cloudbase.php' a 'self-standing' script, meaning that once you have made basic setting modifications to the script (such as weather software to use, the latitude/longitude/timezone, the station elevation, and the correct paths to the required files) the script only needs the data file (such as 'realtime.txt' for Cumulus) to produce the image.
If the 'Settings.php' and 'Settings-weather.php' templates are in the same directory as the script (by default), then, some of the basic setting will be read/taken from those files and replace the default setting of the 'cloudbase.php' script.
If the webtag template 'CUtags.php' (for Cumulus) is in the same directory as the script (by default), then, some additional variables will be read/taken from that file and can/could/will replace the value of some of the variables being processed by the 'cloudbase.php' script.
But, as I indicated above, neither the 'Settings.php/Settings-weather.php' templates nor the 'CUtags.php' template is needed for the operation of the 'cloudbase.php' script - it only needs the 'realtime.txt' data file.
As a test example, I have temporarily installed another copy of the 'cloudbase.php' script, in a directory by itself, with no other file - the only modification I made to the script was to add the complete (relative) path to the 'realtime.txt' data file - and I get <link removed> this cloudbase image (test mode).
JESUS HEREDERO wrote:Since I am not good at PHP script is required for introduction in the ajax-dashboard.php.
Jesus, some 'major' modification must first be made to the 'ajax-dashboard.php' script to position the '100*200' image produced by the 'cloudbase.php' script. Once things have been moved around, adding the image produced by the script is as simple as adding an image on a page - the code to add the image produced by 'cloudbase' is:
<link removed>