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
Title: Re: Support of the "Leuven" Forecast scripts
Post by: weatherola 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

Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil 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
Title: Re: Support of the "Leuven" Forecast scripts
Post by: weatherola 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
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil 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     
#-----------------------------------------------
Title: Re: Support of the "Leuven" Forecast scripts
Post by: weatherola 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
Title: Re: Support of the "Leuven" Forecast scripts
Post by: weatherola 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.

Title: Re: Support of the "Leuven" Forecast scripts
Post by: ctccbc 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
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil 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
Title: Re: Support of the "Leuven" Forecast scripts
Post by: plex 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
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil 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
Title: Re: Support of the "Leuven" Forecast scripts
Post by: plex 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.





Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil 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
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on August 01, 2020, 06:01:11 AM
Looks like Yrno forecast is also changed.
Not sure if there is already a topic about.
The Leuven support forum is not readable for me anymore.
The xml has changed.
Well something to do I guess.

The yr.no forecasts contain a hidden warning to the script-programmers.
Quote
NB!!! Since we have no other options to contact our users of forecast.xml, we have decided to use this method to get your attention to some major changes with our API
In the first quarter next year, forecast.xml and forecast_hour_by_hour.xml will be discontinued in favour of a newer JSON API.
Vi encourage you already now to switch to the new API.
There are a lot of changes, and you can read all the technical details in our new developer portal https://developer.yr.no

They also show a message to read that warning in the data-fields on some forecasts during the day.
That is their only way to bring this to the script-authors attention, but it looks not nice for the visitors of the websites.

The yr.no script will not be adapted as yr.no data will be replaced with data identical to met.no.
The yrno and metno forecast  will be identical.  You should remove the Yr.no forecast from the menu early 2021.
It is not clear yet, if we can continue to use the yr.no meteogram-image and the full page .pdf.

The met.no script needs will need   
* 1 minor change, the version number in the URL should be changed from 1.9 to 2.0
and
* will remain identical when we add a new "classic" keyword.  Clarification added 2020-08-11 11:40 CEST
I am testing it and the resulting xml seems identical, but I will follow closely if that will change.

DO NOT change to version 2.0 yourself without checking the API documentation. You are on your own with that.
Let me test it first.  The 1.9 version is still the current production metno version.

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: kyomar on August 11, 2020, 01:56:05 AM
Hi Wim,

thanks for the info about the warning concerning the yr.no script - much appreciated. I have just noticed this myself and are now trying to change the script to metno. The scripts have changed quite a bit but managed - thanks to the readme file -  to set it up. Nevertheless I must have made a mistake somewhere as I am not able to get it working ("invalid forecast data retrieved, check the html for errors"). Any ideas what I might have missed? I am a bit confused with point 7. in the stand-alone tab.

Thanks for your time (and this awesome scripts) and best regards,
Markus
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on August 11, 2020, 02:26:11 AM
Hi Wim,

thanks for the info about the warning concerning the yr.no script - much appreciated. I have just noticed this myself and are now trying to change the script to metno. The scripts have changed quite a bit but managed - thanks to the readme file -  to set it up. Nevertheless I must have made a mistake somewhere as I am not able to get it working ("invalid forecast data retrieved, check the html for errors"). Any ideas what I might have missed? I am a bit confused with point 7. in the stand-alone tab.

Thanks for your time (and this awesome scripts) and best regards,
Markus

And I am a bit confused also as i am not clairvoyant.
I even checked your previous posts but i can not find a working link to a leuven-metno script.

Without a link to the script there is nothing i or anyoneelse can do.

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: kyomar on August 11, 2020, 03:02:23 AM
Thanks a lot Wim for your prompt reply. Clairvoyant, I have learned something new :grin: - English is not my mother tongue.

I haven't uploaded the new scripts to my online page, I am just testing locally (xampp). I have attached the three files I have edited: (sorry didn't work with the attachments). How can I attach txt files without cluttering the whole page?
Edit: weird it seems to have worked after all (attachments).
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on August 11, 2020, 05:13:22 AM
. . .Nevertheless I must have made a mistake somewhere as I am not able to get it working ("invalid forecast data retrieved, check the html for errors").
. . .
Well, next time I will not even look and invest my precious spare time if you do not include an accessible link  with your post.

You should have  posted the complete message which appeared before the complete forecast. You gave me the impression that there was no forecast at all.
I copied your two files to the original download and the weather-forecast appeared correctly. See attached screenshot.
But also a clear message, first line with the link, second line to check the html
Code: [Select]
No data was retrieved for http://www.temis.nl/uvradiation/nrt/uvindex.php?lon=137.86&lat=36.7

no forecast data can be retrieved, check the html for errors

The UV part does not come from met.no but from temis.nl
You could have done a lot of  yourself by copying that link that displayed link to your browser yourself and notice it takes about a minute before the website answers.
That is too long for your visitors to wait.  We wait only 4-10 seconds and then try to use the cache, which can be to old to use also.
In that case there is a one-time message every new ( 1/hour approx.) generating of the cached files.
Only if "error messages" is switched on, of course, which you can switched off in line 12 of the settings.

For missing data there is also always a setting
=> line 76 in wsMetnoPage.php, set to false and there will be no error for to old UV cache and a stalled UV-server even with "error messages on".

You also mentioned:
Quote
thanks for the info about the warning concerning the yr.no script - much appreciated.
...
The scripts have changed quite a bit but managed  - thanks to the readme file 

Good work, fine that you "managed", fine that you "appreciate" all the hard work

By the way, the fact that those scripts are donation-ware never changed in the past 6 years.

succes, Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: kyomar on August 11, 2020, 08:59:38 PM
Finally I got it running, thank you so much for your help Wim - outstanding support.
At the end I found the problem. You noted the solution here: "DO NOT change to version 2.0 yourself without checking the API documentation. You are on your own with that. Let me test it first. The 1.9 version is still the current production metno version", which wasn't there when I read that post or didn't see it and therefore of course did the change to 2.0. Reversing it to 1.9 did the trick.

Quote
You should have  posted the complete message which appeared before the complete forecast. You gave me the impression that there was no forecast at all.
I am sorry for the troubles but all I saw was the error message: "invalid forecast data retrieved, check the html for errors".

Anyhow, all is working fine now. Great scripts and amazing support.

Thanks a lot, Markus


Title: Re: Support of the "Leuven" Forecast scripts
Post by: kyomar on August 14, 2020, 09:45:18 PM
Hi Wim,

comparing the output (forecasts) from met.no to yr.no shows that they are quite different. Somehow the forecasts in met.no don't line up with the times (e.g. this morning shows the afternoon forecast and so on). I don't know how to explain it in an understandable language and I have therefore attached a pdf comparing the to forecasts.

I remember that a long time ago when I first came across your scripts I installed the metno scripts and then switched to yrno for that same reason. As the yrno scripts are going to not be continued I have to find out the problem so I can switch to metno in due time.

I have send you a pm with the link to the yrno scripts if needed.

Thank you and have a nice weekend.
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on August 15, 2020, 03:10:24 AM
Hi Wim,

comparing the output (forecasts) from met.no to yr.no shows that they are quite different. Somehow the forecasts in met.no don't line up with the times (e.g. this morning shows the afternoon forecast and so on). I don't know how to explain it in an understandable language and I have therefore attached a pdf comparing the to forecasts.

I remember that a long time ago when I first came across your scripts I installed the metno scripts and then switched to yrno for that same reason. As the yrno scripts are going to not be continued I have to find out the problem so I can switch to metno in due time.

I have send you a pm with the link to the yrno scripts if needed.

Thank you and have a nice weekend.

I am more then willing to investigate.

But without link a website running the original scripts, there is not much I can do.
A screenshot does not explain anything, a script which I can run, settings I can check is what is needed.

Do not change the new metno scripts as you did with your yrno scripts.
There is really no need to  rename all scripts to hakubaprintfull.php  a.s.o.
No need to change any code lines outside the settings.

This makes supporting for me impossible.

Maybe you should change the wording for afternoon / morning a.s.o.
MetNo scripts use  the 6 hour periods  00 06 12 18 UTC.  => morning is from 09-15 for your timezone
Yrno has the first periods adapted to your local timezone, the remaining are also in UTC.  => morning is 06-12  for the first few days.

Also you could try another forecast such as WeatherUnderground.
Otherwise there are multiple fine forecasts available from other sources for your area.
Just a small Google search will help you to find other ones.
Please compare those different forecasts, maybe that gives you a forecast better suited for your goal.

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: kyomar on August 15, 2020, 05:20:34 AM
Thanks Wim for your help - greatly appreciated.

I haven't renamed the metno scripts as it is indeed easier leaving them as is (exception wsFctMetnosmall4 to wsFctMetnoIcons4 as it made more sense in my case).

I am at a complete loss about the times, how they are transformed/changed from UTC to JST. Something just doesn't make sense to me. Why is in JST morning from 09 -15? Why are we moving everything +6 hours? Shouldn't it be +9 hours? I tried to understand wsIncMetnoCreate but haven't bent my brain around it yet.

I am already using another local forecast for my personal use, but they don't provide a website script. As far as I know only met.no resp. yr.no provide weather for my town (small town).

I will try to find a solution.

Cheers, Markus
Title: Re: Support of the "Leuven" Forecast scripts
Post by: edgar57 on February 11, 2021, 09:50:18 AM
Hello.

Can you help me a little?

Installed leuven template on my website.

How to remove/hide these php path-s from site? Where to switch off?
(like:
.../public_html/nautical/weatherpro/_widgets/float_top.php
.../public_html/nautical/weatherpro/wsyrnofct/ws_yrno_page.php/
.../public_html/nautical/weatherpro/wsyrnofct/yrnoGenerateHtml.php
.../public_html/nautical/weatherpro/wsyrnofct/yrnosettings.php
.../public_html/nautical/weatherpro/wsyrnofct/yrnoCreateArr.php
...public_html/nautical/weatherpro/wsyrnofct/yrnoCreateDetailArr.php)
And so on?

(http://[attachment id=1 msg=424834][/attachment])
 [ You are not allowed to view attachments ]


Thank You!
Edgar
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on February 11, 2021, 10:11:20 AM
. . .
Installed leuven template on my website.
. .
All links to the correct support topics => https://support.leuven-template.eu/

This topic is meant for Leuven forecast scripts.

The Leuven Template is not downloadable for months. It is EOL.
You are not on any user-list, not for the 2.8a release, not for the country you are in.
This has been a donation-ware product also. Please request support at the person who sent you the zip.

Based on the screenshots I could find your site.
This is version 2.8a (beta) from 2015
Modified with instructions such as
Code: [Select]
require_once 'lib/Util.php';
Util::checkShowSource(__FILE__);
The last data on your website Last updated: :  02-06-2015  18:18 => 18:19
Also even before the first line of output of the scripts there one or more lines displayed.
Seems that you also installed a "trace" displaying the full-path to every php script loaded.
Example http://hotserv.eq.ee/nautical/weatherpro/startHere.php
Code: [Select]
/home/edgarnuum/domains/hotserv.eq.ee/public_html/nautical/weatherpro/startHere.php
startHere.php (v2.8): This small program test your web server settings if they prohibit installing the Leuven-template.

You only need to run this program in step3 of the install procedure.

I think it has nothing to do with the Leuven Template, maybe you set a debug switch somewhere in cPanel

As far as I can decipher the messages, they refer to yr.no
That forecast provider quit last year, so better switch to met.no if that still works.


I strongly advise to start using
MeteoTemplate => http://www.meteotemplate.com/web/index.php
Large template, interesting features, ample support.

Saratoga Template & Scripts: https://saratoga-weather.org/wxtemplates/
By far the one with the most knowledgable users to help you.

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: lacouste on February 23, 2021, 03:00:13 PM
good evening wilm I use your forecast script with the yr.no forecasts on my site www.meteolimoux.fr it is a file that I had downloaded 2 or 3 years ago I think. for the moment the forecasts yn.ro still works but according to the information it will stop working so I would like to switch to another forecasting system similar to yn.ro met.no seems to me very good, I have to modify something thing in the wsfct4 file? I ask this question because I do not want to make a false manipulation before starting thank you in advance [tup] [tup]
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on February 24, 2021, 02:59:18 AM
good evening wilm I use your forecast script with the yr.no forecasts on my site www.meteolimoux.fr it is a file that I had downloaded 2 or 3 years ago I think. for the moment the forecasts yn.ro still works but according to the information it will stop working so I would like to switch to another forecasting system similar to yn.ro met.no seems to me very good, I have to modify something thing in the wsfct4 file? I ask this question because I do not want to make a false manipulation before starting thank you in advance [tup] [tup]

Both yr.no and met.no forecasts still work Ok at your website.
The met.no seems OK to me, no changes needed => https://meteolimoux.fr/wsfct4/wsFctMetnoPage4.php
Title: Re: Support of the "Leuven" Forecast scripts
Post by: lacouste on February 24, 2021, 05:25:52 AM
yes indeed it works well the only thing is that I did not touch anything at the level of the geolocation for the reception of the weather data of my village.
for the yn.ro I remember having informed something but I do not know where else on the script at the bottom right one can see it
Forecasts created on: 24-02-2021 02:19 (France / Languedoc-Roussillon / Limoux-Flassian% 20Railway% 20Station /
For the met.no script there is marked Forecast created on 02-24-2021 09:17 (43.07181 2.21743) also at the bottom right
What do you think
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on February 24, 2021, 05:41:38 AM
yes indeed it works well the only thing is that I did not touch anything at the level of the geolocation for the reception of the weather data of my village.
for the yn.ro I remember having informed something but I do not know where else on the script at the bottom right one can see it
Forecasts created on: 24-02-2021 02:19 (France / Languedoc-Roussillon / Limoux-Flassian% 20Railway% 20Station /
For the met.no script there is marked Forecast created on 02-24-2021 09:17 (43.07181 2.21743) also at the bottom right
What do you think

It is clearly described in the readme at your websitehttps://meteolimoux.fr/wsfct4/readme.html
When you setup the forecast script you entered all common details as needed for the forecasts.
Check your . . . /wsfct4/_metric-settings.php for your correct latitude / longitude you have entered there.

Those scripts near the EOL (End-Of_Live),
and as it took a lot of time to develop those scripts 
and sadly only a few users  supported me (https://support.leuven-template.eu/userlistScripts.php) to maintain them
==> you should find some other forecast scripts to use on your website in a few years.

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: lacouste on February 24, 2021, 05:56:50 AM
yes and as you specify I am one of those people
France WU colored table Limoux meteolimoux.fr/ 10 euro in 2018
I took a good look at what you just told me, everything seems good to me all of a sudden everything is well configured.
thank you, have a nice day
Title: Re: Support of the "Leuven" Forecast scripts
Post by: martin150 on February 25, 2021, 01:08:01 AM
Hi Wim, could you please help me again with a problem at YR since few days?

Following error on my site:
Code: [Select]
ERROR module yrnoCreateArr.php (87): Unable to retrieve xml for http://www.yr.no/place/Austria/Upper_Austria/Rindlberg//varsel.xml
ERROR module yrnoGenerateHtml.php (39): No data retrieved - forecast not possible
The adress is working and including forecast datas, but "No data retrieved??"

lg
martin
http://www.hildner.at/weather28

BTW: I started already using meteotemplate but not much time in the moment to configure.... So if theres a solution it would be great ...

Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on February 25, 2021, 03:03:14 AM
Hi Wim, could you please help me again with a problem at YR since few days?

Following error on my site:
Code: [Select]
ERROR module yrnoCreateArr.php (87): Unable to retrieve xml for http://www.yr.no/place/Austria/Upper_Austria/Rindlberg//varsel.xml
ERROR module yrnoGenerateHtml.php (39): No data retrieved - forecast not possible
The adress is working and including forecast datas, but "No data retrieved??"

lg
martin
http://www.hildner.at/weather28

BTW: I started already using meteotemplate but not much time in the moment to configure.... So if theres a solution it would be great ...

This is a Leuven-Template script. Not a separate forecast script.
The yr.no server only understands https , you have to change two scripts

weather28/weather28/wsyrnofct/yrnoCreateArr.php  change line 47
weather28/weather28/yrnoCreateDetailArr.php change line 46
0 => 'http://www.yr.no/place/',       should be changed to
0 => 'https://www.yr.no/place/',

===
This is the link in the template error message: https://www.yr.no/place/Austria/Upper_Austria/Rindlberg//varsel.xml
When you check the returned data:
Code: [Select]
<!-- NB!!! Since we have no other options to contact our users of forecast.xml, we have decided to use this method to get your attention to some major changes with our API -->
<!-- This summer, forecast.xml and forecast_hour_by_hour.xml will be discontinued in favour of a newer JSON API. An exactly date is not set yet. -->
<!-- Vi encourage you already now to switch to the new API. -->
<!-- There are a lot of changes, and you can read all the technical details in our new developer portal https://developer.yr.no -->

So shortly the data will not be available anymore. But the met .no forecast is (probably) not affected.

Wim

============  @ALL Leuven users:  ==============

As the Leuven-Template is End Of Live
Check out these well supported Weather-website templates:

MeteoTemplate: http://www.meteotemplate.com/web/index.php

Saratoga Template & Scripts: https://saratoga-weather.org/template/

weather34, the original dashboard version: https://weather34.com/homeweatherstation/

PWS_Dashboard another dashboard  https://pwsdashboard.com
Title: Re: Support of the "Leuven" Forecast scripts
Post by: martin150 on February 25, 2021, 04:25:42 AM
Tnx for your help  =D&gt; \:D/.
I checked the data only about forecast info, sorry  :roll:
Where can i change the setting that met.no is shown on the startpage (not yr) ?
Sorry for the questions but your template is running so stable [tup] that nothing is to do long time, and so its difficult if something to change  :-)

lg
martin
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on February 25, 2021, 04:31:08 AM
Tnx for your help  =D&gt; \:D/.
I checked the data only about forecast info, sorry  :roll:
Where can i change the setting that met.no is shown on the startpage (not yr) ?
Sorry for the questions but your template is running so stable [tup] that nothing is to do long time, and so its difficult if something to change  :-)

lg
martin

Your settings (. . /weather28/_my_texts/wsUserSettings.php ) line about 181 change to
Code: [Select]
# Default forecast on the start-page
$SITE["fctOrg"]   = "metno";  # wxsim = WXSIM needs extra program = all  |  yrno = Yrno needs area code = all  |  metno = MetNo = all  |  yowindow = YoWindow gadget = all  |  noaa = NOAA = america  |  ec = Environment Canada = canada  |  hwa = Het Weer Actueel - alleen voor leden = europe

Succes,
Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: martin150 on February 25, 2021, 04:54:00 AM
Tnx all ok again !

LG
Martin
Title: Re: Support of the "Leuven" Forecast scripts
Post by: kyomar on March 02, 2021, 07:37:18 PM
Hi Wim, hope this message finds you well.

From 1st of March the met.no forecast stopped working. I remembered our conversation about version 1.9 and checked the metno api and they moved to version 2.0. But just changing the version number didn't work, had to add /classic/ and all is working fine again.
Changed line 50 in wsIncMetnoCreate.php:
from;
Quote
api.met.no/weatherapi/locationforecast/1.9/
to:
Quote
api.met.no/weatherapi/locationforecast/2.0/classic/

Hope this info is useful for others as well.

Thanks for this amazing script!
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on March 03, 2021, 02:37:04 AM
Hi Wim, hope this message finds you well.

From 1st of March the met.no forecast stopped working. I remembered our conversation about version 1.9 and checked the metno api and they moved to version 2.0. But just changing the version number didn't work, had to add /classic/ and all is working fine again.
Changed line 50 in wsIncMetnoCreate.php:
from;
Quote
api.met.no/weatherapi/locationforecast/1.9/
to:
Quote
api.met.no/weatherapi/locationforecast/2.0/classic/

Hope this info is useful for others as well.

Thanks for this amazing script!

Thanks   =D&gt; you beat me with this 1 day.

Always check the demo site https://www.weerstation-herent.be/wsfct4/wsFctMetnoPage4.php  if the problem is there also.

Script wsIncMetnoCreate.php line 50 should look like this
Code: [Select]
$ws_metno_url     = 'https://api.met.no/weatherapi/locationforecast/2.0/classic/?lat='.$yourLatitude.'&lon='.$yourLongitude
Also the UV forecast URL is changed end last year from http:// to https://
Script wsIncUvScrape.php line 59 should look like this
Code: [Select]
$ws_uv_url      = 'https://www.temis.nl/uvradiation/nrt/uvindex.php?lon='.$wsUvLongitude.'&lat='.$wsUvLatitude;
Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: Fabrice on March 13, 2021, 03:33:09 AM
Hello.

I am trying to test the latest V4 version for my predictions.
I wish I could create a menu at the top of the forecast with a choice of other cities for my visitors.
Simply have a drop-down menu.
Thank you for telling me how to have from the same page the possibility of accessing forecasts from other places.
Here is my test page: http://test.meteo01.fr/ws/wsFctMetnoPage4.php

Fabrice
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on March 13, 2021, 03:48:56 AM
Hello.

I am trying to test the latest V4 version for my predictions.
I wish I could create a menu at the top of the forecast with a choice of other cities for my visitors.
Simply have a drop-down menu.
Thank you for telling me how to have from the same page the possibility of accessing forecasts from other places.
Here is my test page: http://test.meteo01.fr/ws/wsFctMetnoPage4.php

Fabrice

Thanks for testing one of my scripts.
The idea of the script is to have an "large" adaptable forecast of your own area  .

There is no such feature as a "Simply have a drop-down menu." of "forecasts from other places."

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: Fabrice on March 13, 2021, 04:00:24 AM
Hello.
Thank you for your reply.
I will see how I can create this drop down menu for my personal needs.
Because I found this example using your version V 3.5 on this site: http://www.meteonarbonne.fr/index.php?p=51-2&lang=fr
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on March 13, 2021, 04:05:46 AM
Hello.
Thank you for your reply.
I will see how I can create this drop down menu for my personal needs.
Because I found this example using your version V 3.5 on this site: http://www.meteonarbonne.fr/index.php?p=51-2&lang=fr

But that one is not using the frorecast script to do that.
It is an extra layer around a lot of scripts (metar, foecasts a.o.).
It is also using different kind of settings for that.

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: Fabrice on March 13, 2021, 07:04:02 AM
ok thanks.

I am also trying to remove in the forecast table the mention of the force of the Beaufort wind (example 2, 3 ...) or even remove the mention of the breeze. What should be deleted for all of this ?.

Thank you.
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on March 13, 2021, 07:15:15 AM
ok thanks.

I am also trying to remove in the forecast table the mention of the force of the Beaufort wind (example 2, 3 ...) or even remove the mention of the breeze. What should be deleted for all of this ?.

Thank you.

For that you need to edit the scripts, as that has never been an option nor a request to implement a setting for that.
But probably there are far better scripts which suits you more. Just browse the internet and forums,

Succes,
Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: griffo42 on April 02, 2021, 03:20:13 AM
Hi

Could I please have help to fix this problem  All was good until yesterday.  I have not changed any script.  My website is:  https://www.kstwx.net/wxnorwayfcst.php.  The first attachment is a screenshot from my desktop whilst the second is what appeared on my iPad today.  Yesterday both appeared on my desktop (Win 10).

Thanks

Keith


 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on April 02, 2021, 04:33:00 AM
Hi
Could I please have help to fix this problem  All was good until yesterday.  I have not changed any script.  My website is:  https://www.kstwx.net/wxnorwayfcst.php.  The first attachment is a screenshot from my desktop whilst the second is what appeared on my iPad today.  Yesterday both appeared on my desktop (Win 10).
Thanks
Keith

Thanks for using the Leuven forecast script. 
Never knew there was a user of them in Australia https://support.leuven-template.eu/userlistScripts.php

Answered in this topic with post #41 by @kyomar and #42 by me, just before your question:
https://www.wxforum.net/index.php?topic=36478.msg426228#msg426228

As you are using an older version, the line numbers are:
wsMetnoCreate.php => line 52
wsUFct4.php => line 58

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: griffo42 on April 02, 2021, 09:07:48 PM
Hi

Thanks for your quick response:  all fixed.  By all means, add me to the users list for Norway forecasts.  https://www.kstwx.net/index.php.

best wishes

Keith

Title: Re: Support of the "Leuven" Forecast scripts
Post by: MarkDM on April 08, 2021, 12:31:02 PM
Hello,
I noticed my forecast page was not working anymore. Thanks to this thread a found the cause.
But there is a problem in the solution. The script is working, even stand-alone without enclosing html:
https://weerstationberlare.be/wsfct4/wsFctMetnoPage4.php (https://weerstationberlare.be/wsfct4/wsFctMetnoPage4.php)

I adapted the file wsMenuData.xml for it:
Quote
<item   nr      = "wsForecast"   
        caption = "Forecast"
        link    = "wsfct4/wsFctMetnoPage4.php"         
        gizmo   = "1"   
/>
This not working, the menu-button "Vooruitzicht" (translated) keeps pointing to the old target:
https://weerstationberlare.be/ (https://weerstationberlare.be/)

Is there something else I have to activate ? It doesn't seems a cache problem.
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on April 08, 2021, 01:02:07 PM
Hello,
I noticed my forecast page was not working anymore. Thanks to this thread a found the cause.
But there is a problem in the solution. The script is working, even stand-alone without enclosing html:
https://weerstationberlare.be/wsfct4/wsFctMetnoPage4.php (https://weerstationberlare.be/wsfct4/wsFctMetnoPage4.php)

I adapted the file wsMenuData.xml for it:
Quote
<item   nr      = "wsForecast"   
        caption = "Forecast"
        link    = "wsfct4/wsFctMetnoPage4.php"         
        gizmo   = "1"   
/>
This not working, the menu-button "Vooruitzicht" (translated) keeps pointing to the old target:
https://weerstationberlare.be/ (https://weerstationberlare.be/)

Is there something else I have to activate ? It doesn't seems a cache problem.
This is a thread for the stand-alone (+Saratoga) forecast scripts.
They are not integrated with the Leuven-Template. They are having multiple errors as they are not positioned at the correct folder.
Code: [Select]
Warning: include_once(./ws_set_environment.php): failed to open stream: No such file or directory in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 144

Warning: include_once(): Failed opening './ws_set_environment.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 144

Warning: include(./_metric_settings.php): failed to open stream: No such file or directory in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 146

Warning: include(): Failed opening './_metric_settings.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 146

Fatal error: Uncaught Error: Call to undefined function ws_debug_times() in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php:152 Stack trace: #0 /home/uitber1q/weerstation/index.php(331): include() #1 {main} thrown in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 152
It is a lot more work  to use the stand-alone scripts. https://weerstationberlare.be/wsfct4/readme.html
You need to run them in an iFrame if using them in any template.

Better use the built-in version in the Leuven Template
The UV and MetNo forecast scripts in the Leuven-Template need only a small modification
=> https://support.leuven-template.eu/problems28.php?lang=nl
Or on the HWA forum at https://www.hetweeractueel.nl/forum/viewtopic.php?f=226&t=70313&sid=b89f274a86cca82b4948c976598fada3#p73098

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: MarkDM on April 08, 2021, 03:10:24 PM
Thank you Wim.
It works again with this small modification on the original script.
Regards,
Mark
Title: Re: Support of the "Leuven" Forecast scripts
Post by: lacouste on October 05, 2021, 04:09:57 AM
hello everyone today all of the forecast scripts have stopped working. i thought the met.no is going to keep working that seems to have shut down as well. What gives on your side. Good day to you
i havz that on all yr met no ect.....
no forecast data can be retrieved, check the html for errors
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on October 05, 2021, 04:52:46 AM
hello everyone today all of the forecast scripts have stopped working. i thought the met.no is going to keep working that seems to have shut down as well. What gives on your side. Good day to you
i havz that on all yr met no ect.....
no forecast data can be retrieved, check the html for errors
Hi @lacouste,

I am confused about the word "all in your message"
I currently support 9 different forecast scripts. Only 1 has some intermittent problems until February 1, 2022 and will stop working on that date.

As announced end of 2020 by Yr.no  their xml-forecast will not be functional in the near future.
From  October 1st, the yr.no forecasts API in the current format, example  https://www.yr.no/place/Belgium/Flanders/Herent/varsel.xml has indeed "man-made" problems to warn you of that change. 

This is their message they will return for a few days, then they will supply the data again for a few day/weeks and that message / data will be repeated until February 1 next year.:
Quote
This service will be retired on February 1st, 2022. Please go to https://developer.yr.no/doc/guides/getting-started-from-forecast-xml/ to get started with our new API. This service will have random interuptions until the final end of life date February 1st, 2022.

When you read the information on the developer.yr.no pages, you see that they switched to using met.no data directly.

THEREFOR there is no need to develop a new yr.no script as the data is identical as used in the current met.no script.

The met.no forecast scripts works without problems, now and in the "foreseeable" future.  ;)

Regards,

Wim

P.S. I started with 12 forecast scripts and indeed 4 data-sets are not available anymore.   
Not bad for scripts from 2015-2018 also considering that only 18 users helped supporting those scripts directly (https://support.leuven-template.eu/userlistScripts.php).
Title: Re: Support of the "Leuven" Forecast scripts
Post by: lacouste on October 05, 2021, 05:34:59 AM
hello kim I am also confused because as you announced yn.ro had to stop working so for that no problem on the other hand in my wsfct4 folder the rest of the programs no longer work also I still have error messages
for http://meteolimoux.fr/wsfct4/wsFctDarksPage4.php
 I have This scripts needs an API-key, please check the docs

for metno http://meteolimoux.fr/wsfct4/wsFctMetnoPage4.php I have no forecast data can be retrieved, check the html for errors

for http://meteolimoux.fr/wsfct4/wsFctWuPage4.php I have This scripts needs an API-key, please check the docs

for http://meteolimoux.fr/wsfct4/wsFctWxsimPPage.php I have Error input file not found, cache file not found either => ../ complaintxt.txt
Scripts failed, check html for problems

for yahoo I have No data was retrieved for https://query.yahooapis.com/v1/public/yql?q=select+*+from+weather.forecast+where+woeid+in+(SELECT+woeid+FROM+geo .places + WHERE + text = "(43.071812,2.217438)") + & format = json

no forecast data can be retrieved, check the html for errors

all the programs no longer work in my folder
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on October 05, 2021, 05:53:21 AM
hello kim I am also confused because as you announced yn.ro had to stop working so for that no problem on the other hand in my wsfct4 folder the rest of the programs no longer work also I still have error messages
for http://meteolimoux.fr/wsfct4/wsFctDarksPage4.php
 I have This scripts needs an API-key, please check the docs

for metno http://meteolimoux.fr/wsfct4/wsFctMetnoPage4.php I have no forecast data can be retrieved, check the html for errors

for http://meteolimoux.fr/wsfct4/wsFctWuPage4.php I have This scripts needs an API-key, please check the docs

for http://meteolimoux.fr/wsfct4/wsFctWxsimPPage.php I have Error input file not found, cache file not found either => ../ complaintxt.txt
Scripts failed, check html for problems

for yahoo I have No data was retrieved for https://query.yahooapis.com/v1/public/yql?q=select+*+from+weather.forecast+where+woeid+in+(SELECT+woeid+FROM+geo .places + WHERE + text = "(43.071812,2.217438)") + & format = json

no forecast data can be retrieved, check the html for errors

all the programs no longer work in my folder
I think you maybe have an old download?
Please check the current working scripts
=> https://support.leuven-template.eu/
===> https://www.weerstation-herent.be/wsfct4/

WU an Yahoo stopped years ago, they are therefor not in the demo.

Yr.no will have the "nag" message for a few days and will on/off work again until Februari next year.

DarkSky always needs an API-key, the scripts will work at least to end of December 2022.
But DarkSky will not accept new users as it was bought by Apple. If you have no DarkSky api key, the scripts will not work.

WXSIM can only be used when you have the paid-for WXSIM forecasting programs (windows only) and upload the data files to your web-site.

Met.no should work, but the API url changed so check these two topics for the answer here
https://www.wxforum.net/index.php?topic=36478.msg426228#msg426228
There the change needed in line 50 of wsIncMetnoCreate.php is described

@ALL Please always check the support => demo-site and see if it works there.  [tup]

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: lacouste on October 05, 2021, 07:18:17 AM
hi wilm i made the modification on line 50 but i get this error message
unknown error Warning: file_put_contents(./cache/wsIncMetnoHtml4_c_mm_kmh_hpa_cm_km_43-071812_2-217438.arr): failed to open stream: No such file or directory in /customers/5/5/d/meteolimoux.fr/httpd.www/wsfct4/ws_set_environment.php on line 181
ws_save_cache: ERROR Could not save data to cache (./cache/wsIncMetnoHtml4_c_mm_kmh_hpa_cm_km_43-071812_2-217438.arr).
Please make sure your cache directory exists and is writable.
Program ends
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on October 05, 2021, 07:32:10 AM
hi wilm i made the modification on line 50 but i get this error message
unknown error Warning: file_put_contents(./cache/wsIncMetnoHtml4_c_mm_kmh_hpa_cm_km_43-071812_2-217438.arr): failed to open stream: No such file or directory in /customers/5/5/d/meteolimoux.fr/httpd.www/wsfct4/ws_set_environment.php on line 181
ws_save_cache: ERROR Could not save data to cache (./cache/wsIncMetnoHtml4_c_mm_kmh_hpa_cm_km_43-071812_2-217438.arr).
Please make sure your cache directory exists and is writable.
Program ends

I think the message (in red) is very clear.

Are you sure you have officially downloaded the scripts between 2018 and today?

There should be a folder with the name "cache", it should be in your  wsfct4/  folder in your download area in your pc/mac also.

Normally when you upload the wsfct4 folder from the pc/mac to your webserver, all folders and scripts are copied and ​get the same "rights" as in the download.

So it is nearly impossible that the cache/ folder is not there.  Check your download folder.
Or use your FTP program to create a cache folder inside your  wsfct4 folder.

If you check the contents of your wsfct4 folder it should look more or less like this screenshot, 7 folders and a lot of scripts.

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: lacouste on October 05, 2021, 12:00:00 PM
I just looked I downloaded the folder on 08/02/2018 I don't have a cache file in the meteolimoux.fr / wsfct4 / subfolder
I have img, js, lang, other, pp, saratoga root, on the other hand I have a cache file in the img folder
https://filemanager.one.com/#matthieu.coustal@wanadoo.fr/meteolimoux.fr/files/wsfct4/img/cache/
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on October 05, 2021, 12:02:29 PM
I just looked I downloaded the folder on 08/02/2018 I don't have a cache file in the meteolimoux.fr / wsfct4 / subfolder
I have img, js, lang, other, pp, saratoga root, on the other hand I have a cache file in the img folder
https://filemanager.one.com/#matthieu.coustal@wanadoo.fr/meteolimoux.fr/files/wsfct4/img/cache/
You need a cache folder inside the wsfct4/ folder.
That is what is needed for the scripts to save the data as downloaded from met.no

Succes,
Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: lacouste on October 05, 2021, 12:11:46 PM
ok can I simply create it manually in my manger file from my web folder?
Title: Re: Support of the "Leuven" Forecast scripts
Post by: wvdkuil on October 05, 2021, 12:16:33 PM
ok can I simply create it manually in my manger file from my web folder?
Yes, I hope so.
Also check if the error goes away after  that.
If not use your FTP program ow whatever to give the correct permissions.

Wim
Title: Re: Support of the "Leuven" Forecast scripts
Post by: lacouste on October 05, 2021, 12:22:43 PM
thank you wilm it works now thank you =D&gt;