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

0 Members and 1 Guest are viewing this topic.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #150 on: March 01, 2024, 02:26:49 AM »
Could you please tell me if there is any fix that I can apply to stop these errors occurring
Hi Keith,
Thanks for the zip.
There are very strange errors, I have to investigate today how and what is causing this.
Quote
and hence have no errors reported when the Norway forecast is accessed my website?
Script: _metric_settings.php
Lines 8-12 now read:
#-----------------------------------------------
#                       error messages on or off
#    always set to false for production versions
#
$ws_errors      = true; # false when ready testing     
#-----------------------------------------------
Change in line 12 the word true  to false

This will not solve the real problem.
But there should be no error messages.

I will do some testing to see if the problem occurs here also.

Regards,
Wim
« Last Edit: March 01, 2024, 02:29:03 AM by wvdkuil »

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #151 on: March 01, 2024, 05:42:42 AM »
Could you please tell me if there is any fix that I can apply to stop these errors occurring
Hi Keith,
Thanks for the zip.
There are very strange errors, I have to investigate today how and what is causing this.
Hi Keith,

I captured the metno-data for your location to test with.
Attached a version which add another  check for  "incomplete" day-parts.
Make a copy of your current wsIncMetnoHtml4.php script before replacing it.

It should remove most errors form your error log, but I could not produce all messages you had.

Regards,
Wim
« Last Edit: March 01, 2024, 05:50:39 AM by wvdkuil »

Offline griffo42

  • Contributor
  • ***
  • Posts: 101
    • Carina Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #152 on: March 01, 2024, 06:26:26 AM »
Thanks for your prompt replies and help in this matter.  I have done what you asked in replies 150 & 151.  We will see what happens in the next few days.

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 griffo42

  • Contributor
  • ***
  • Posts: 101
    • Carina Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #153 on: March 07, 2024, 04:50:46 PM »
Hi Wim

This appeared when checking my website this morning:
 [ You are not allowed to view attachments ]

Also since updating the wsIncMetnoHtml4.php script as requested, the times of "forecast data created at" and "next update" at page top right as well as the "forecast data created at &c" at bottom right do not appear.

Thanks for your continued help.

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

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #154 on: March 08, 2024, 03:15:43 AM »
Hi Wim

This appeared when checking my website this morning:
There are two causes for this warning:
1. Maintenance at met.no
-> Please click the link, the link will run in your browser and it will contain a message from met.no why there was no data.

2. A problem with accessing the met.no website from your web-server.
-> Right click at the message and select "show html" or similar (depends on your borwser).
This will show the complete html.

Quote
Also since updating the wsIncMetnoHtml4.php script as requested, the times of "forecast data created at" and "next update" at page top right as well as the "forecast data created at &c" at bottom right do not appear.
As we switched off the test-mode, the date/times are not shown according to the settings.
From API version 2 they are not always "correct"

But you can switch them on in your page-settings in wsMetnoPage.php. Lines 62 - 67 now read
Code: [Select]
#-----------------------------------------------
#                         some yes / no settings
#-----------------------------------------------
#   true = display loading time of this forecast
#               false = do not display time info
$metno_times            = false; 

Change that false on line 67 to true

Succes,
Wim

Offline griffo42

  • Contributor
  • ***
  • Posts: 101
    • Carina Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #155 on: March 09, 2024, 02:15:16 AM »
Wim

Thank you.

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

 

anything