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

0 Members and 1 Guest are viewing this topic.

Offline meteosa

  • Member
  • *
  • Posts: 30
Re: Support of the "Leuven" Forecast scripts
« Reply #200 on: December 21, 2024, 06:13:03 AM »
Hi Wim,
I was wondering if it is possible that the pop-up in the graph follows the mouse when it is on the line and not just on the left, I'll give you an example:

 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]

Thanks
« Last Edit: December 21, 2024, 06:18:51 AM by meteosa »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 2047
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #201 on: December 21, 2024, 06:18:31 AM »
Hi Wim,
I was wondering if it is possible that the pop-up in the graph follows the mouse when it is on the line and not just on the left, I'll give you an example:
Thanks

It was discussed and designed this way a long time ago.

But it is adaptable in the javascript-code.

All and more discussions on the highcharts forums https://www.highcharts.com/forum/viewforum.php?f=9

Wim

Offline meteosa

  • Member
  • *
  • Posts: 30
Re: Support of the "Leuven" Forecast scripts
« Reply #202 on: December 21, 2024, 09:46:14 AM »
hi, sorry but I can't figure out how to integrate the tooltip that follows the mouse.
thanks

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 2047
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #203 on: December 21, 2024, 12:07:04 PM »
hi, sorry but I can't figure out how to integrate the tooltip that follows the mouse.
thanks

And i can not do anything if there is no link to the website and the script you are talking about.

I am not clairvoyant.
I checked old posts, they point to https://www.meteosantangelo.it  but there are no links to Leuven scrtipts.
I checked the donations but could not find a link there either, not for meeosa and not for meteosantangelo

Giving a how to do that without any guarantee (garanzia)
Find a line like:
Code: [Select]
tooltip: {
                        positioner: function () {return { x: 0};},
change that to
Code: [Select]
tooltip: {
                   //     positioner: function () {return { x: 0};},
So you set to comment the "set position at x=0."
Then the default is used, which is following the cursor

One Google search "Hichcharts tooltip fixed" would have given a dozen or more examples, including https://api.highcharts.com/highcharts/tooltip.positioner

Succes,
Wim

Offline Weatherstation De Hout

  • Member
  • *
  • Posts: 9
    • Weatherstation De Hout Alkmaar
Re: Support of the "Leuven" Forecast scripts
« Reply #204 on: December 21, 2024, 01:38:28 PM »

Giving a how to do that without any guarantee (garanzia)
Find a line like:
Code: [Select]
tooltip: {
                        positioner: function () {return { x: 0};},
change that to
Code: [Select]
tooltip: {
                   //     positioner: function () {return { x: 0};},
So you set to comment the "set position at x=0."
Then the default is used, which is following the cursor

I can confirm that this works.
CU1 | Weather Station Website: https://www.alkmaarweer.nl | Davis Vantage Pro2+ FARS

Offline meteosa

  • Member
  • *
  • Posts: 30
Re: Support of the "Leuven" Forecast scripts
« Reply #205 on: December 22, 2024, 11:15:26 AM »
Sorry you are right,
here is the link: https://www.meteosantangelo.it/wsfct4/wsFctWxsimDPage.php
I managed to change the tooltip, thank you very much.
I close another thing, is it possible to change the graph icons from "default" to those of "yrno"? I do not find the possibility to choose in the settings, including those related to the "Icons", "Forecast", "6-hour interval forecast", "Forecast details" sections.
Thanks
« Last Edit: December 22, 2024, 11:25:27 AM by meteosa »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 2047
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #206 on: December 22, 2024, 11:27:53 AM »
I close another thing, is it possible to change the graph icons from "default" to those of "yrno"? I do not find the possibility to choose in the settings.
Thanks

One can select either the icons from the provider or the default icons.

The setting is in  _metric-settings. php , _us-settings. php or _ca-settings. php   line  25 set it from true (default) to false
Code: [Select]
#-----------------------------------------------
#                   use our default icons (true)
#            or set to false for forcaster icons
$yourIconDefault= false; #

Succes,
wim
« Last Edit: December 22, 2024, 11:29:50 AM by wvdkuil »

Offline MeteoESINE Valcamonica

  • MeteoESINE Valcamonica
  • Member
  • *
  • Posts: 12
  • ham wx aprs/cwop: IW2LAO-13
    • MeteoESINE Valcamonica
Re: Support of the "Leuven" Forecast scripts
« Reply #207 on: December 23, 2024, 11:15:44 AM »
Hi Wim,
I did some tests and I think I found the reason of the problem:
I use wsFctWxsimDPage.php for the desktop site and wsFctWxsimDSmall.php for the mobile version, where the display of $ws_wxsimP_heading is disabled on the latter.
So, if the cache files are created or updated from DSmall.php, $ws_wxsimP_times is not displayed on wsFctWxsimDPage.php (probably because $ws_wxsimP_heading and $ws_wxsimP_times are disabled) - correct me if I'm wrong, please try this test too.
Would it be possible to fix the code so that $ws_wxsimP_times is created even if $ws_wxsimP_heading='not'?

Thanks in advance with best wishes for a Merry Christmas
Norbert

https://meteoesine.it/wxsim/wsFctWxsimDPage.php
« Last Edit: December 23, 2024, 11:24:13 AM by MeteoESINE Valcamonica »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 2047
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #208 on: December 24, 2024, 03:40:55 AM »
Hi Wim,
I use wsFctWxsimDPage.php for the desktop site and wsFctWxsimDSmall.php for the mobile version, where the display of $ws_wxsimP_heading is disabled on the latter.
I assume you find my forecast scripts and documentation pleasant to use. Nice forecasts, easy adaptable isn't?
You are using them on different platforms in different formats without having to write 1 line of code.

Quote
Would it be possible to fix the code so that $ws_wxsimP_times is created even if $ws_wxsimP_heading='not'?
One enhances code if there are new features to be installed.
One updates code if the external code is upgraded or changed such as PHP5 -> 7 > 8.
One fixes something such as my code, if there are errors.

Your problem is "solved" by a user setting which can be switched on or off.

Lines 69-71 in wsFctWxsimDSmall.php should read
Code: [Select]
#    the forecast time and expected new forecast
$ws_wxsimP_times        = true;       
#$ws_wxsimP_times        = false;

Also the best wishes for 2025,
Wim

P.S.
Why is a setting used for this?
Computing resources are not unlimited, at least they were severely limited when I started coding 55 years ago.
Therefor one does not generate and save on disk unneeded data.


P.S.
@ALL  Rethink "Do I you need support and adaptions a.s.o. in the future?"
There is a donation button on my demo and download page
And you can find them on all websites where you downloaded the other donation-ware you are using. The authors of the code you depend on to run a website will be grateful.


« Last Edit: December 24, 2024, 03:53:25 AM by wvdkuil »

Offline meteosa

  • Member
  • *
  • Posts: 30
Re: Support of the "Leuven" Forecast scripts
« Reply #209 on: December 28, 2024, 10:46:40 AM »
Hi,
a question, why in the mmet.no forecasts in the "6-hour interval forecast" and "Icons" table you don't see the first image?
https://www.meteosantangelo.it/wsfct4/wsFctMetnoPage4.php
https://www.meteosantangelo.it/wsfct4/wsFctMetnoSmall4.php
Thanks

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 2047
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #210 on: January 02, 2025, 03:41:56 PM »
Hi,
a question, why in the mmet.no forecasts in the "6-hour interval forecast" and "Icons" table you don't see the first image?
https://www.meteosantangelo.it/wsfct4/wsFctMetnoPage4.php
https://www.meteosantangelo.it/wsfct4/wsFctMetnoSmall4.php
Thanks

Because the icon information it is not always in the first raw data.
Skipping that part would also mean loosing the other available data.

Offline Tannachy

  • Member
  • *
  • Posts: 3
    • Portgordon Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #211 on: January 04, 2025, 03:06:05 PM »
Hi Wim,
Many thanks for your great forecast script. I have been using it on my site for several years.
I only have one issue though which I have tried to figure out for ages without success. On the 'Hourly Forecast' tab, sometimes the forecast shows details for the current day, and sometimes it jumps to the next day instead, and I can't figure out why it does this. Do you have any suggestions ?

Forecast page: https://www.portgordon.net/weather/wx_lvn_metno.php
Script folder: https://www.portgordon.net/weather/wsfct4/

Best Regards,
Andrew
« Last Edit: January 04, 2025, 03:25:18 PM by Tannachy »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 2047
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #212 on: January 06, 2025, 05:51:47 AM »
Hi Wim,
Many thanks for your great forecast script. I have been using it on my site for several years.
I only have one issue though which I have tried to figure out for ages without success. On the 'Hourly Forecast' tab, sometimes the forecast shows details for the current day, and sometimes it jumps to the next day instead, and I can't figure out why it does this. Do you have any suggestions ?

Forecast page: https://www.portgordon.net/weather/wx_lvn_metno.php
Script folder: https://www.portgordon.net/weather/wsfct4/

Best Regards,
Andrew

Hi Andrew,

I checked a few times past days but did not find that situation.
I will continue to check fior a few days more.

Wim

Offline Tannachy

  • Member
  • *
  • Posts: 3
    • Portgordon Weather
Re: Support of the "Leuven" Forecast scripts
« Reply #213 on: January 09, 2025, 06:23:58 AM »
Hi Wim,

Thanks for your response.

My issue usually happens a couple of times per day. Maybe Late morning and again late afternoon.
When it shows the following day instead.

Regards

Andrew.
« Last Edit: January 09, 2025, 06:49:12 AM by Tannachy »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 2047
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #214 on: January 09, 2025, 08:51:50 AM »
Hi Wim,

Thanks for your response.

My issue usually happens a couple of times per day. Maybe Late morning and again late afternoon.
When it shows the following day instead.

Regards

Andrew.

Early this morning I saw the missing lines at your site also.
Still the wsfct4/ scripts itself on your site work OK.
But they use different settings as you use the Saratoga settings as a starting-pont.

I myself have no working saratoga site so  I copied the settings and the page-setup to my test-site at home.

I will now check early in the morning if i can pin-point where the problem originates.

Wim

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 2047
    • My PWS at Leuven Belgium Europe
Re: Support of the "Leuven" Forecast scripts
« Reply #215 on: January 10, 2025, 08:15:03 AM »
Hi Wim,

Thanks for your response.

My issue usually happens a couple of times per day. Maybe Late morning and again late afternoon.
When it shows the following day instead.

Regards

Andrew.
This was a nice puzzle to find the cause of the missing 1 hr forecasts.  :grin:

Attached an updated script to solve the missing 1 hr forecasts.
wsIncMetnoCreate.php # 4.12 2025-01-10 skip incomplete 1hr parts

Make a backup of the current script before uploading the new version

As all data is cached it can take some time before new data is loaded from met.no
Use an option in the page URL ?force=metno to force a reload of the data.

Succes,
Wim

 

anything