WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: wvdkuil on March 28, 2019, 04:27:01 PM

Title: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on March 28, 2019, 04:27:01 PM
All the "Leuven" weather-forecast scripts are in 1 folder and in 1 download. Currently the following forecasts are available :
Index of all demo pages: https://www.weerstation-herent.be/wsfct4/
Download: https://leuven-template.eu/leuven_download2019.php?id=forecasts
Readme: https://www.weerstation-herent.be/wsfct4/readme.html
Known issues: link will be added when needed

Remarks:
Although you will receive all scripts in 1 download, I think it is unwise to use them all.
Most often 1 default forecast and 1 "back-up" forecast is all that is needed.

Positive: "A lot of settings" To adjust what contents you want, what colours a.s.o.
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.
 
These scripts can be used Stand-Alone and in the Saratoga-template.
They could be used in the Leuven-Template also, but they are not supported there! Use at your own risk.

These are very extensive and complex scripts, do not change the scripts themselves.
Change only the settings and the startpages. All as described in the readme.


Support:
When you post questions about the scripts
Checking those things also helps to reduce the time for answering your questions.

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: saratogaWX on March 28, 2019, 05:12:22 PM
 =D>  =D> Outstanding, Wim -- thanks for sharing these!
Title: Re: Support of the "Leuven" Forecast scripts
Post by: ernstadolfbittkau on April 02, 2019, 06:45:04 AM
Danke Wim Super [tup]
Title: Re: Support of the "Leuven" Forecast scripts
Post by: philipgm on April 23, 2019, 09:26:11 PM
Wow! What a great script. Excellent. [tup]
Title: Re: Support of the "Leuven" Forecast scripts
Post by: meteosa on May 17, 2019, 02:12:12 PM
Hello,
I installed your Forecast scripts, but how do I set the Italian language? I put the file in the "lang" folder, set in the php file: lang: "it" but it doesn't translate it for me, why?
Thank you
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on May 17, 2019, 02:49:31 PM
Hello,
I installed your Forecast scripts, but how do I set the Italian language? I put the file in the "lang" folder, set in the php file: lang: "it" but it doesn't translate it for me, why?
Thank you

@ALL  PLEASE ALWAYS INCLUDE THE URL TO YOUR WEBSITE / SCRIPT
As from now, no answers if you do not include the links.

@metosa
I will use the Italian language as example, but it works the same for most western languages
To install 1 extra language, follow these steps
That array to change is below the warnings about knowing what you are doing. Be careful.
Code: [Select]
# ----------------------------------------------
#                              language settings
#-----------------------------------------------
$ws_langs_supported = array ('en', 'nl', 'fr', 'de');
Change to
Code: [Select]
# ----------------------------------------------
#                              language settings
#-----------------------------------------------
$ws_langs_supported = array ('en', 'nl', 'fr', 'de','it');

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: ugo71 on June 15, 2019, 10:15:48 AM
Hi, Wim excellent script thanks.  [tup]
It could be an idea to make a yr.no script (which in my opinion is one of the most reliable) for mobile devices by putting only 3 forecasts on one line then on the line under other 3 forecasts.
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on June 15, 2019, 10:38:13 AM
Hi, Wim excellent script thanks.  [tup]
It could be an idea to make a yr.no script (which in my opinion is one of the most reliable) for mobile devices by putting only 3 forecasts on one line then on the line under other 3 forecasts.
Thanks for the compliment.
I use the scripts myself also for the mobile devices.
The forecast is in a separate page with a normal forecast so users can scroll / move through all info.

Maybe next year i will have time to make a new 'responsive' version also.

Wim