Author Topic: Leuven-Template now End-Of-Live, but still supported  (Read 107905 times)

Blicj11

  • Storm
  • *****
  • Posts: 3941
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Leuven-Template available for WeatherCat
« Reply #75 on: October 29, 2015, 09:43:02 PM »
Wim:

Thanks for taking the time to share this helpful explanation of the iterations of Steelseries.
Blick


jhoke

  • Gentle Breeze
  • **
  • Posts: 56
  • this space for rent
    • EW5604
    • KPAALBRI11
    • Indian Mountain Lakes - Carbon County Weather
  • Station Details: Davis Vantage Pro2, MacMini (i5 2.5Ghz 4GBRam 500GB HD, 4TB attached storage), other bits coming soon (UV, etc)
Re: Leuven-Template available for WeatherCat
« Reply #76 on: November 03, 2015, 03:15:52 PM »
Thanks for your nice remarks about the Leuven-Template.
Before you start to tweak the steelgauges and spend to much time with it, here is the first version of the next release gauges. Works also inside release 2.8.

All scripts are checked and made ready for a long list of changes asked by the template users. This provisional version has
1. A clock gauge which should display the web-server time inside the header or on the start-page.
2. A separate clock demo script, if one wants a clock in the side-area.
3. Easier selecting which gauge should be displayed and how much on 1 line. Calculation of the number of rows/number of gauges is done inside the script.

Some of the upcoming changes:
1. Ajax support in the same way as the dashboard, no extra Steelseries file to download. Values on dashboard and gauges always the same.
2. Standalone gauges, for use on the dashboard
3. Multiple gauges for temp and humidity for display of multiple temps (outside, glasshouse1, glasshouse2, water) next to each other
4. A configuration tool to select the framedesign, colors and so on

But the most often asked extension: Your own set of colors to make "flat" gauges which blend in the background . Or have gauges with the same colours (also dynamically) as the rest of the website. "I want on my site GREEN gauges, and is should be my-green.  "

In use at my production site http://www.weerstation-wilsele.be/  and at some Dutch-user sites. No problems encountered.

Installation:
1. Make a copy/backup of the weather??/gauges/ folder and wsHeader3.php  script. (a simple rename will do)
2. Unzip attachement and
3. Upload the contents of the gauges2.9-1 folder  to your weather??/ folder replacing the current gauges/ folder and header script.

Tweak this 2.9 version and if you got improvements, let me know.

There will be two or three new gauges folders before roll-out of template release 2.9 in June next year.

Wim

Wim

Brilliant as always! up and running on my production site now http://weather.hoke.org/station/index.php?p=gaugePage&lang=en#data-area

I'm heading off to Australia and NZ for a few weeks... may take a look at tweaks while on the road if the weather isnt suitable for photography - otherwise when I get back - but I like this a *lot* and it seems to load faster (will run some testing tools when I get some down time).

Thanks again !

-john

testmatch

  • Gentle Breeze
  • **
  • Posts: 61
    • EW7347
    • IENGLAND665
    • Dunchurch Weather
  • Station Details: Davis Vantage Pro 2 Plus, Mac mini
Re: Leuven-Template available for WeatherCat
« Reply #77 on: December 23, 2015, 09:09:07 PM »
Version 2.8 is available now. Starting with a template became FAR MORE easier than before.

Especialy interesting for new users or those people who want to run Leuven- and Saratoga-Template  next to ech other.

New users benefit especialy from the on-line question and answer screens. No more typing in settings in a PHP script resdulting in far less typing errors and no more PHP errors. Explanation how it works at:  http://leuven-template.eu/dokuwiki28/doku.php?id=en:check_these_first


Thanks Wim,

I've finally decided to get a proper website, instead of using the relatively limited free space provided by my ISP, and found your template really easy to install and configure. Many thanks for that.

I've not finished yet, but I'll tweak the text over the next few weeks now almost everything is working properly.

I've got one problem you - or anyone else who has installed the template - will hopefully be able to help me with.

The inc/astronomy.php page (Sun/Moon/Earth > Sun and moon) at http://dunchurchweather.co.uk/weather28/index.php?p=astronomy&lang=en#data-area shows the rise and set times as 1am, and the log throws up lots of errors as follows:

Code: [Select]
[23-Dec-2015 12:35:22 Europe/London] PHP Notice:  Undefined index: moonrise in ...weather28/inc/astronomy.php on line 427
[23-Dec-2015 12:35:22 Europe/London] PHP Notice:  Undefined index: moonset in ...weather28/inc/astronomy.php on line 428
[23-Dec-2015 12:39:26 Europe/London] PHP Notice:  Undefined index: moonrise in ...weather28/inc/astronomy.php on line 427
[23-Dec-2015 12:39:26 Europe/London] PHP Notice:  Undefined index: moonset in ...weather28/inc/astronomy.php on line 428
[23-Dec-2015 12:39:47 Europe/London] PHP Notice:  Undefined variable: sunriseDate in ...weather28/inc/astronomy.php on line 518
[23-Dec-2015 12:39:47 Europe/London] PHP Notice:  Undefined variable: sunsetDate in ...weather28/inc/astronomy.php on line 519
[23-Dec-2015 12:39:47 Europe/London] PHP Notice:  Undefined variable: hoursofpossibledaylight in ...weather28/inc/astronomy.php on line 520
[23-Dec-2015 12:39:47 Europe/London] PHP Notice:  Undefined variable: moonriseDate in ...weather28/inc/astronomy.php on line 524
[23-Dec-2015 12:39:47 Europe/London] PHP Notice:  Undefined variable: moonsetDate in ...weather28/inc/astronomy.php on line 525
[23-Dec-2015 12:39:47 Europe/London] PHP Notice:  Undefined variable: moonriseDate in ...weather28/inc/astronomy.php on line 528
[23-Dec-2015 12:39:47 Europe/London] PHP Notice:  Undefined variable: moonsetDate in ...weather28/inc/astronomy.php on line 532
[23-Dec-2015 12:39:47 Europe/London] PHP Notice:  Undefined variable: moonsetDate in ...weather28/inc/astronomy.php on line 536
[23-Dec-2015 12:39:47 Europe/London] PHP Notice:  Undefined variable: moonriseDate in ...weather28/inc/astronomy.php on line 536
[

I've installed the updated inc/astronomy.php file from http://support.leuven-template.eu/problems28.php?lang=en but suspect I've entered something incorrectly in the settings file that may be causing the problem. Might that be the case?

The following extract sets the location and timezone:

Code: [Select]
# The location of your weatherstation on the globe
$SITE["latitude"]       = "52.342574";          # 30 = 70
$SITE["longitude"]      = "-1.290024";          # -30 = 40
#
# The timezone you are in and the language you use
$SITE["tz"]             = "Europe/London";
$SITE["lang"]           = "en";                 # en = English  |  nl = Dutch  |  fr = French  |  de = German

Does that look OK? I'm a little confused by the "30 = 70" and "-30 = 40" comments - have I entered the latitude and longitude correctly?

Is there anything else I need to give?

Thanks for any help anyone can provide.

John

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #78 on: December 23, 2015, 09:16:22 PM »
@testmatch
I am away from my computer, using an iPad. So helping you will be for tomorrow morning.

The settings are correct, the comments are the allowable range. Example 30 till 70

There are sometimes problems with retrieving the moon data, which results in zero time and invalid indexes.

I will check it first thing in the morning,

Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #79 on: December 24, 2015, 08:46:32 AM »

... shortened . . .

I've got one problem you - or anyone else who has installed the template - will hopefully be able to help me with.

The inc/astronomy.php page (Sun/Moon/Earth > Sun and moon) at http://dunchurchweather.co.uk/weather28/index.php?p=astronomy&lang=en#data-area shows the rise and set times as 1am, and the log throws up lots of errors as follows:

Code: [Select]
[23-Dec-2015 12:35:22 Europe/London] PHP Notice:  Undefined index: moonrise in ...weather28/inc/astronomy.php on line 427
[23-Dec-2015 12:35:22 Europe/London] PHP Notice:  Undefined index: moonset in ...weather28/inc/astronomy.php on line 428
[23-Dec-2015 12:39:26 Europe/London] PHP Notice:  Undefined index: moonrise in ...weather28/inc/astronomy.php on line 427
. . .

I've installed the updated inc/astronomy.php file from http://support.leuven-template.eu/problems28.php?lang=en but suspect I've entered something incorrectly in the settings file that may be causing the problem. Might that be the case?
. . .
John
The USNO website from which the "moon" data is loaded seems to be incompatible in talking to your webserver/hosting company.
There is no DNS-error => that is good
No IP blockade => that is good
But an error during exchanging information:
Code: [Select]
<!-- module astronomy.php (374) last error  = Recv failure: Connection reset by peer-->
I attach a test program to further test this on your server.
1. Unzip attachement
2. Place the test_usno.php script on your webserver in the root
3. Test  in your browser  dunchurchweather.co.uk/test_usno.php

The script contains a correct URL to retrieve the USNO information.

First it tries the standard PHP function CURL. That is the one which fails at your server now.
It then uses the file_get-contents function.

If the second one works, I can adapt the script. If that fails also you should contact your provider as they are the only ones to correct their server scripts which handles the CURL function.

This problem is occurring with other sites/scripts/template also, as most scripts loading information form external sources are moving away from low-level calls and file-get-contents type instructions towards CURL.

Please post a message when you installed the script, so I can check,

Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

testmatch

  • Gentle Breeze
  • **
  • Posts: 61
    • EW7347
    • IENGLAND665
    • Dunchurch Weather
  • Station Details: Davis Vantage Pro 2 Plus, Mac mini
Re: Leuven-Template available for WeatherCat
« Reply #80 on: December 24, 2015, 09:23:30 AM »
Many thanks Wim. It's installed.

It's interesting that you mention the hosting company's scripts. I am having a discussion with them at the moment about AWEKAS not able to access the file at http://dunchurchweather.co.uk/awekas_wl.html that should drive http://www.awekas.at/en/instrument.php?id=12700 but which currently doesn't. They've whitelisted AWEKAS, but the connection still fails, so I'm updating the file in Dropbox for now and hoping the hosting company can sort it out.

Might all this be connected?

They're very responsive and keen to help, so if they need to make a change, I'm hopeful they will do that.

John

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #81 on: December 24, 2015, 09:33:18 AM »
Many thanks Wim. It's installed.

It's interesting that you mention the hosting company's scripts. I am having a discussion with them at the moment about AWEKAS not able to access the file at http://dunchurchweather.co.uk/awekas_wl.html that should drive http://www.awekas.at/en/instrument.php?id=12700 but which currently doesn't. They've whitelisted AWEKAS, but the connection still fails, so I'm updating the file in Dropbox for now and hoping the hosting company can sort it out.

Might all this be connected?

They're very responsive and keen to help, so if they need to make a change, I'm hopeful they will do that.

John
You should indeed
1. contact your provider,
2.mention the problem
3. give them the link http://dunchurchweather.co.uk/test_usno.php
4. explain how to check the source http://dunchurchweather.co.uk/test_usno.php?sce=view

and ask them to solve the CURL problem.
Nothing we can do at the moment.

The USNO data is not only needed for the Astronomy page, but also for the startpage as Weathercat does not supply moondata.

===

It is not a blocking or dns problem, but a problem in the scripts handling the CURL request. 
Another provider had to change the PERL scripts handling their extensions to it.
But all this is inside the code they are responsible for and we can not change anything about it.

There is a small change that another PHP version could help, but I do not know if you yourself can switch to another PHP version.
Success, Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

testmatch

  • Gentle Breeze
  • **
  • Posts: 61
    • EW7347
    • IENGLAND665
    • Dunchurch Weather
  • Station Details: Davis Vantage Pro 2 Plus, Mac mini
Re: Leuven-Template available for WeatherCat
« Reply #82 on: December 24, 2015, 10:35:59 AM »
Thanks Wim,

They say:

Quote
Further to a few tests this side, can you please ask them to confirm what changes need to be made to the Perl script / handler?

Testing this side, the CURL function works, this is invoked and the response we receive is Recv failure: Connection reset by peer

This indicates that the traffic is accepted initially then dropped by them.

Do you know what the other provider you mention had to do? Or do you have any other information I could refer them to?

John

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #83 on: December 24, 2015, 10:45:48 AM »
. . . shortened . . .
This indicates that the traffic is accepted initially then dropped by them.
The dropping of communication occurs because of a response from your webserver. That is all I know.

That it works correctly at other places is shown by the hundreds of Leuven/Saratoga/other websites using CURL and or file_get_contents to access USNO.
Your test-script is also running at: http://wiri.be/test_usno.php without any problem

Quote
can you please ask them to confirm what changes need to be made to the Perl script / handler?
I have no idea as i do not speak PERL, but this message/problem was discussed on multiple fora. I will scan the fora later today and try to find a clue and post it.

Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

testmatch

  • Gentle Breeze
  • **
  • Posts: 61
    • EW7347
    • IENGLAND665
    • Dunchurch Weather
  • Station Details: Davis Vantage Pro 2 Plus, Mac mini
Re: Leuven-Template available for WeatherCat
« Reply #84 on: December 24, 2015, 10:55:10 AM »
Thanks - I've passed that on.

John

testmatch

  • Gentle Breeze
  • **
  • Posts: 61
    • EW7347
    • IENGLAND665
    • Dunchurch Weather
  • Station Details: Davis Vantage Pro 2 Plus, Mac mini
Re: Leuven-Template available for WeatherCat
« Reply #85 on: January 12, 2016, 12:01:30 PM »
Many thanks once again for your help with this, Wim.

It's taken a little while to resolve because of the Christmas and New Year break, but my hosting provider has now moved my site to a different server with finer-grained, bespoke, settings and your test script at http://www.dunchurchweather.co.uk/test_usno.php now works.  :)

It's not the end of the story and I'll need to tinker further when I get a bit more time as the sun and moon times at the top of http://www.dunchurchweather.co.uk/weather/index.php?p=astronomy&lang=en#data-area are still wrong. However as far as I can see the other oddities have been cured. I have got an incompletely-configured test installation of the Saratoga template (which I used to see which one I prefer), and that does now find the times as http://dunchurchweather.co.uk/Saratoga/wxastronomy.php shows.

So I think I've still done something wrong in the Leuven template, and will investigate further when I've time.

I've also had lots of people telling me how impressed they are with the site - which is entirely down to your template. So thanks for that too!  ;D

John

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #86 on: January 12, 2016, 12:18:42 PM »
Many thanks once again for your help with this, Wim.

It's taken a little while to resolve because of the Christmas and New Year break, but my hosting provider has now moved my site to a different server with finer-grained, bespoke, settings and your test script at http://www.dunchurchweather.co.uk/test_usno.php now works.  :)

It's not the end of the story and I'll need to tinker further when I get a bit more time as the sun and moon times at the top of http://www.dunchurchweather.co.uk/weather/index.php?p=astronomy&lang=en#data-area are still wrong. However as far as I can see the other oddities have been cured. I have got an incompletely-configured test installation of the Saratoga template (which I used to see which one I prefer), and that does now find the times as http://dunchurchweather.co.uk/Saratoga/wxastronomy.php shows.

So I think I've still done something wrong in the Leuven template, and will investigate further when I've time.

I've also had lots of people telling me how impressed they are with the site - which is entirely down to your template. So thanks for that too!  ;D

John
Can you please make a partly screenshot of the errors on a page?
When I check your startpage http://www.dunchurchweather.co.uk/weather/  => Moon: moonrise  9:15 am   moonset  7:39 pm
Same for the astronomy page: http://www.dunchurchweather.co.uk/weather/index.php?p=astronomy  Moonrise: 9:15 am  Moonset: 7:39 pm
Those times are the same as Moonrise: 09:15 (12/01/2016)  Moonset: 19:39 (12/01/2016) at the Saratoga page.

If you run into problems or need assistance, please make an extra FTP account for your weather/ folder so I can check more in detail.

IMPORTANT:  Most imported data is cached: Forecasts until a new forecast is available but at least 60 minutes, data from your uploads until a new upload is available, almanac data until there is a new day and so on.

So if you change a script or an important setting,  the output will not change directly. You can always clear the cache folder and all data will be reloaded.

Success, Wim

 
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

testmatch

  • Gentle Breeze
  • **
  • Posts: 61
    • EW7347
    • IENGLAND665
    • Dunchurch Weather
  • Station Details: Davis Vantage Pro 2 Plus, Mac mini
Re: Leuven-Template available for WeatherCat
« Reply #87 on: January 12, 2016, 12:50:22 PM »

IMPORTANT:  Most imported data is cached: Forecasts until a new forecast is available but at least 60 minutes, data from your uploads until a new upload is available, almanac data until there is a new day and so on.

So if you change a script or an important setting,  the output will not change directly. You can always clear the cache folder and all data will be reloaded.


Thanks Wim - I'd completely forgotten about the caching  :-[

I see the correct values now as well.

Thanks again - your support is greatly appreciated, in providing the templates, in helping users with them, and responding so quickly. I feel the need to use the 'Donate' button on http://support.leuven-template.eu/index.php?lang=en to express that gratitude in a more tangible way.  :)

John

meteo-thenioux

  • Gentle Breeze
  • **
  • Posts: 24
    • ICENTRE6
  • Station Details: DAVIS VANTAGE PRO/&VUE
Re: Leuven-Template available for WeatherCat
« Reply #88 on: June 18, 2016, 03:26:09 PM »
 [rainyluck]
OK I did a test installation
too much advertising marketting
I really do not like
a menu with too much information
I get nothing I try the method to remove the menu nothing works
Now there is a huge advertising facebook and twitter horrible creator

I want to remove menu and the pages

----> Wind map
----> SunCalc
----> developpement (all )
----> Rapports METAR proximit?
----> The weather in interesting cities nearby
----> Concernant  (all )
----> mesonet ( all )
----> more forescast ( all )
---> more advisories ( all )
---> more radar/map ( all )
---> sun/moon/earth ( all )
---> wind
---> arrNoaaWarnings
---> yr no  radar
---> rain_radar_europ

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #89 on: June 18, 2016, 03:40:57 PM »
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/