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

0 Members and 1 Guest are viewing this topic.

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Support of the "Leuven" Forecast scripts
« Reply #100 on: March 17, 2022, 03:43:09 PM »
Everything back in place was their problem
sorry Wim

Offline Fabrice

  • Member
  • *
  • Posts: 6
Re: Support of the "Leuven" Forecast scripts
« Reply #101 on: March 24, 2022, 01:38:45 PM »
Good evening Wim from today on Metno forecasts this problem comes out,
What could it be?   :roll: :roll:

Notice: Undefined index: symbol_url in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 409

Notice: Undefined index: desc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 412

Notice: Undefined index: precip_clc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 417

Notice: Undefined index: symbol_url in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 622

Notice: Undefined index: desc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 624

Notice: Undefined index: precip_clc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 628

Notice: Undefined index: symbol_lnk in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 704

Notice: Undefined index: precip_clc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 711

Link e questo  https://www.pomeziameteo.it/prev_Metno.php

Hello. I had a problem a few days ago too.
Every evening during the 1-7 p.m. period and around 6 p.m., these error messages appear.
Then it works normally again and the errors are again present around 11 p.m.
Also, the current weather icon disappears as shown in my image.

how to solve this specific problem that I found on other weather sites.

errors : https://www.photos.lejma.fr/ws/forecast.jpg



Notice: Undefined index: symbol_url in /home/lejma/photos.lejma.fr/ws/wsIncMetnoHtml4.php on line 409

Notice: Undefined index: desc in /home/lejma/photos.lejma.fr/ws/wsIncMetnoHtml4.php on line 412

Notice: Undefined index: precip_clc in /home/lejma/photos.lejma.fr/ws/wsIncMetnoHtml4.php on line 417

Notice: Undefined index: symbol_url in /home/lejma/photos.lejma.fr/ws/wsIncMetnoHtml4.php on line 622

Notice: Undefined index: desc in /home/lejma/photos.lejma.fr/ws/wsIncMetnoHtml4.php on line 624

Notice: Undefined index: precip_clc in /home/lejma/photos.lejma.fr/ws/wsIncMetnoHtml4.php on line 628

Notice: Undefined index: symbol_lnk in /home/lejma/photos.lejma.fr/ws/wsIncMetnoHtml4.php on line 704

Notice: Undefined index: precip_clc in /home/lejma/photos.lejma.fr/ws/wsIncMetnoHtml4.php on line 711

 [ You are not allowed to view attachments ]

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #102 on: March 25, 2022, 03:55:46 AM »
I am off the grid until Monday, no computer no keyboard, phone only.
It has to wait.

But you should use your cPanel to switch off error reporting as a production website should not display notices.

Those messages are not errors, not even warnings. Notices are low priority messages to the script writer to take action.
 The problem seems to be an incomplete first day part of the day, but only occurring on certain hours?

Wim

« Last Edit: March 25, 2022, 03:59:24 AM by wvdkuil »

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Support of the "Leuven" Forecast scripts
« Reply #103 on: March 25, 2022, 02:56:12 PM »
Yes only at certain times and it does this on your demo too
https://www.weerstation-herent.be/wsfct4/

By my control panel, do you mean my Aruba host?

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #104 on: March 27, 2022, 07:32:12 AM »
Good evening Wim from today on Metno forecasts this problem comes out,
What could it be?   :roll: :roll:
Notice: Undefined index: symbol_url in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 409
Notice: Undefined index: desc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 412
Notice: Undefined index: precip_clc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 417
Notice: Undefined index: symbol_url in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 622
Notice: Undefined index: desc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 624

. . . . . . shortened
Link e questo  https://www.pomeziameteo.it/prev_Metno.php
Hello. I had a problem a few days ago too.
Every evening during the 1-7 p.m. period and around 6 p.m., these error messages appear.
Then it works normally again and the errors are again present around 11 p.m.
Also, the current weather icon disappears as shown in my image.
. . . shortened

There are two problems.
1. The (xml) data seems to be incomplete (but not invalid) some parts of a 24-hr day day
==> add extra code to wsIncMetnoHtml4.php  to skip incomplete day-parts

2. The error messages should not appear in a production environement
==>  :oops:  sorry I left a debug statement in ws_set_environment.php on the first line

Both updated scripts are attached and can be tested.
I will post a new download a.s.a.p.

Also please check your _metric_settings.php 
On line 12 it could read
Code: [Select]
$ws_errors      = true; # false when ready testing After testing you better change that to
Code: [Select]
$ws_errors      = false; # false when ready testing
Wim

Offline garydumbleton

  • Member
  • *
  • Posts: 2
    • Brantford Weather
Setting the station number in _ca_settings.php for Canada
« Reply #105 on: March 29, 2022, 08:56:52 AM »
Hello,

I was wondering if anyone knows how to get the $yourEcArea number to put into the _ca_settings.php file. I am not able to see where the file is.  I do see that there is a 3 digit number that can be used.  Here is the  line in the file    $yourEcArea     = "s0000646"; #<name code="s0000646" lat="42.30N" lon="82.99W">Windsor</name>

I am not sure where to get the number from.

I did do a search of this forum and did not come up with anything.  The weather is currently set for Windsor, ON and I need it to be Brantford, ON weather. There is quite a difference from Windsor to Brantford in weather.

If someone could shed some light on this I would be greatful.

The scripts that you have provided have been really great.  I am currently using the wxsim script now and wanted to put the Environment Canada one on to for comparison.

Thanks
Gary

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Setting the station number in _ca_settings.php for Canada
« Reply #106 on: March 29, 2022, 09:08:30 AM »
Hello,

I was wondering if anyone knows how to get the $yourEcArea number to put into the _ca_settings.php file. I am not able to see where the file is.  I do see that there is a 3 digit number that can be used.  Here is the  line in the file    $yourEcArea     = "s0000646"; #<name code="s0000646" lat="42.30N" lon="82.99W">Windsor</name>

I am not sure where to get the number from.

I did do a search of this forum and did not come up with anything.  The weather is currently set for Windsor, ON and I need it to be Brantford, ON weather. There is quite a difference from Windsor to Brantford in weather.

If someone could shed some light on this I would be greatful.

The scripts that you have provided have been really great.  I am currently using the wxsim script now and wanted to put the Environment Canada one on to for comparison.

Thanks
Gary

Hi Gary,

Thanks for your positive feedback.

The list with area codes is from EC at http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv

Brantford seems to be s0000550,Brantford,ON,43.16N,80.26W

Success,

Wim


Offline garydumbleton

  • Member
  • *
  • Posts: 2
    • Brantford Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #107 on: March 29, 2022, 10:11:49 AM »
Thanks Wim,

I did not even know that that spreadsheet existed.

Have a good day.

Gary

Offline Giwrgos22

  • Member
  • *
  • Posts: 1
how to setup the file Prediction scenarios of version 4 wsfct4.
« Reply #108 on: April 14, 2022, 02:59:26 AM »
I have downloaded the version 4 forecast scripts https://www.weerstation-herent.be/wsfct4/ now how do I install them What are the steps?

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: how to setup the Leuven forecast scripts (wsfct4).
« Reply #109 on: April 14, 2022, 05:06:14 AM »
I have downloaded the version 4 forecast scripts https://www.weerstation-herent.be/wsfct4/ now how do I install them What are the steps?

Hi Giwrgos22,

The "official" support topic for this set of scripts is at https://www.wxforum.net/index.php?topic=36478

Also you will get better answers if you post the link to your website where you want to use these scripts..

ToDo: You install the wsfct4 scripts on your website, better use the same folder name.
Type in your browser . . .your website . ./ wsfct4/
and the same "Readme" will open as in https://www.weerstation-herent.be/wsfct4/ 
The bottom link is labelled Readme
In your case it should go to your own readme . . .your website . ./ wsfct4/readme.html

Clicking that will display all settings, in the first tab,  either for Metric users, such as for Greece, US (with miles, inches  and other date-formats en Canadian users.
You need to edit the metric settings one by one in the file  . . .your website . ./ wsfct4/_metric_settings.php
Use a decent script editor such as notepad++  for windows or BBedit on a Mac. Do not use notepad.exe or ms-word it will kill your UTF-8 scipts.

There is a screenshot, second tab,  in the readme explaining the different parts of a forecast page.

Then a page explaining the settings for one forecast-company, the example uses met.no but other ones are similar.

After customising the general settings in _metric_settings.php  and the page settings in f.i.
==> first test the forecast page in stand-alone mode f.i.  . . .your website . ./ wsfct4/wsFctMetnoPage4.php

After the stand-alone version works OK, you have to decide how to integrate a forecast page into your website.

WARNING: If you have no knowledge of or experience with  PHP and editing scripts you should use other solutions and delete these scripts

Succes, Wim

@MODERATOR May someone can move this question to topic=36478
Merged to topic 36478 as requested :)
« Last Edit: April 15, 2022, 05:03:04 PM by saratogaWX »

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: Support of the "Leuven" Forecast scripts
« Reply #110 on: April 18, 2022, 12:44:28 PM »
On all pages of my WXSIM forecast pages I am getting a warning,
Warning: Undefined array key "dateOnlyFormat" in /home/goblesweather/www/www/_us_settings.php on line 195

Here is a link to one of the pages, https://goblesweather.com/wx_lvn_wxsimD.php

Here is line 195 of the _us_settings.php script,
Quote
$dateOnlyFormat   = $SITE['dateOnlyFormat'];

I am using the latest scripts as well.

Chuck

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Support of the "Leuven" Forecast scripts
« Reply #111 on: April 18, 2022, 01:34:29 PM »
You may have an older Settings.php template .. the $SITE['dateOnlyFormat'] should have been in your Settings.php Saratoga template file.

Code: [Select]
$SITE['timeOnlyFormat'] = 'g:ia';          // USA format h:mm[am|pm\
//$SITE['timeOnlyFormat'] = 'H:i';          // Euro format hh:mm  (hh=00..23);
$SITE['dateOnlyFormat'] = 'd-M-Y';        // for 31-Mar-2008 or 'j/n/Y' for Euro format
in Settings.php for USA templates.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: Support of the "Leuven" Forecast scripts
« Reply #112 on: April 19, 2022, 01:02:11 PM »
My Settings.php is the current version and is

Code: [Select]
$SITE['timeFormat'] = 'D, d-M-Y g:ia T';  // Day, 31-Mar-2006 6:35pm Tz  (USA Style)
//$SITE['timeFormat'] = 'm/d/Y g:ia';      // USA  format 03/31/2006 14:03
//$SITE['timeFormat'] = 'd/m/Y H:i';       // Euro format 31/03/2006 14:03
//$SITE['timeFormat'] = 'Y-m-d H:i';       // ISO  format 2006-03-31 14:03

$SITE['timeOnlyFormat'] = 'g:ia';          // USA format h:mm[am|pm\
//$SITE['timeOnlyFormat'] = 'H:i';          // Euro format hh:mm  (hh=00..23);
//$SITE['dateOnlyFormat'] = 'd-M-Y';        // for 31-Mar-2008 or 'j/n/Y' for Euro format

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #113 on: April 19, 2022, 01:26:54 PM »
My Settings.php is the current version and is

Code: [Select]
$SITE['timeFormat'] = 'D, d-M-Y g:ia T';  // Day, 31-Mar-2006 6:35pm Tz  (USA Style)
//$SITE['timeFormat'] = 'm/d/Y g:ia';      // USA  format 03/31/2006 14:03
//$SITE['timeFormat'] = 'd/m/Y H:i';       // Euro format 31/03/2006 14:03
//$SITE['timeFormat'] = 'Y-m-d H:i';       // ISO  format 2006-03-31 14:03

$SITE['timeOnlyFormat'] = 'g:ia';          // USA format h:mm[am|pm\
//$SITE['timeOnlyFormat'] = 'H:i';          // Euro format hh:mm  (hh=00..23);
//$SITE['dateOnlyFormat'] = 'd-M-Y';        // for 31-Mar-2008 or 'j/n/Y' for Euro format
The two // should be removed from the last line. Those  // makes that line a comment. It should look like this
Code: [Select]
$SITE['dateOnlyFormat'] = 'd-M-Y';        // for 31-Mar-2008 or 'j/n/Y' for Euro format
Succes,
Wim

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: Support of the &quot;Leuven&quot; Forecast scripts
« Reply #114 on: April 19, 2022, 03:48:40 PM »
Made the change and the error went away. Pages are all gods.

Thanks,
Chuck


Sent from my iPhone using Tapatalk

Offline Weerstation

  • Member
  • *
  • Posts: 43
    • Westland De Poel
Re: Support of the "Leuven" Forecast scripts
« Reply #115 on: April 27, 2023, 04:19:03 AM »
Hi,

I am using the forecast in my saratoga template.
Unfortunately, the graph won't load anymore since a couple of days.
I noticed my php version changed to 8.1.17 (was 8.1.16) maybe that's why.

Forecast

TIA


Offline Fabrice

  • Member
  • *
  • Posts: 6
Re: Support of the "Leuven" Forecast scripts
« Reply #116 on: April 27, 2023, 06:54:17 AM »
Good morning.
Since yesterday, I have the same display problem. I specify that my php version is 7.4 and I have not modified it. Where can this come from ?. THANKS.




Hi,

I am using the forecast in my saratoga template.
Unfortunately, the graph won't load anymore since a couple of days.
I noticed my php version changed to 8.1.17 (was 8.1.16) maybe that's why.

Forecast

TIA

Offline Weerstation

  • Member
  • *
  • Posts: 43
    • Westland De Poel
Re: Support of the "Leuven" Forecast scripts
« Reply #117 on: April 27, 2023, 07:39:08 AM »
No problem at the moment.
Working again.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #118 on: April 27, 2023, 08:02:03 AM »
The cause of the problems:  New version 11.0.0 of Highcharts.

Basic solutions:
1. Change in 1 line from Highcharts.chart  to Highcharts.Chart
2. use the previous version of Highcharts => https://github.com/poblabs/weewx-belchertown/issues/881
3. Wait a few days if Highcharts will release an update for this "problem".

Be aware that the new 11.0.0 version has a lot of small changes which mess up the graph also.

Wim
 

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #119 on: April 28, 2023, 07:03:26 AM »
The demo site https://pwswd.be/wsfct4/  and the full download are refreshed on 2023-04-28 2023-05-03

The readme and explain pages are adapted for the DarkSky EOL.

The new version 11-0-0 of HighCharts affected three scripts wsIncNoaaDHtml4.php wsIncMetnoHtml4.php and wsIncHwaHtml4.php
For those users which are up-to-date with the scripts, I attach a zip with the three scripts.

Succes,
Wim

2023-05-03 Attachment (15 downloads) removed, latest version topic https://www.wxforum.net/index.php?topic=36478.msg459783;topicseen#msg459783
« Last Edit: May 03, 2023, 07:10:28 AM by wvdkuil »

Offline Weerstation

  • Member
  • *
  • Posts: 43
    • Westland De Poel
Re: Support of the "Leuven" Forecast scripts
« Reply #120 on: April 29, 2023, 11:32:34 AM »
Thanks Wim.

I will donate later on for the forecasts updates.

My days are a bit off underneath the graph.
I recall this was the case also in the previous version.
Is there a way to fix this.

My Forecast

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #121 on: April 29, 2023, 11:54:59 AM »
. . .
My days are a bit off underneath the graph.
I recall this was the case also in the previous version.
This is one of the numerous very small changes, also the thick lines, non-curved graphs a.s.o.
I will adapt the code but only when the release is two weeks old.
I expect this 0.0 release to be upgraded shortly as is the case with "all" 0.0 releases of scripts.
Quote
Is there a way to fix this.
Yes, go to the previous release as described on the weewx-belchertown github pages.

Wim van der Kuil
Leuven script supporters

Offline griffo42

  • Contributor
  • ***
  • Posts: 101
    • Carina Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #122 on: April 30, 2023, 10:11:53 PM »
Could you please substitute English for the Dutch words as shown in the screenshot.

 [ You are not allowed to view attachments ]

Thanks
Keith
https://www.kstwx.net/index.php
Davis Vantage Pro2 Model #6152AU
Cumulus latest version
Saratoga Weather World template Cumulus plugin
Carina Weather, Brisbane.

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: Support of the "Leuven" Forecast scripts
« Reply #123 on: May 01, 2023, 12:02:22 AM »
My page below is generating a deprecated error.  I am running PHP 8.2.1.

https://www.goblesweather.com/wx_lvn_wxsimD.php

Here is the error.

Deprecated: Function utf8_decode() is deprecated in /home/goblesweather/www/www/wsIncWxsimDHtml4.php on line 815

Thanks,
Chuck

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #124 on: May 01, 2023, 02:36:04 AM »
My page below is generating a deprecated error.  I am running PHP 8.2.1.

https://www.goblesweather.com/wx_lvn_wxsimD.php

Here is the error.

Deprecated: Function utf8_decode() is deprecated in /home/goblesweather/www/www/wsIncWxsimDHtml4.php on line 815

Thanks,
Chuck

@ALL  Deprecated message
That is not an error it is just a message that the used function or construct will not be supported in the future.
Normal production websites do not show these messages to the visitors as it does not affect the shown information.

There is a real "error" though,  I left some debugging code in line 1 of ws_set_environment.php  :oops:
https://www.goblesweather.com/ws_set_environment.php?sce=view
That first line makes sure  that "E_ALL" messages are printed.
Change that line by adding a comment mark # before ini_set
Code: [Select]
<?php  # ini_set(&#39;display_errors&#39;, &#39;On&#39;); error_reporting(E_ALL); $ws_lang_missing = $ws_errors = $wsDebug  = true; #echo &#39;<!-- debug on -->&#39;.PHP_EOL;
Thank you for using the Leuven Forecast scripts.
Wim van der Kuil
Leuven script supporters