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

0 Members and 1 Guest are viewing this topic.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1820
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #50 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
« Last Edit: April 02, 2021, 04:56:36 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 griffo42

  • Senior Member
  • **
  • Posts: 94
    • Carina Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #51 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

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

Offline MarkDM

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

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/

Is there something else I have to activate ? It doesn't seems a cache problem.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1820
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #53 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

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/

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
« Last Edit: April 08, 2021, 01:09:20 PM by wvdkuil »
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline MarkDM

  • Member
  • *
  • Posts: 5
    • Weerstation Berlare
Re: Support of the "Leuven" Forecast scripts
« Reply #54 on: April 08, 2021, 03:10:24 PM »
Thank you Wim.
It works again with this small modification on the original script.
Regards,
Mark

 

anything