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

0 Members and 1 Guest are viewing this topic.

Offline kyomar

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



Offline kyomar

  • Member
  • *
  • Posts: 12
Re: Support of the "Leuven" Forecast scripts
« Reply #26 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.
« Last Edit: August 15, 2020, 12:57:14 AM by kyomar »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #27 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
« Last Edit: August 15, 2020, 03:36:50 AM by wvdkuil »
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline kyomar

  • Member
  • *
  • Posts: 12
Re: Support of the "Leuven" Forecast scripts
« Reply #28 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
« Last Edit: August 15, 2020, 06:41:05 AM by kyomar »

Offline edgar57

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


 [ You are not allowed to view attachments ]


Thank You!
Edgar
« Last Edit: February 11, 2021, 09:52:14 AM by edgar57 »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #30 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
« Last Edit: February 12, 2021, 10:13:07 AM by saratogaWX »
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline lacouste

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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #32 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
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline lacouste

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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #34 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 to maintain them
==> you should find some other forecast scripts to use on your website in a few years.

Wim
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline lacouste

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

Offline martin150

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

« Last Edit: February 25, 2021, 02:42:21 AM by martin150 »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #37 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
« Last Edit: February 25, 2021, 03:09:22 AM by wvdkuil »
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline martin150

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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #39 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
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline martin150

  • Member
  • *
  • Posts: 6
Re: Support of the "Leuven" Forecast scripts
« Reply #40 on: February 25, 2021, 04:54:00 AM »
Tnx all ok again !

LG
Martin

Offline kyomar

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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #42 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
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline Fabrice

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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #44 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
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline Fabrice

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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #46 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
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline Fabrice

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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1783
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #48 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
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline griffo42

  • Senior Member
  • **
  • Posts: 94
    • Carina Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #49 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 ]
https://www.kstwx.net/index.php
Davis Vantage Pro2 Model #6152AU
Cumulus latest version
Saratoga Weather World template Cumulus plugin
Carina Weather, Brisbane.