Author Topic: Support for the "Leuven-Template" in 2019  (Read 12389 times)

0 Members and 1 Guest are viewing this topic.

Offline DGP

  • Member
  • *
  • Posts: 31
    • The Weather over here
Re: Support for the "Leuven-Template" in 2019
« Reply #50 on: December 16, 2020, 08:24:08 AM »
Ok thanks, that's nice Wim.
I have removed those WU links. But I asked the wrong question. I meant the menu item "configure your own settings"
For a visitor .... That is empty when it is clicked. I had already turned it off because not very important, but still.I like to understand how this works.

And as for the settings screen, if I turn debug back on, I do indeed get the main configuration screen back. If I go through that again, will the settings change again that I have made in various menus (php and xml files)? If so I will not touch it again... #-o

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support for the "Leuven-Template" in 2019
« Reply #51 on: December 16, 2020, 08:38:32 AM »
Ok thanks, that's nice Wim.
I have removed those WU links. But I asked the wrong question. I meant the menu item "configure your own settings"
For a visitor .... That is empty when it is clicked. I had already turned it off because not very important, but still.I like to understand how this works.
This one: => http://www.bdepoel.nl/weather28/index.php?p=wsCustomize&lang=en
The name used in the English menu reads "Customize" for me.

A partly empty page, missing footer and all other items which should be there:
==>  this signals a type 500 error, someone changed a script and now it fails.

To find  the error you should add &debug to the URL http://www.bdepoel.nl/weather28/index.php?p=wsCustomize&lang=en&debug
This helps you as you see all messages before Apache/PHP stops the processing
Code: [Select]
<!-- module index.php (346): Time spent until here: 0.015 seconds. Since last timestamp: 0 seconds.  -->
<!-- module index.php (352): loading  wsCustomize.php -->
<br />
<b>Parse error</b>:  syntax error, unexpected '}', expecting end of file in <b>/var/www/domains/bdepoel.nl/www/weather28/wsCustomize.php</b> on line <b>133</b><br />
Quote
And as for the settings screen, if I turn debug back on, I do indeed get the main configuration screen back. If I go through that again, will the settings change again that I have made in various menus (php and xml files)? If so I will not touch it again... #-o
No problem,  the settings are in 1 file and menus and your own PHP improvements are not discarded by adapting the settings.
Be it using the menu or directly editing the settings-file.

Wim
« Last Edit: December 16, 2020, 08:43:51 AM by wvdkuil »

Offline DGP

  • Member
  • *
  • Posts: 31
    • The Weather over here
Re: Support for the "Leuven-Template" in 2019
« Reply #52 on: December 17, 2020, 07:48:07 AM »
I don not understand why I lost the menu entry "Customize" is gone.
With or without debug on, its not visible. Anyway I went to line 133 in the file wsCustomize.php.  Compared that with the original file.  I don't see any difference.  I understand that this can / must be done in a different way, but could I also put the original over it?  Or will other changes be lost? In index.php I can not "see" anything specific in relation to dis. At least I think.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support for the "Leuven-Template" in 2019
« Reply #53 on: December 17, 2020, 08:20:01 AM »
I don not understand why I lost the menu entry "Customize" is gone.
With or without debug on, its not visible.
See my next post
Quote
Anyway I went to line 133 in the file wsCustomize.php.  Compared that with the original file.  I don't see any difference. 
This is PHP not a text file.
The error explains an unexpected } at line 133
So the error is before that } 
==> probably not on the same line
==> probably you inserted another } somewhere.

As nobody can display that script but you, I can not find the error for you.

WARNING: If you change someone else script you should test it and undo changes when it fails.
But in my opinion there is no reason at all to modify a system setup script  which is only used now and then.
Quote
I understand that this can / must be done in a different way, but could I also put the original over it?  Or will other changes be lost?
Off course you can replace the script with the original one.
The settings are not in that script but in another file

The only thing you should do is follow the extensive WiKi step by step and only make changes as explained in the WiKi.

If all is working as it is meant to be, then and only then you should start  changing other parts.
Please do it one small step at the time.
Quote
In index.php I can not "see" anything specific in relation to dis. At least I think.
No idea what you are talking about, sorry.
Why should you want to change index.php?

Wim
« Last Edit: December 17, 2020, 10:03:28 AM by wvdkuil »

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support for the "Leuven-Template" in 2019
« Reply #54 on: December 17, 2020, 08:39:21 AM »
You lost the customize page when you changed  the wsMenuData.xml
The download reads
Code: [Select]
<item nr = "wsCustomize"  show    = "cookieSupport"  caption = "Customize" link    = "wsCustomize.php" gizmo   = "1" />Your version  http://www.bdepoel.nl/weather28/wsMenuData.xml reads
Code: [Select]
<item nr="wsCustomize" show="no" caption="Customize" link="wsCustomize.php" gizmo="1"/>
Original version with the show = "cookieSupport"
==> the menu item is shown if cookie support is enabled in your settings
====> as user-customizing requires cookies
========> which requires customer approval.

In your version someone changed that line to show="no"
==> the menu item is not shown

Wim
« Last Edit: December 17, 2020, 08:45:01 AM by wvdkuil »

Offline DGP

  • Member
  • *
  • Posts: 31
    • The Weather over here
Re: Support for the "Leuven-Template" in 2019
« Reply #55 on: December 17, 2020, 10:01:20 AM »
You are (again) absolutely right Wim. Indeed, there is, in fact, no terrible need to change or fix this. That is and was my opinion too.
But I would also like to see for myself what I did wrong. I broke it now I want to get it right again. I will understand better how it works. So I'll keep looking when I feel like it again. If I understand you correctly then a '}' is the possible 'culprit'.
I know I messed with Yowindow in the beginning. Which did not work, after installation. As I now understand because flash must be installed.
As for index.php. I got the impression that there would be a causal relationship between wsCustomize.php and index.php regarding this issue. But I get that index.php is a routine ... and it also executes wsCustomize.php.

My apologies indeed I disabled that menu access myself because it didn't work. Stupid of me for forgetting that.

And yes, thank you for the advice and your patience with me. I will certainly do it (small!) Step by step. I have been doing that since I caused this problem anyway.

Offline northamptonwx

  • Member
  • *
  • Posts: 7
    • Northampton Weather
Re: Support for the "Leuven-Template" in 2019
« Reply #56 on: December 23, 2020, 07:37:01 AM »
Hey Wim,
I wanted to say that I love your template. I wanted to thank you for taking the time to share it and for the excellent support you give on these pages.

Merry Christmas

Kevin
PS Any idea when 2.9 will be ready? Do you need Beta testers?

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support for the "Leuven-Template" in 2019
« Reply #57 on: December 23, 2020, 08:22:34 AM »
Hey Wim,
I wanted to say that I love your template. I wanted to thank you for taking the time to share it and for the excellent support you give on these pages.

Merry Christmas

Kevin
PS Any idea when 2.9 will be ready? Do you need Beta testers?

Thanks for the nice words, but there will be no new Leuven-Template or Leuven-Scripts versions.
 
Better look at other templates and products.
The MeteoTemplate is fully supported by a young and bright author.
The Saratoga Template is supported by Ken True and has the advantage that there are dozens of script writers who understand the inner workings and can help with problems.
Also check the different dashboard products. Less complex and easier to maintain then the Leuven scripts..

The Leuven-Template & Scripts  are EOL with code from 2011 and onwards.
I am the only person with enough knowledge about the inner workings to maintain it.
It would be a shame to post  new versions now,  while knowing that in a few years nobody will be there to maintain the scripts.

Wim

Offline meteocharleroi

  • Member
  • *
  • Posts: 4
Re: Support for the "Leuven-Template" in 2019
« Reply #58 on: January 06, 2021, 03:00:29 PM »
Hi,

I do not know if there is still support for the forecast wxsim script but I discover  a small "bug" in the graph forecast for snow.

The graph show a value in cm but if you check the files, it is mm and not cm

In the image attached you see it forecast almost 15 cl of snow but it is really 1,5c ou 15 mm.

 [ You are not allowed to view attachments ]

Adress of the site : http://www.meteocharleroi.be

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support for the "Leuven-Template" in 2019
« Reply #59 on: January 07, 2021, 05:23:03 AM »
Hi,
I do not know if there is still support for the forecast wxsim script but I discover  a small "bug" in the graph forecast for snow.

I still support all scripts I developed. Check https://support.leuven-template.eu/  it list support-links for all scripts.
There is a separate topic on this forum for the forecast scripts.
You can find it here:  https://www.wxforum.net/index.php?topic=36478.msg374490#msg374490
If you have other questions, please post hem there.
Quote
The graph show a value in cm but if you check the files, it is mm and not cm
In the image attached you see it forecast almost 15 cl of snow but it is really 1,5c ou 15 mm.
[attachment id=1 msg=421977]
Adress of the site : http://www.meteocharleroi.be
This is the link to your Leuven-Wxsim forecast-script http://www.meteocharleroi.be/wsfct4/wsFctWxsimDPage.php
You can always check the file used by adding ?debug&force=wxsim
That way a lot of extra debug information is added as html comments.

There you can read  the link to the file you ask me to check: http://www.meteocharleroi.be/latest.csv
I attach an image of excel when it reads that .csv file:
Excel always has problems with the .csv so check carefully, easy way use the odd-lines only.
First row contains the field-names
Second row shows the unit used for that field, for snow that is cm
As it is in the  nearly not-existing "what is called" documentation also.

Can you please post a link of the file which you ask me to check?  Where  it is set as mm?
As I read from your message you are sure that something is wrong with the snow-height calculation in my script.

Thank you for testing my donation-ware forecast scripts.

Wim
« Last Edit: January 07, 2021, 05:32:55 AM by wvdkuil »

Offline meteocharleroi

  • Member
  • *
  • Posts: 4
Re: Support for the "Leuven-Template" in 2019
« Reply #60 on: January 07, 2021, 05:42:43 AM »
Hi,

Thanks for the answer.

In fact the file is correct but not the import in XLS.

You have first to replace all <space>, by an column before converting it due to the fact tha there some value with decimal comma.

I have done it and you cna donwload here :  http://www.meteocharleroi.be/latestok.xslx

And on this image, you can see that the graph is not showing correct value

 [ You are not allowed to view attachments ]

Regards


Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support for the "Leuven-Template" in 2019
« Reply #61 on: January 07, 2021, 05:48:43 AM »
Hi,

Thanks for the answer.

In fact the file is correct but not the import in XLS.

You have first to replace all <space>, by an column before converting it due to the fact tha there some value with decimal comma.

I have done it and you cna donwload here :  http://www.meteocharleroi.be/latestok.xslx

And on this image, you can see that the graph is not showing correct value

 [ You are not allowed to view attachments ]

Regards
Most users use the wxsim option to use ; as separator for the wxsim csv files. Makes live easier to use the file in other programs.
In this case I can only advise you to use one of the other WXSIM scripts. Most scripts use lastret.txt.
Success, Wim

Offline meteocharleroi

  • Member
  • *
  • Posts: 4
Re: Support for the "Leuven-Template" in 2019
« Reply #62 on: January 07, 2021, 05:50:27 AM »
ok thanks..

But I will try with the ; as separator.

Perhaps it will help.

Thanks

Offline meteocharleroi

  • Member
  • *
  • Posts: 4
Re: Support for the "Leuven-Template" in 2019
« Reply #63 on: January 07, 2021, 08:17:41 AM »
Hi,

Seems the change to semi column has separator have solved the problem !

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Support for the "Leuven-Template" in 2019
« Reply #64 on: March 02, 2021, 01:58:00 PM »
Good evening Wim since yesterday the template is not working properly it seems that something is broken do you have any ideas?
I have identified the problem, it is the wsDashForecast.php metno predictions

https://www.meteopomezia.it/weather28/index.php
http://www.viterbometeo.it/weather28/index.php
http://www.meteoipassi.it/weather28/index.php

« Last Edit: March 02, 2021, 02:30:14 PM by djroby19 »

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support for the "Leuven-Template" in 2019
« Reply #65 on: March 02, 2021, 03:04:23 PM »
Good evening Wim since yesterday the template is not working properly it seems that something is broken do you have any ideas?
I have identified the problem, it is the wsDashForecast.php metno predictions

https://www.meteopomezia.it/weather28/index.php
http://www.viterbometeo.it/weather28/index.php
http://www.meteoipassi.it/weather28/index.php

Met.no changed the version number from 1.9  to 2.0
Also they changed default .xml to .json.
For xml you need to add /classic

Find the line with
Code: [Select]
  0 => 'https://api.met.no/weatherapi/locationforecast/1.9/?lat=',change it to
Code: [Select]
0 => 'https://api.met.no/weatherapi/locationforecast/2.0/classic/?lat=',
Succes.

===================================================
Leuven template is EOL.  Check these templates to replace the Leuven one.

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  at https://pwsdashboard.com

If you already use another template, please remove the weather28/ folder from your website.
« Last Edit: March 02, 2021, 03:06:07 PM by wvdkuil »

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Support for the "Leuven-Template" in 2019
« Reply #66 on: March 02, 2021, 03:09:39 PM »
Sorry Wim where should I change the line on which file?

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support for the "Leuven-Template" in 2019
« Reply #67 on: March 02, 2021, 03:20:54 PM »
Sorry Wim where should I change the line on which file?

https://www.meteopomezia.it/  => meteotemplate => remove the weather28/ folder => problem solved

The other two sites should be moved to another template.   That is the best solution.
I am now away from my own computers tonight.
I will check tomorrow when I am back at home if I can find the line numbers.

Probably it is line 53 in wsmetno3/metnoCreateArr.php

Wim
« Last Edit: March 02, 2021, 03:22:33 PM by wvdkuil »

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Support for the "Leuven-Template" in 2019
« Reply #68 on: March 02, 2021, 03:27:33 PM »
Ok Wim it worked thanks a lot
« Last Edit: March 02, 2021, 03:32:36 PM by djroby19 »

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Support for the "Leuven-Template" in 2019
« Reply #69 on: March 02, 2021, 03:32:43 PM »
Ok wim Thanks

Maybe you could also change on your sites in  line 125 of   uvforecastv3.php  the http:// to https://
Code: [Select]
$fullurl        = 'https://www.temis.nl/uvradiation/nrt/uvindex.php?lon='.$uvlon.'&lat='.$uvlat;That removes the bold printed messages The UV Index Forecast is currently not available

Wim

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Support for the "Leuven-Template" in 2019
« Reply #70 on: March 02, 2021, 03:41:18 PM »
Ok wim Thanks

Offline MarkDM

  • Member
  • *
  • Posts: 9
    • Weerstation Berlare
Yrno -->> Metno
« Reply #71 on: February 20, 2022, 06:32:19 AM »
I want to replace the yrno-script by a metno-script in my Leuven-template website.
Is this somewhere documented ? It is not working for me, I have not much knowledge of php etc.
https://weerstationberlare.be/index.php?mobi=11

What have I done yet:

    I copied the file _metric_settings.php to the map /mobi and customised it. Is this last necessary in a Leuven Leuven-template site ?
    I copied the file wsFctMetnoSmall4.php to the map /mobi and customised it. I changed the setting "$needs_html     = false;"
    In the file mobi.php I modified the call to the yrno-script.
 
Quote
        #
        # page mobi = 11 - forecast  -----------------------------------
        #
        elseif ($mobi == 11) {
                include('wsFctMetnoSmall4.php');
                }
        #
How can I do more debugging ?
Thank you for any help.

The goal is something like this:
https://weer.sluispark.be/index.php?mobi=11
Is it with an iFrame ?

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Yrno -->> Metno
« Reply #72 on: February 20, 2022, 06:41:28 AM »
I want to replace the yrno-script by a metno-script in my Leuven-template website.
Is this somewhere documented ? It is not working for me, I have not much knowledge of php etc.
https://weerstationberlare.be/index.php?mobi=11
You are already using the met.no fore cast in your website.
https://weerstationberlare.be/index.php?p=wsForecast&lang=nl

But that will not function for the old phone page as that is obsolete.

. . .
The goal is something like this:
https://weer.sluispark.be/index.php?mobi=11
Is it with an iFrame ?

No, that is the beta release a new version of the Leuven-Template.
It was abandoned  in 2019 because of lack of interest , even refusals from 99% of the users to donate to cover my costs.
Therefor the Leuven Template is EOL.

Check these interesting and well supported Weather-website templates as a replacement

MeteoTemplate: http://www.meteotemplate.com/web/index.php

Saratoga Template & Scripts: https://saratoga-weather.org/wxtemplates/

weather34, the original dashboard version: Weather34 Meteobridge Master Template Download (now for Meteobridge ONLY)

PWS_Dashboard All information: https://pwsdashboard.com

===
Edit 2022-02-25 added new link for weather34
« Last Edit: February 25, 2022, 05:56:28 AM by wvdkuil »

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Re: Support for the "Leuven-Template" in 2019
« Reply #73 on: February 20, 2022, 08:05:34 AM »
Looks like Weather34 is ending too

I thought your Leuven script was very popular, its certainly my favourite script.
Kind regards
Bashy

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Yrno -->> Metno
« Reply #74 on: February 21, 2022, 04:32:25 AM »
. . .
https://weerstationberlare.be/index.php?mobi=11
. . .

Because I had to stay in quarantine this weekend after corona contamination of my partner, I suddenly had a some extra  "free time".

The "mobi -> 11" forecast script has been replaced with a met.no version.

Update at the "problems" page: https://support.leuven-template.eu/problems28.php?lang=en
The zip has a readme also.

Wim