Negative: "A lot of settings" The output is cached, so you have to learn to clear the cache when testing a change in your settings.
Hi Wim, maybe this is a silly question, since there is a cache when I make any changes to the script I should delete the cache folder and do
https://www.meteoensevilla.es/wx_lvn_wxsimD.php?force=wxsim#
I can see some changes in the translations by doing that, but not in other changes
What is the correct way? Thanks
1. Changes to your general settings in _metric_settings.php (or _ca_settings.php or _us_settings.php).
Also the settings from the Saratoga-template are used and replace some settings in the forecast settings.
2. Changes for the translations in the files in the lang/ folder.
After saving a modified script, the changes will be visible as soon as there is new data for the forecast and if the cache is invalid.
3. Changes for the forecast itself, f.i. use UV, sequence of parts, which parts to use or not use.
For WXSIM there are multiple forecast scripts already customised but every aettings is adaptable also.
Example:
. . /wsfct4/wsFctWxsimDPage.php displays all available data
. . /wsfct4/wsFctWxsimDGRAPH.php only displays the graphs only
. . /wsfct4/wsFctWxsimPIcons.php only displays the icons from the plaintext.txt file
If you modify wsFctWxsimDPage those changes are only used when you run wsFctWxsimDPage.
The other WXSIM scriupts still have their original settings.
Important:
A common mistake is changing a setting but leaving the original setting as is.
F.i. One do not want the icons, and selected
'not' by removing the
# on the first position of the line
But not forgot to set the third line comment.
If you forget that, the icons are still displayed.
#-----------------------------------------------
# the row of icons / day part
$ws_wxsimP_icons = 'not'; # not used
#$ws_wxsimP_icons = 'sep'; # displayed separately
$ws_wxsimP_icons = 'tabs'; # used but combined with others into tabs
Hope this helps.
After saving a modified script, the changes you made there are visible after new data arrives and the cache is invalid.
Therefor always use ?force=wxsim after the URL if you want to reload the WXSIM data.
You can also delete the contents inside the cache/ folder.
Deleting the cache folder itself is not a good idea. That folder is always used, maybe by an other visitor.
--------------------------------
If something is not working as expected, please post the URL to the script and what changes you made are not visible.
Wim