Author Topic: Support of the "Leuven" Forecast scripts  (Read 641 times)

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1397
    • My PWS at Leuven Belgium Europe
Support of the "Leuven" Forecast scripts
« 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 :
  • WXSIM-plaintext, WXSIM-lastret/latest.csv
  • Met.no
  • Yr.no
  • Darksky.net
  • UV from KNMI/Temnis
  • Environment Canada + weather warnings
  • NOAA/NWS plaintext type + weather warnings
  • NOAA/NWS SOAP detailed data
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
  • Always include the URL (=correct link)  to the script on your website
  • Check the demo scripts to see if the problem exist there also. Sometimes the forecast servers are the cause of the problem
  • Also states all other actions you already did to pinpoint the cause of your problems.
Checking those things also helps to reduce the time for answering your questions.

Wim
Support for Leuven-Template & Scripts  at this forum
Support for the HWS-template for WD a.o.  http://wd34.weather-template.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7262
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Support of the "Leuven" Forecast scripts
« Reply #1 on: March 28, 2019, 05:12:22 PM »
 =D>  =D> Outstanding, Wim -- thanks for sharing these!
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline ernstadolfbittkau

  • Member
  • *
  • Posts: 1
    • Die Bittkau' aus Magdeburg Ottersleben
Re: Support of the "Leuven" Forecast scripts
« Reply #2 on: April 02, 2019, 06:45:04 AM »
Danke Wim Super [tup]

Offline philipgm

  • Member
  • *
  • Posts: 1
    • Picton Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #3 on: April 23, 2019, 09:26:11 PM »
Wow! What a great script. Excellent. [tup]

Offline meteosa

  • Member
  • *
  • Posts: 1
Re: Support of the "Leuven" Forecast scripts
« Reply #4 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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1397
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #5 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
  • In the wsfct4/lang/ folder copy one of the current language files f.i. fctlanguage-en.txt and change the name to  fctlanguage-it.txt
  • DO NOT COPY any other language file you may have, use only a copy of an existing file in the lang folder
  • Carefully change all texts at the right to Italian
  • Change the allowed languages around line 250 in your settings file , in this case _metric_settings.php to contain your new language
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
Support for Leuven-Template & Scripts  at this forum
Support for the HWS-template for WD a.o.  http://wd34.weather-template.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php