WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Custom Website Templates => Topic started by: wvdkuil on March 31, 2019, 08:49:11 AM

Title: Support for the "Leuven-Template" in 2019
Post by: wvdkuil on March 31, 2019, 08:49:11 AM
Download:
https://leuven-template.eu/leuven_download2019.php?id=template
WiKi :
EN https://leuven-template.eu/dokuwiki28/doku.php?id=en:start 
NL https://leuven-template.eu/dokuwiki28/doku.php?id=nl:start
Known issues:
EN https://support.leuven-template.eu/problems28.php?lang=en
NL https://support.leuven-template.eu/problems28.php?lang=nl

Demo:  https://support.leuven-template.eu/userlist.php?lang=en
All sponsors are listed there. You can sort on weather-program or country and visit a users-site near you.

Remarks:
This template is huge. It uses your station-data but also the data from all kind of different sources.
And those data-sites changes their API's multiple times / year.
So if you want to install the template as an extra to your main site,  "just for fun of installing" remember to delete the weather28/ folder at the end. The scripts can become obsolete without updates. The bots will continue to run the scripts and all kind of errors will flood your error logs.

Support:
Donation-ware
If you run the template for production  please remember, this template is "donation-ware" (https://en.wikipedia.org/wiki/Donationware) not free-ware or share-ware.
You find the donation-button at the sponsors-page (https://support.leuven-template.eu/userlist.php?lang=en)

Wim
Title: Re: Support for the "Leuven-Template" in 2019
Post by: txweather.org on March 31, 2019, 09:17:39 AM
Super awesome Wim! Thanks!
Title: Re: Support for the "Leuven-Template" in 2019
Post by: KapitainOne on April 06, 2019, 05:56:41 PM
Thanks for making it available again Wim, I downloaded, installed and got most of it working.
Solar isn't reporting as I expected but strongly suspect the problem is on my end using weewx and the weewx-wd skin to create that testtags.php file!
My Saratoga test template has an issue with this also.
No worries, I can live with it as it stands
Bill

Title: Re: Support for the "Leuven-Template" in 2019
Post by: captainjackfan58 on May 15, 2019, 04:15:16 PM
Super awesome Wim! Thanks!

This is awesome and what I want. But I have an Acurite Atlas and only can send info to WU so I am ready as soon as I get the zip file with the goods in it to upload to ftp on hosting site. :-)
Title: Re: Support for the "Leuven-Template" in 2019
Post by: krekel on May 19, 2019, 04:27:59 AM
There is a problem with the WU history page.
https://www.weerstation-assen.nl/weather28a/index.php?p=wsWUstart&lang=nl&ipad
Has it to do with the WU changes?

Brgds,
Oebel
Title: Re: Support for the "Leuven-Template" in 2019
Post by: djroby19 on May 19, 2019, 02:03:48 PM
There is a problem with the WU history page.
https://www.weerstation-assen.nl/weather28a/index.php?p=wsWUstart&lang=nl&ipad
Has it to do with the WU changes?

Brgds,
Oebel

And a problem with Wunderground servers
Title: Re: Support for the "Leuven-Template" in 2019
Post by: wvdkuil on May 19, 2019, 03:55:25 PM
ALL requests to the CSV data return
Quote
An error occurred while processing your request.
Reference #30.26bc3b17.1558295413.4ee19d6
Probably a temporary glitch since early this morning.
Lets see if it works on Monday
Wim
Title: Re: Support for the "Leuven-Template" in 2019
Post by: Mtn_man on May 20, 2019, 11:04:11 AM
Data extracted from WU with the "weather report" tab, is now blank for 2019.  No error messages, just a blank table.
Data for 2010 through 2018 does still display, and nothing prior to 2010.

Looking on WU site, my data goes back to January 2008, and 2019 data is there.  Prior to this my data on WU went back to March 2005, which it appears they have deleted. 

WU History Text and WU History Graphs do not display data, but without script errors.
Title: Re: Support for the "Leuven-Template" in 2019
Post by: krekel on May 20, 2019, 11:09:29 AM
Just read this post from Ken True:

I received word from Victoria Gardner and they have turned off (permanently) the old CSV query capability on the website.

Unfortunately, the PWS WU/API does not provide the full equivalent capability (missing month and year queries), and only specific date queries.

So.. for now, all scripts that used the CSV query are dead  (WU-History, etc).


So, nothing to do about it I think.

Brgds,
Oebel
Title: Re: Support for the "Leuven-Template" in 2019
Post by: wvdkuil on May 20, 2019, 11:34:58 AM
Just read this post from Ken True:

I received word from Victoria Gardner and they have turned off (permanently) the old CSV query capability on the website.

Unfortunately, the PWS WU/API does not provide the full equivalent capability (missing month and year queries), and only specific date queries.

So.. for now, all scripts that used the CSV query are dead  (WU-History, etc).


So, nothing to do about it I think.

Brgds,
Oebel
As all history scripts are affected, I need multiple days/weeks of recoding the scripts.
I am on vacation until June 3, with only an iPad. So nothing I can do or help with for now.

All users should make a copy of the WU-data which can be found in the cache/ folder.
We can not reload them so store those datasets on your PC also.

Wim
Title: Re: Support for the "Leuven-Template" in 2019
Post by: mldenison on May 20, 2019, 01:25:10 PM
Hi Wim,

Enjoy your vacation!

You'd helped me a few months ago on my question as to how to modify the main menu.  I've just started tackling that and have a few pages that don't work which I'd like to fix before reorganizing.

Right now, I'm trying to get the SPC Severe Weather and the SPC Sounding pages to load.  They're under the 'More Advisories' menu tab right now.

Both of them display nothing.  I looked in the php code for both and found that the http links don't work but do when they are https.  Changing them to https in the php code again returned nothing so I'm missing something it seems.  Any ideas - when you get back?

Also, the 'Nearby Buoys' (under Mesonet right now) did not work for the verbose buoy data.  I changed the URL$ to 'https://www.ndbc.noaa.gov/data/latest_obs/latest_obs.txt' from 'http://140.90.238.27/data/latest_obs/latest_obs.txt' in the ws_buoy_generate.php file which fixed the issue.

Here's the website link: http://www.m82a1.us/weather28/index.php?p=wsStartPage&lang=en (http://www.m82a1.us/weather28/index.php?p=wsStartPage&lang=en)

Thanks,
Mort
Title: Re: Support for the "Leuven-Template" in 2019
Post by: wsNoordbergum on May 28, 2019, 08:00:16 AM
Just read this post from Ken True:

I received word from Victoria Gardner and they have turned off (permanently) the old CSV query capability on the website.

Unfortunately, the PWS WU/API does not provide the full equivalent capability (missing month and year queries), and only specific date quer

So.. for now, all scripts that used the CSV query are dead  (WU-History, etc).


So, nothing to do about it I think.

Brgds,
Oebel
As all history scripts are affected, I need multiple days/weeks of recoding the scripts.
I am on vacation until June 3, with only an iPad. So nothing I can do or help with for now.

All users should make a copy of the WU-data which can be found in the cache/ folder.
We can not reload them so store those datasets on your PC also.

Wim

Thanks in advance Wim!

With kind regards wsNoordbergum
Title: Re: Support for the "Leuven-Template" in 2019
Post by: plex on February 16, 2020, 05:17:17 AM
Hi

How can I correct the link button, to show correct forecasts?

As it is now - all cities link to my own city forecast.

https://www.vejrstationen.dk/weather28/index.php?p=wsStartPage&wp=MB&lang=en (https://www.vejrstationen.dk/weather28/index.php?p=wsStartPage&wp=MB&lang=en)

Thanks

 [ You are not allowed to view attachments ]

Title: Re: Support for the "Leuven-Template" in 2019
Post by: wvdkuil on February 16, 2020, 05:30:02 AM
Hi
How can I correct the link button, to show correct forecasts?
As it is now - all cities link to my own city forecast.
https://www.vejrstationen.dk/weather28/index.php?p=wsStartPage&wp=MB&lang=en (https://www.vejrstationen.dk/weather28/index.php?p=wsStartPage&wp=MB&lang=en)
Thanks
That dashboard component can only link if you allow multiple forecasts in your settings.
Code: [Select]
# Multiple selections on forecast pages
$SITE["multi_forecast"] = true;                 # true = Enable this facility  |  false = Do not display
$SITE["multi_fct_keys"] = "./_my_texts/eu_multi_fct.txt";
Wim
Title: Re: Support for the "Leuven-Template" in 2019
Post by: plex on February 16, 2020, 06:17:46 AM
Hi
How can I correct the link button, to show correct forecasts?
As it is now - all cities link to my own city forecast.
https://www.vejrstationen.dk/weather28/index.php?p=wsStartPage&wp=MB&lang=en (https://www.vejrstationen.dk/weather28/index.php?p=wsStartPage&wp=MB&lang=en)
Thanks
That dashboard component can only link if you allow multiple forecasts in your settings.
Code: [Select]
# Multiple selections on forecast pages
$SITE["multi_forecast"] = true;                 # true = Enable this facility  |  false = Do not display
$SITE["multi_fct_keys"] = "./_my_texts/eu_multi_fct.txt";
Wim

 :oops:

Thanks Wim
Title: Re: Support for the "Leuven-Template" in 2019
Post by: plex on February 16, 2020, 08:08:52 AM
One more question regarding the Weather Report / wsReports.

https://www.vejrstationen.dk/weather28/index.php?p=wsReports&lang=en#data-area
 (https://www.vejrstationen.dk/weather28/index.php?p=wsReports&lang=en#data-area)

Data from the 1st of February to 4th of February is missing. Also most data from past years is missing, and I know from earlier, that some users has lost data from WU. But it doesn't seem to be the problem, as historical data is visible on WU webpage.

https://www.wunderground.com/dashboard/pws/IMIDTJYL15/graph/2020-02-2/2020-02-2/daily (https://www.wunderground.com/dashboard/pws/IMIDTJYL15/graph/2020-02-2/2020-02-2/daily)

My installation of the template is fresh, so I assume past fixes regarding WU is included.

What could be the problem?

Thanks in advance
Title: Re: Support for the "Leuven-Template" in 2019
Post by: wvdkuil on February 16, 2020, 08:49:13 AM
. . . shortened . . .
My installation of the template is fresh, so I assume past fixes regarding WU is included.
What could be the problem?
. . .
he problem, no new users since at least a year.
Almost all existing users implemented the update as attached.

As you can see yourself, you are the only post with an install in this topic.
Solution:

Wim

Title: Re: Support for the "Leuven-Template" in 2019
Post by: plex on February 16, 2020, 01:40:58 PM
. . . shortened . . .
My installation of the template is fresh, so I assume past fixes regarding WU is included.
What could be the problem?
. . .
he problem, no new users since at least a year.
Almost all existing users implemented the update as attached.

As you can see yourself, you are the only post with an install in this topic.
Solution:
  • You can install the KenTrue solution https://github.com/ktrue/WU-History and adapt the links
  • Or use my version as attached, a readme is in the download. This is the same solution as used in the PWS_Dashboard
  • Therefor you could also use the script PWS_DailyHistory.php 

Wim

Thanks Wim - I've implemented the attached fix - then time will tell [tup]

Title: Re: Support for the "Leuven-Template" in 2019
Post by: Torjan on February 25, 2020, 02:33:35 PM
Hi!
After my host moved me to a new server, some problem has appeared. It's one I don't figure out. The wind rose on my website is gone. error message is 404 not found. But it is there.
Appreciated if anyone could help.

http://foreneset.no/weather2/index.php

Torjan
Title: Re: Support for the "Leuven-Template" in 2019
Post by: wvdkuil on February 25, 2020, 03:28:36 PM
Hi!
After my host moved me to a new server, some problem has appeared. It's one I don't figure out. The wind rose on my website is gone. error message is 404 not found. But it is there.
Appreciated if anyone could help.
http://foreneset.no/weather2/index.php
Torjan

The Meteobridge template-value for wind-direction is invalid.
Change line  211 in scriptsMB/tags.mb.txt from
Code: [Select]
|windActDsc|[wind0dir-act=endir.0:--]|!to
Code: [Select]
|windActDsc|[wind0dir-act=endir:--]|!   ##  2018-11-26
Press reload template in the services tab of your Meteobridge for this upload and the wind-direction will be abvailable and added to the name of the wind-rose a.s.o.

Wim
Title: Re: Support for the "Leuven-Template" in 2019
Post by: Torjan on February 25, 2020, 03:43:54 PM
Hi!
Tanks! That was it.