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

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1525
    • 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 PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7630
  • 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: 1525
    • 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 PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline ugo71

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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1525
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #7 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
Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline weatherola

  • Member
  • *
  • Posts: 19
Re: Support of the "Leuven" Forecast scripts
« Reply #8 on: January 27, 2020, 12:45:22 PM »
Wonderful work on this Wim. And, thanks for your support on the Weather34 templates, too.

The one question I have is related to the DarkSky forecasts when used within Ken's Saratoga templates. I've followed your setup instructions and it seems to be working fine, with the exception of template width issue (looking forward to responsive templates for everything) but under the forecast header appears..."Forecast data created at Monday Jan 27 2020 - 9:26am For Station Xetc, etc." I get my Lat/Long location added  on. I really don't want the GPS location of my station shown. Is there something wrong with the way I've set this up, or is there a simple way to turn this off or comment it out?

Thanks

Tim


Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1525
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #9 on: January 27, 2020, 01:14:20 PM »
Wonderful work on this Wim. And, thanks for your support on the Weather34 templates, too.

The one question I have is related to the DarkSky forecasts when used within Ken's Saratoga templates. I've followed your setup instructions and it seems to be working fine, with the exception of template width issue (looking forward to responsive templates for everything) but under the forecast header appears..."Forecast data created at Monday Jan 27 2020 - 9:26am For Station Xetc, etc." I get my Lat/Long location added  on. I really don't want the GPS location of my station shown. Is there something wrong with the way I've set this up, or is there a simple way to turn this off or comment it out?

Thanks

Tim
i am on vacation with insufficient internet. There is a setting to switch off  testing/debug and that will also remove the lat-Lon numerals.

I will be back Feb 1 and will check this out

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

Offline weatherola

  • Member
  • *
  • Posts: 19
Re: Support of the "Leuven" Forecast scripts
« Reply #10 on: January 29, 2020, 01:24:59 PM »
Thanks Wim. I might be looking in the wrong place. Haven't managed to turn off the testing switch, so still seeing lat/lon.

Tim

weatherola.com

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1525
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #11 on: February 01, 2020, 12:03:31 PM »
Thanks Wim. I might be looking in the wrong place. Haven't managed to turn off the testing switch, so still seeing lat/lon.
Tim
weatherola.com
The settings files,  such  as _metric_settings.php contain the setting to switch all errors (and other debug code) off when you are finished testing.
Set $ws_errors to false and the string such as "Forecast data created at Saturday 01 February 2020 - 17:55 For: 51.904,5.69" will not be shown.
If you later on doubt if there is "a problem / error" simply add ?debug or &debug to your URL and the date/time/lat/lon will be shown with  all other "messages"

Succes, Wim
Code: [Select]
#-----------------------------------------------
#            for ALL websites using metric units

#-----------------------------------------------
# # #  Here you have to make the changes   # # #
# # #       for stand-alone use            # # #
#-----------------------------------------------
#                       error messages on or off
#    always set to false for production versions
#
$ws_errors      = false; # false when ready testing     
#-----------------------------------------------
Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline weatherola

  • Member
  • *
  • Posts: 19
Re: Support of the "Leuven" Forecast scripts
« Reply #12 on: February 01, 2020, 02:13:16 PM »
Thanks Wim for clarifying the location for the switch. Unfortunately, setting the switch to "false" still leaves me with the string showing. I am using the _us settings and changed it there as you suggested. I would think that would have removed it, but alas, no. All is the same. If you'd like to have a look, feel free to visit weatherola.com. Sorry to be such a pest.

Tim

Offline weatherola

  • Member
  • *
  • Posts: 19
Re: Support of the "Leuven" Forecast scripts
« Reply #13 on: February 02, 2020, 12:05:07 AM »
Wim,

The switch seems to be working, now. Though I tried it on a couple of computers earlier, the debug code is no longer visible and switched off. Caching, I assume. All better now.

Thanks again for your help, Wim.

« Last Edit: February 02, 2020, 12:07:32 AM by weatherola »

Offline ctccbc

  • Senior Contributor
  • ****
  • Posts: 254
  • Acurite 01035, Weather Display
    • Chris Collins Morehead City, NC Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #14 on: February 13, 2020, 11:38:56 AM »
I posted this question to the wrong forum earlier.

I'm trying to run the Wunderground colored table history script. When I run the script, I get this error:

ERROR: no data for http://change_to_your-site_in_wsReports1part.php/WXDailyHistory.php?ID=KNCMOREH2&month=01&day=01&year=2016&format=1&graphspan=year

I have been running Weather Underground for my site KNCMOREH2 for several years now.

Any help is appreciated,
Chris

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1525
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #15 on: February 13, 2020, 12:27:46 PM »
I posted this question to the wrong forum earlier.

I'm trying to run the Wunderground colored table history script. When I run the script, I get this error:

ERROR: no data for http://change_to_your-site_in_wsReports1part.php/WXDailyHistory.php?ID=KNCMOREH2&month=01&day=01&year=2016&format=1&graphspan=year

I have been running Weather Underground for my site KNCMOREH2 for several years now.

Any help is appreciated,
Chris

Please be specific.
Your last post https://www.weather-watch.com/smf/index.php/topic,68752.msg555633.html#msg555633
=> is about a version 4 forecast script wsfct4/wsIncWuCreate.php 

Now you are posting in the forecast topic about  the coloured table script

The general support page with all links for all Leuven scripts  is at: https://support.leuven-template.eu/
For the script you are now talking about the support topic is:
https://www.wxforum.net/index.php?topic=36473.msg374472#msg374472

This readme describing how to install the MITM scripts is included in the download and should be in the wsreports folder on your server also.  https://www.weerstation-herent.be/wsreports/WU_CSV_problems_readme.pdf

But if you post in the forum without a link to the start-page of the script,  nobody can help you as, AFAIK, none of the visitors on this forum is clairvoyant.

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

Offline plex

  • Senior Member
  • **
  • Posts: 98
Re: Support of the "Leuven" Forecast scripts
« Reply #16 on: February 16, 2020, 01:37:49 AM »
Hello weather enthusiasts and Leuven users

After spending time with other templates, I decided to do a fresh Leuven installation, because itís still a fantastic template - I really like how customizable it is. So thanks to Wim for keeping it alive.

However I need some help, because Iím struggling with some errors while debugging.

Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186

Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186

Notice: Undefined index: weatherDescDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 189

Thanks in advance and happy windy Sunday




Sent from my iPad using Tapatalk
« Last Edit: February 16, 2020, 03:28:00 AM by plex »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1525
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #17 on: February 16, 2020, 03:10:28 AM »
Hello weather enthusiasts and Leuven users
After spending time with other templates, I decided to do a fresh Leuven installation, because itís still a fantastic template - I really like how customizable it is. So thanks to Win for keeping it alive.
However I need some help, because Iím struggling with some errors while debugging.
Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186
Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186
Notice: Undefined index: weatherDescDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 189
Thanks in advance and happy windy Sunday
Sent from my iPad using Tapatalk

The link to the page: https://www.vejrstationen.dk/weather28/index.php?p=ws_metno_page&lang=en

Thanks for bringing these "notices", not "errors"  to my attention. I knew there were some changes scheduled in the 1.9 API.
I do not get these notices myself, but it seems that the time is right to start debugging.
I will use your settings for that "Data for latitude=55.899269 - longitude= 8.516578"

@ALL When switching debug to false in your settings, the notices will not be shown, nor appear in in the logs.
These are not "errors", it are "notices" to the script author that the scripts need to be enhanced.
When in  debug mode the scripts print all possible messages "notice", "strict",  "deprecated",  "warning", "error" and "fatal"

Wim
« Last Edit: February 16, 2020, 03:25:46 AM by wvdkuil »
Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline plex

  • Senior Member
  • **
  • Posts: 98
Re: Support of the "Leuven" Forecast scripts
« Reply #18 on: February 16, 2020, 03:24:21 AM »
Hello weather enthusiasts and Leuven users
After spending time with other templates, I decided to do a fresh Leuven installation, because itís still a fantastic template - I really like how customizable it is. So thanks to Win for keeping it alive.
However I need some help, because Iím struggling with some errors while debugging.
Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186
Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186
Notice: Undefined index: weatherDescDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 189
Thanks in advance and happy windy Sunday
Sent from my iPad using Tapatalk

The link to the page: https://www.vejrstationen.dk/weather28/index.php?p=ws_metno_page&lang=en

Thanks for bringing these "notices", not "errors"  to my attention. I knew there were some changes scheduled in the 1.9 API.
I do not get these notices myself, but it seems that the time is right to start debugging.
I will use your settings for that "Data for latitude=55.899269 - longitude= 8.516578"

@ALL When switching debug to false in your settings, the notices will not be shown, nor appear in in the logs.
These are not "errors", it are "notices" to the script author that the scripts need to be enhanced.
When in  debug mode the scripts print all possible messages "notice", 'warning", "error" and "fatal"

Wim

Thanks for clearing this out Wim [tup]

Iím ignoring the message then, and moving on to production.






Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1525
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #19 on: February 16, 2020, 04:55:02 AM »
@ALL When switching debug to false in your settings, the notices will not be shown, nor appear in in the logs.
. . . shortened . . .
Wim
Thanks for clearing this out Wim [tup]
Iím ignoring the message then, and moving on to production.

The last hourly forecast seems "incomplete", but not in all cases.
I added some code to use the icon and description from the 6-hour forecast when there is no corresponding hourly data.

Could you ,please use this version for a few days?
You can always check if there are errors by adding &debug to the url

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

 

anything