WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Custom Website Templates => Topic started by: wvdkuil on April 28, 2013, 08:53:51 AM

Title: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on April 28, 2013, 08:53:51 AM
Removed old outdated post with all new information below:

I tried to move all template / scripts to one location

Leuven-Template Download and support at support => template (https://support.leuven-template.eu/index.php?lang=en)
Current version Template: 2.8x is fully PHP7.2 - UTF-8  HTML-5  HTTPS compliant

===========================

All scripts  Download, Demo  and support at support => scripts (https://support.leuven-template.eu/scripts.php?lang=en)

Forecast scripts version 4 usable in all regionsFor  Canada 1 script  using Environment Canada data.
For the USA 2 different scripts using NOAA/NWS data for a "Map-Click"  type and 1 using SOAP data.
Other forecast scripts  for UV and for HWA,  a local Dutch provider.

AirQuality scripts for PurpleAir sensor and Luftdaten sensor  both in two different versions

WeatherAlarm for Europe / Meteoalarm

WeatherUnderground stations-data is used for a "ColoredTables" type script and for another clone of the  "WU-History" script.

All scripts are usable stand-alone and in the Saratoga Template directly form the download.
And most of them are also included in the Leuven-Template.

===========================

I will not post individual links as they tend to change (my fault) to much.
So visit the scripts support (https://support.leuven-template.eu/scripts.php?lang=en) or template support (https://support.leuven-template.eu/index.php?lang=en) page and you will find all links there.

Wim van der Kuil

P.S. Now I have to scan all post to find other old links.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on April 28, 2013, 11:11:12 AM
Very well done Wim.  I have scanned the documentation and seems overwhelming.  How easy difficult is it to use the template in North America?  By the way I was born and lived until age 10 near Heist op den Berg so know about the chocolates (periodically our lunch for school consisted of a chocolate bar sandwich).

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 28, 2013, 11:19:49 AM
Well, units of measurement C-F and so on  no problem. 
You can test that using the personalize menu choice when loking at a demo site.

My english is no problem either because there is a langlookup from internal text (in my english) to decent english.
Although you have to iron out the language errors for yourself and future users by changing the language file for that.

The nasty diffferences are in meteowarnings  and those things.
I looked at different sites and although it does not looks overwhelming, some precise work has to be done to find the correct sources for USA and or Canada information.
I can do that if supplied with examples how it should look as compared to other sites.

Have a nice sunday, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on April 28, 2013, 02:13:26 PM
Hi Wim,
I tried the easy YrNo stand-alone download first but have a couple of errors
edited url: http://www.komokaweather.com/wsMetNoSA/metnoFullPage.php (http://www.komokaweather.com/wsMetNoSA/metnoFullPage.php)

The test
1) I edited the $SITE for my location, name and website
2) entered my 'lat.' and 'long.'
3) changed local time from 'Europe/Brussels' to 'America/Toronto'
4) changed 'nl' to 'en' for default language

As you can see from the above link it shows an error but I have not made any change at all in 'metnoGeneralHtmp.php'
and the 'Updated" date is incorrect

Any suggestion where/how to correct the settings?

Thanks,
Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on April 28, 2013, 02:21:25 PM
Good news is that the error has disappeared.  The update time is still incorrect.

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 28, 2013, 02:29:26 PM
thanks for finding this date/time problem, probably a strict european date program line i used.
i have had no other users than west-european ones.
i will also post an updated version of the sript as i do not tested  how to attacha script to a posting on this forum.
i hope it works because i saw an error in the icon part which is solved yesterday but not made it up to the download area, i think.

i will look into the date/time problem tomorrow as it is evening here already.

PLEASE be aware that you have to clean the cache as you make any changes.
In the cache an intermediate PHP array of retrieved data is kept to speed things up.
But changes in the settings can sometimes result in strange errors.

Have a nice day, Wim




Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on April 28, 2013, 02:41:23 PM
Thanks Wim for your quick reply.  You likely also noticed that the date error also displays in the 'demo' test page. I did notice from the instruction to clear the cache folder and have been doing that.

edit: also notice the "48 hour detail" does not display
Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: saratogaWX on April 28, 2013, 05:34:35 PM
Congratulations Wim (and your crew) on a very slick template set!   \:D/

I am very pleased to see that some of my code is recycled and re-purposed (and even enhanced) to offer weather enthusiasts another option for a comprehensive personal weather website supporting multiple languages and weather software types.

Again, great job!   =D>  =D>  =D>

Best regards,
Ken
 
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 29, 2013, 08:24:17 AM
Thanks Wim for your quick reply.  You likely also noticed that the date error also displays in the 'demo' test page. I did notice from the instruction to clear the cache folder and have been doing that.

edit: also notice the "48 hour detail" does not display
Paul
Good morning there in Canada. The time difference give me ample oppertunity to check what is going on. The MetNo/YrNo forecasts for your area only includes in the xml 3 hour data. In Europe we get in the same xml 1 and 6 hour data for the first 48 hours and then more 6 hour data for the rest of the forecast. So I have to rewrite a few things after looking into other areas of the globe to see what kind of forecast time-frames are used.
I include the changes in two scripts to address the time errors and an error in colorizing the temperatures for C to F  conversion I found.
I will look into adding the translations for the conditions (f.i.  LIGHTRAIN) in the coming days. They are translated to dutch but i forgot the translation to English.
This is a one persons business but very pleasant to do, but sometimes it takes a few days to get it all done. The adapted scripts you will find in the attachement.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on April 29, 2013, 11:16:52 AM
Bedankt Wim for your excellent follow up.  The time issue is now resolved.

A couple of items I notice and this may still be related to the 1 hour matter but want to let you know in case it is of assistance.
1) "Notice" showing for line 223 in new "metnoGenerateHtml.php" which is
Quote
$returnArray['forecast'][$i]['rain1Hr'] = (string) wsConvertRainfall($amount, $this->uomRain,$SITE['uomRain']);
2) In the detail forecast "Wednesday 01 May 2013" is missing as it displays from "Tuesday 30 April 2013" then "Thursday 2 May 2013"

Thanks for sharing the scripts and I am glad to experiment for your modification for Canada, but with only my very limited knowledge.

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherc on April 29, 2013, 02:11:24 PM
@wvdkuil

Just a note, yr.no-logos are NOT allowed to be used.

I know my old yr-scripts use it but got a message about it from YR.

// Henkka
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 29, 2013, 02:33:01 PM
@wvdkuil

Just a note, yr.no-logos are NOT allowed to be used.

I know my old yr-scripts use it but got a message about it from YR.

// Henkka
I reread the licence instructions, they are now clear to me. One have to give credit and a logo.
http://api.yr.no/license_data.html (http://api.yr.no/license_data.html) But I missed the link. The logo should be of Met.no.  Ok I will use that from now on.
Thanks for the warning,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on May 06, 2013, 09:03:55 PM
Hi Wim,

I have your 3 in 1 script working here: 3 in 1 (http://sacrey.info/wsWxsimSA/start3in1.php)

Also have gotten the page to validate HTML5, and it looks real good on my iPad.

Thanks for an awesome script.

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on May 06, 2013, 10:43:47 PM
John,
Your wsWXsimSA looks very nice =D>

I am trying the Yr.No version and still have this
Quote
Notice: Undefined variable: color in /home/content/p/a/u/paulmy/html/wsMetNoSA/metnoGenerateHtml.php on line 223
and line 223 reads
Quote
$color = $tempArray2[$color + 30];
with the number 30 in orange colour.  http://www.komokaweather.com/wsMetNoSA/metnoFullPage.php (http://www.komokaweather.com/wsMetNoSA/metnoFullPage.php)

Also I frequently have one day missing from the details (now Thursday is missing) and it usually is the 3rd day in the forecast, and the '48 hours details' tab is not showing anything.

I will wait for Wim to get back, unless someone has any suggestions?

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on May 07, 2013, 06:54:20 AM
Hi Paul,

Try this, but first make a backup copy of your metnoFullPage.php. Open up metnoFullPage.php and scroll down to lines 85 and 86 which have:

   <meta http-equiv="Pragma" content="no-cache" />
   <meta http-equiv="Cache-Control" content="no-cache" />

Delete these lines, save it and reupload it to your webserver.  I had the same issues with mine until I got rid of those 2 lines and the error disappeared.

Hope that helps,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 07, 2013, 07:04:03 AM
John,
Your wsWXsimSA looks very nice =D&gt;

I am trying the Yr.No version and still have this
Quote
Notice: Undefined variable: color in /home/content/p/a/u/paulmy/html/wsMetNoSA/metnoGenerateHtml.php on line 223
and line 223 reads
Quote
$color = $tempArray2[$color + 30];
with the number 30 in orange colour.  http://www.komokaweather.com/wsMetNoSA/metnoFullPage.php (http://www.komokaweather.com/wsMetNoSA/metnoFullPage.php)

Also I frequently have one day missing from the details (now Thursday is missing) and it usually is the 3rd day in the forecast, and the '48 hours details' tab is not showing anything.

I will wait for Wim to get back, unless someone has any suggestions?

Paul
Sorry, but the current YrNo/MetNo script is usefull in Europe only, due the different xml feeds used between Europe and Canada/US. I am working on a more general solution but that will take some time. End of this month it will be tested and ready for deployment. I will certainly contact you to be the first to know.
Wimworking on a
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on May 07, 2013, 08:51:53 AM
Thanks for the suggestion John, and I have made the change but the message is still there.  I will wait for Wim's rework.

Thanks Wim for your work on this.

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 13, 2013, 10:28:11 AM
Thanks for the suggestion John, and I have made the change but the message is still there.  I will wait for Wim's rework.
Thanks Wim for your work on this.
Paul
OK, there is a version which probably works in Toronto Canada.  But the xml feeds are not that detailed as with Eropean places. I used the original YrNo feeds so the settings of the city you want a forecast for, has to be exact and known to YrNo.
This is how it works with the Saratoga template http://www.wiri.be/saratoga/wxyrnoFcstpage.php?lang=en (http://www.wiri.be/saratoga/wxyrnoFcstpage.php?lang=en)
The demo page: http://www.weerstation-leuven.be/wsYrNoSA/printDemo.php?lang=en (http://www.weerstation-leuven.be/wsYrNoSA/printDemo.php?lang=en)
Download from the Leuven site: http://www.weerstation-leuven.be/wsYrNoSA/printDemo.php?lang=en (http://www.weerstation-leuven.be/wsYrNoSA/printDemo.php?lang=en)
===
Please be aware there are two YrNo (or MetNo) scripts. The YrNo script uses city names such as Canada/Ontario/Toronto for which two xml files needs to be downloaded. The MetNo scripts use Latitude/Longitude and are driven by 1 combined xml file.  At the moment the YrNo script works also for USA and Canada.  The Metno script works fine in Europe but still needs some adaptions before I can release it for NA.
I hope this version works better with you, have a nice day,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on May 13, 2013, 10:42:20 PM
Hi Wim,
Thanks for the updates and accommodating North America.  I have the scripts working http://www.komokaweather.com/wsYrNoSA/printFull.php (http://www.komokaweather.com/wsYrNoSA/printFull.php) and all seems very good.
and also with the Saratoga template http://www.komokaweather.com/wxyrnoFcstpage.php (http://www.komokaweather.com/wxyrnoFcstpage.php).  Just a little bit of tinkering to fix my initial mistakes and a couple of typo corrections in the scripts (renaming from folder wsYrnoSA to wsYrNoSA in printSaratoga.php and wxyrnoFcstpage.php).

I reviewing the forecast on both of them I observed some differences and note that with the printFull.php it shows "Weather forecast for:" whereas in the wxyrnoFcstpage.php it shows "MetNoForecast.  Did I mess up some settings perhaps; as you indicated that the MetNo is not yet released to the public, or am I misunderstanding YrNo vs MetNo? 

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 21, 2013, 10:57:05 AM
As promissed the scripts for using MetNo forecasts (by latitude and longitude) are adapted to North America now. They are slightly easier to implement compared to the YrNo scripts because one does not need an exact country/region/city code.

MetNo forecast demo: http://www.weerstation-leuven.be/wsMetNoSA/printDemo.php?lang=en (http://www.weerstation-leuven.be/wsMetNoSA/printDemo.php?lang=en)
The demo page links to different versions of the script (large small icons-only Saratoga).
These and other downloads: http://www.weerstation-leuven.be/ (http://www.weerstation-leuven.be/)
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KapitainOne on May 24, 2013, 02:40:29 PM
I've been playing with your scripts here http://www.sanfordweather.com/wxmetnoFcstpage.php and if you notice the top forecast reads the first two columns right but the third will be a day out!

IE right now it reads
this afternoon    Friday evening    Saturday night    Saturday morning
where it should be
this afternoon    Friday evening    Friday night    Saturday morning

I noticed your demo site is similar!

Have I configured a date option wrong somewhere?

Thanks
Bill
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 24, 2013, 03:46:55 PM
I've been playing with your scripts here http://www.sanfordweather.com/wxmetnoFcstpage.php and if you notice the top forecast reads the first two columns right but the third will be a day out!
IE right now it reads
this afternoon    Friday evening    Saturday night    Saturday morning
where it should be
this afternoon    Friday evening    Friday night    Saturday morning
I noticed your demo site is similar!
Have I configured a date option wrong somewhere?
Thanks
Bill
Hello Bill,
Different languages-different countries-different names for the same things.
As I understand you correctly you would prefer
                 2013-05-25  which is Saterday
18:00-24:00 Saterday evening 
                 2013-05-26 which is Sunday
24:00-06:00 Saterday night
06:00-12:00 Sunday morning
12:00-18:00 Sunday afternoon
18:00-24:00 Sunday evening
                  2013-05-26 which is Monday
24:00-06:00 Sunday night
06:00-12:00 Monday morning

An extra problem with these forecasts is that they do not follow nicely the 6 hour 00-06-12-18-00  time frame but are 0, 1 or 2 hours off. That is because they are based on 6 hours Zulu (Greenwich) time.
I propose to make a setting so that everybody can choose if the first 6 hour period of a calender day is called the night of the previous day.
OK?
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KapitainOne on May 24, 2013, 03:51:39 PM
Wim

Yes I think that will work!

Bill
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on May 25, 2013, 12:25:00 PM
Hi Wim,
I have downloaded and added the wsMetNoSA script but it is not working correctly for me http://www.komokaweather.com/wxmetnoFcstpage.php (http://www.komokaweather.com/wxmetnoFcstpage.php).  I have edited metnoSettings.php as follows:
Quote
$SITE['yourArea']      = 'Komoka, Ontario (Canada)';         // #####   example   Leuven
$SITE['organ']         = 'KomokaWeather';   // #####         Weerstation Leuven
$SITE['siteUrl']      = 'www.komokaweather.ca';   // #####         www.weerstation-leuven.be
#
$SITE['latitude']      = '42.9542444';         // #####   North=positive, South=negative decimal degrees
$SITE['longitude']      = '-81.4348861';         // #####   East=positive, West=negative decimal degrees
but shows "MetNoForecast. yourArea" and "by: yourStationName".  Any suggestion on how to have the MetNo script show the correct $SITE{'yourArea'] and ['organ'] information?

Also, the forecast is not correct as it shows temperature and other conditions way different than Environment Canada local forecast and also way different than the YrNo script http://www.komokaweather.com/wxyrnoFcstpage.php (http://www.komokaweather.com/wxyrnoFcstpage.php) which appears to be pretty close to EC for our area.  The YrNo script seems to be working fine.  Any suggestion on how to make the MetNo script show the correct forecast for my area?  The YrNo site http://www.yr.no/place/Canada/Ontario/Komoka/ (http://www.yr.no/place/Canada/Ontario/Komoka/) seems to show the correct forecast as well.

The yrnoSettings.php is:
Quote
$SITE['yrnoID']         = 'Canada/Ontario/Komoka';   // #####   added home location
// $SITE['yrnoID']         = 'Canada/Ontario/London';   // #####   added alternate location
// $SITE['yrnoID']         = 'Canada/Ontario/Toronto';   // #####   generic adres
// $SITE['yrnoID']         = 'Belgium/Flanders/Leuven';   // #####   generic adres
$SITE['yrnoIconsOwn']   = true;             // #####   use original yrno icons or our general icons (false)
#
$SITE['yourArea']      = 'Komoka, Ontario (Canada)';         // #####   example   Leuven
$SITE['organ']         = 'KomokaWeather';   // #####         Weerstation Leuven
$SITE['siteUrl']      = 'www.komokaweather.com';   // #####         www.weerstation-leuven.be
#
$SITE['latitude']      = '42.9542444';         // #####   changed to Komoka from for Toronto North=positive, South=negative decimal degrees
// $SITE['latitude']      = '50.89518';           // #####   for Leuven
$SITE['longitude']      = '-81.4348861';         // #####   changed to Komoka from for Toronto East=positive, West=negative decimal degrees
// $SITE['longitude']      = '4.69741';         // #####   for Leuven

I don't really need both YrNo and MetNo but just trying them and see which I would prefer.

Thanks for your work on this,
Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 26, 2013, 10:07:12 AM
Hi Wim,
I have downloaded and added the wsMetNoSA script but it is not working correctly for me http://www.komokaweather.com/wxmetnoFcstpage.php (http://www.komokaweather.com/wxmetnoFcstpage.php).  I have edited metnoSettings.php as follows:
. . . removed to shorten
but shows "MetNoForecast. yourArea" and "by: yourStationName".  Any suggestion on how to have the MetNo script show the correct $SITE{'yourArea'] and ['organ'] information?

Also, the forecast is not correct as it shows temperature
. . . remove to shorten
I don't really need both YrNo and MetNo but just trying them and see which I would prefer.

Thanks for your work on this,
Paul
Hello Paul,
The stand alone versions use the settings file.
The saratoga version do not, as they can use the settings from within the Saratoga template.
First time installing follow these steps:
1. Move the wsMetNoSA folder to the root of the website
2. Modify the settingsfile and test
All translated metno xml's are cached inside the wsMetNoSA/cache/ folder.
So with every change in the settings, please clear the cache file.
When everything is OK:
3. Modify the settings inside the wxmetnoFcstpage by either supplying the correct values when there is no equivalent Saratoga setting or mark the line as comment.
4. Move the wxmetnoFcstpage to the Saratoga folder (mostly the root).
5. Test the page and when everything is OK  add an entry to the menu.
Now all translated metno xml's are cached inside the Saratoga  cache/ folder.
Again, with every change please delete the cache file.
Cache files are coded like: metnoCreateArr.php-50.89518-4.69741-C-kmh-mm-hPa

In your case you changed the Latitude and Longitude in the settingsfile but that affected only the stand-alone / demo versions.
There are numerous versions of Saratoga-settings files, often modified by their users.
So therefor when running inside the Saratoga template you have to check the settings inside the wxmetnoFcstpage.php. In your case the lat/long  were probably set to somewhere in Europe.
I hope this clarifies things,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on May 27, 2013, 09:59:56 PM
Hi Wim,
That was easy, just had to edit the wsMetNoSA printSaratoga.php and now shows my station and location.

Upon comparing the 2 scripts I have found the following:
wsYrNoSA seems to have a calculation error in Day Length.  Shows Sunrise and Sunset correctly at 05:51 and 20:54 but shows 9:04 hrs and it should be 15:04 hrs (this is the same in stand-alone and Saratoga) http://www.komokaweather.com/wsYrNoSA/printFull.php (http://www.komokaweather.com/wsYrNoSA/printFull.php) and http://www.komokaweather.com/wxyrnoFcstpage.php (http://www.komokaweather.com/wxyrnoFcstpage.php).  In the Saratoga it also shows MetNoForecast rather then YrNo

wsMetNoSA as Saratoga seems fine, but in stand-alone the Day and date text does not scroll with the forecast data http://www.komokaweather.com/wsMetNoSA/printFull.php (http://www.komokaweather.com/wsMetNoSA/printFull.php)

I also have the YR.No site link http://www.yr.no/place/Canada/Ontario/Komoka/ (http://www.yr.no/place/Canada/Ontario/Komoka/) which defaults to London, Ontario Canada and the wsYrNoSA scripts is a near perfect match.  The wsMetNoSA script is slightly different but very close.

Thanks for your work on this and your excellent explanation.

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 28, 2013, 04:55:11 AM
Hello Paul
Quote
wsYrNoSA seems to have a calculation error in Day Length. 
Corrected script is attached.

Quote
In the Saratoga it also shows MetNoForecast rather then YrNo
The stand-alone versions have their own "langlookup" routines to translate words and sentences.
"MetNoForecast." is translated with this langlookup entry "langlookup|MetNoForecast.|Weather forecast for: '|"
The Saratoga versions depend on the built-in translation. This link (in Chrome) shows at the end all missing translation entiries.
view-source:http://www.komokaweather.com/wxyrnoFcstpage.php?lang=fr&show=missing (http://view-source:http://www.komokaweather.com/wxyrnoFcstpage.php?lang=fr&show=missing)
You will find the missing langlookup entries in "wsYrNoSA/lang/wsLanguage-en.txt" and "wsYrNoSA/lang/wsLanguage-en-local.txt" for English. 
With "fr" in the name for French.  I can not add the translation files from my scripts as I would disturb your translations. You should do it yourself by copying those entries you need.

Quote
wsMetNoSA as Saratoga seems fine, but in stand-alone the Day and date text does not scroll with the forecast data http://www.komokaweather.com/wsMetNoSA/printFull.php
I do not understand this. The MetNo scripts use a new way of scrolling where the table headers are now displayed after every  "day information line". So with every new day there should be new table headers. In the current YrNo scripts the table header is only printed once and disappears when you are scrolling the table.

Quote
I also have the YR.No site link http://www.yr.no/place/Canada/Ontario/Komoka/ which defaults to London, Ontario Canada
For YrNo scripts the forecast is based on this setting, which probably is set to Toronto.
Code: [Select]
$SITE['yrnoID'] = 'Canada/Ontario/Toronto'; // #####   generic adresYou could modify the setting  to "Canada/Ontario/London" if that better matches your area..
The MetNo script uses latitude and longitude, not the city centers as does YrNo. The MetNo script forecasts should in theory more closely match your area forecast.

Thanks for testing these scripts, have a nice day,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on May 28, 2013, 11:10:49 AM
Hi Wim,
Quote
Quote
wsYrNoSA seems to have a calculation error in Day Length. 
Corrected script is attached.
I have updated this and now both stand-alone and Saratogo are fine.  Thank you for your quick update.

Quote
Quote
In the Saratoga it also shows MetNoForecast rather then YrNo

The stand-alone versions have their own "langlookup" routines to translate words and sentences.
"MetNoForecast." is translated with this langlookup entry "langlookup|MetNoForecast.|Weather forecast for: '|"
The Saratoga versions depend on the built-in translation. This link (in Chrome) shows at the end all missing translation entiries.
view-source:http://www.komokaweather.com/wxyrnoFcstpage.php?lang=fr&show=missing
You will find the missing langlookup entries in "wsYrNoSA/lang/wsLanguage-en.txt" and "wsYrNoSA/lang/wsLanguage-en-local.txt" for English. 
With "fr" in the name for French.  I can not add the translation files from my scripts as I would disturb your translations. You should do it yourself by copying those entries you need.
I will need to commit some time to better understand the langlookup and multi-language feature in your and Ken's scripts which I so far have avoided :oops:

Quote
Quote
wsMetNoSA as Saratoga seems fine, but in stand-alone the Day and date text does not scroll with the forecast data http://www.komokaweather.com/wsMetNoSA/printFull.php

I do not understand this. The MetNo scripts use a new way of scrolling where the table headers are now displayed after every  "day information line". So with every new day there should be new table headers. In the current YrNo scripts the table header is only printed once and disappears when you are scrolling the table.
It only happens with the stand-alone and on 2 separate computers here.  Now that I have a better understanding of how the MetNo and Saratoga settings intertwine I will reinstall the MetNo from beginning and do the tests to see from when this occurs.

My comment on the YrNo site links and comparison to your YrNo and MetNo scripts was intended to confirm that with the correct settings the scripts provide the correct forecast, well done =D&gt;.  I believe that I now have the YrNo site, YrNo and MetNo scripts all with their applicable location and forecast.

Thanks for your detailed work on this,
Paul

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KapitainOne on June 05, 2013, 02:07:45 PM
Wim, did you ever get a chance to implement this?

I've been looking through the scripts but didn't see away for me to do it with my limited skills!

Bill

Quote
Hello Bill,
Different languages-different countries-different names for the same things.
As I understand you correctly you would prefer
                 2013-05-25  which is Saterday
18:00-24:00 Saterday evening 
                 2013-05-26 which is Sunday
24:00-06:00 Saterday night
06:00-12:00 Sunday morning
12:00-18:00 Sunday afternoon
18:00-24:00 Sunday evening
                  2013-05-26 which is Monday
24:00-06:00 Sunday night
06:00-12:00 Monday morning

An extra problem with these forecasts is that they do not follow nicely the 6 hour 00-06-12-18-00  time frame but are 0, 1 or 2 hours off. That is because they are based on 6 hours Zulu (Greenwich) time.
I propose to make a setting so that everybody can choose if the first 6 hour period of a calender day is called the night of the previous day.
OK?
Wim

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 06, 2013, 02:48:32 AM
It is on my ToDo list.
Until 20-13-06-11 I am abroad with very uncertain and slow Internet.
After that date I will contact you when  and how that new feature will be available.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 12, 2013, 10:39:18 AM
Wim, did you ever get a chance to implement this?

I've been looking through the scripts but didn't see away for me to do it with my limited skills!

Bill

Quote
Hello Bill,
Different languages-different countries-different names for the same things.
As I understand you correctly you would prefer
                 2013-05-25  which is Saterday
18:00-24:00 Saterday evening 
                 2013-05-26 which is Sunday
24:00-06:00 Saterday night
06:00-12:00 Sunday morning
12:00-18:00 Sunday afternoon
18:00-24:00 Sunday evening
                  2013-05-26 which is Monday
24:00-06:00 Sunday night
06:00-12:00 Monday morning

An extra problem with these forecasts is that they do not follow nicely the 6 hour 00-06-12-18-00  time frame but are 0, 1 or 2 hours off. That is because they are based on 6 hours Zulu (Greenwich) time.
I propose to make a setting so that everybody can choose if the first 6 hour period of a calender day is called the night of the previous day.
OK?
Wim

Enclosed the updates of the wsMetNoSA scripts.
1. Always make a backup of the current folder, just to be sure.
2. You have to replace the wsMetNoSA/metnoGenerateHtml.php script
3. One extra setting is needed
$SITE['nightDayBefore']   = true;
for both the stand-alone script: wsMetNoSA/metnoSettings.php you can check line 51      
and the Saratoga script: wsMetNoSA/printSaratoga.php you can check line 78
Do not replace the setting-scripts with the downloaded ones as you probably changed a lot of other settings.
Just add this new setting to your current scripts.
If set to true the night part is named the same as the previous day.
I tested with European input and it looks OK to me.
If no new errors pop-up I will add this setting to the other scripts (YrNo and WXSIM) shortly.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on June 12, 2013, 08:15:07 PM
Hi Wim,

Have noticed an error on my page here:  Saline Weather (http://sacrey.info/wsWxsimSA/start3in1.php)  The code is showing the high temps for me in black, which is causing the error, I believe.  I haven't changed a thing since I uploaded the script.

Thanks for the help and an awesome script,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 13, 2013, 02:17:34 AM
Hi Wim,

Have noticed an error on my page here:  Saline Weather (http://sacrey.info/wsWxsimSA/start3in1.php)  The code is showing the high temps for me in black, which is causing the error, I believe.  I haven't changed a thing since I uploaded the script.

Thanks for the help and an awesome script,

John
While living in a moderate climate I never expected those high temperatures, UV and solar values.
The black temperature colors are caused by out of bound color lookup. The sol tab is distorted by the high w/m2 values.
I  adapted the script a few weeks ago but omitted to warn users on this forum also. My apologies for this.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KapitainOne on June 13, 2013, 04:00:25 PM
Wim, did you ever get a chance to implement this?

I've been looking through the scripts but didn't see away for me to do it with my limited skills!

Bill

Quote
Hello Bill,
Different languages-different countries-different names for the same things.
As I understand you correctly you would prefer
                 2013-05-25  which is Saterday
18:00-24:00 Saterday evening 
                 2013-05-26 which is Sunday
24:00-06:00 Saterday night
06:00-12:00 Sunday morning
12:00-18:00 Sunday afternoon
18:00-24:00 Sunday evening
                  2013-05-26 which is Monday
24:00-06:00 Sunday night
06:00-12:00 Monday morning

An extra problem with these forecasts is that they do not follow nicely the 6 hour 00-06-12-18-00  time frame but are 0, 1 or 2 hours off. That is because they are based on 6 hours Zulu (Greenwich) time.
I propose to make a setting so that everybody can choose if the first 6 hour period of a calender day is called the night of the previous day.
OK?
Wim

Enclosed the updates of the wsMetNoSA scripts.
1. Always make a backup of the current folder, just to be sure.
2. You have to replace the wsMetNoSA/metnoGenerateHtml.php script
3. One extra setting is needed
$SITE['nightDayBefore']   = true;
for both the stand-alone script: wsMetNoSA/metnoSettings.php you can check line 51      
and the Saratoga script: wsMetNoSA/printSaratoga.php you can check line 78
Do not replace the setting-scripts with the downloaded ones as you probably changed a lot of other settings.
Just add this new setting to your current scripts.
If set to true the night part is named the same as the previous day.
I tested with European input and it looks OK to me.
If no new errors pop-up I will add this setting to the other scripts (YrNo and WXSIM) shortly.
Wim

That seems to have done it Wim, I'll run it for a few days just to make sure!

Thanks for the tweaks!

Bill
http://www.sanfordweather.com/wxmetnoFcstpage.php
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on June 14, 2013, 12:56:25 PM
Thanks for the update Wim. I appreciate it!!!

John

Saline Weather 3in1 (http://sacrey.info/wsWxsimSA/start3in1.php)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 25, 2013, 11:59:07 AM
The template is (more or less) adapted for the USA.
Demo http://www.weerstation-leuven.be/northam/ (http://www.weerstation-leuven.be/northam/)
Adaptions specific for the US are
1. noaa forecasts in the same style as MetNo and WXSIM http://www.weerstation-leuven.be/northam/index.php?p=401 (http://www.weerstation-leuven.be/northam/index.php?p=401)
2. One page noaa forecast http://www.weerstation-leuven.be/northam/index.php?p=411 (http://www.weerstation-leuven.be/northam/index.php?p=411)
Both forecasts use the noaa xml feeds
3. noaa watches, warnings or advisories using the cap/xml feeds. They show up either on top of the page or just below the header part. Clicking on a info button in the message displays the detailed page. 
4. Precipitation radar / cloud radar / thunderstorms

Documentation and download link: http://www.weerstation-leuven.be/_template2/template.php?lang=en (http://www.weerstation-leuven.be/_template2/template.php?lang=en)

The settings for the demo website are Branford, CT|41.30|-72.79| The warnings and forecasts are based on that location. I do not own a weather-station in the USA which could feed the website with data and webcam images.  The realtime data is from Europe/Belgium/Leuven. The update times and high low times are CET, 5 hours earlier than Branford CT time.

I am always pleased with your feedback so I can improve the template and its scripts. Use the forum, a PM and or the contact page at my weatherstation: http://www.weerstation-wilsele.be/weather2/index.php?p=86&wp=MH&lang=en (http://www.weerstation-wilsele.be/weather2/index.php?p=86&wp=MH&lang=en)
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: BfdWx on June 25, 2013, 05:20:19 PM
With the help of Wim this site, http://bfdwx.com is now live with the new template. It is not complete and is a work in progress but it should give you the idea of what it looks like. Great work Wim, thank you!

Jack
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on June 30, 2013, 09:02:19 AM
I am giving the USA version a shot, and got hung up on the template finding my data. I am using WD and all the files are being uploaded to the root directory. The template files are located in a subfolder "weather2".

In the wsSettingsWeather.php, this is commented out:
Code: [Select]
#$SITE['uploadDir'] =  '../weather2/upload'.$SITE['WXsoftware'].'/';and this is uncommented:
Code: [Select]
$SITE['uploadDir'] =  '../';On the "Trends page" (61), the template is finding the wind direction image that is found in the root. It also appears that the steel series gauges have found the right data. What am I missing?

http://www.cavecountryweather.com/weather2/ (http://www.cavecountryweather.com/weather2/)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 30, 2013, 10:28:18 AM
The testtags used for the Saratoga templates and the testags for this template are different.  I had to set up in WD another testtage file and renamed it to wstesttags.
I have mine working at http://www.shermanctweather.com/weather2
I still have a lot of things to figure out.
My wxsim forecast isn't showing right.  
My yowindow seems to have night and day mixed up.
Nearby metars are European.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 30, 2013, 10:46:55 AM
I am giving the USA version a shot, and got hung up on the template finding my data. I am using WD and all the files are being uploaded to the root directory. The template files are located in a subfolder "weather2".

In the wsSettingsWeather.php, this is commented out:
Code: [Select]
#$SITE['uploadDir'] =  '../weather2/upload'.$SITE['WXsoftware'].'/';and this is uncommented:
Code: [Select]
$SITE['uploadDir'] =  '../';On the "Trends page" (61), the template is finding the wind direction image that is found in the root. It also appears that the steel series gauges have found the right data. What am I missing?

http://www.cavecountryweather.com/weather2/ (http://www.cavecountryweather.com/weather2/)
The Saratoga testtags.php are NOT the same as the Leuven Testtags.php.
So you have to copy the correct file with a new name to the WD folder on your PC and let WD upload that file.
See this post also http://www.wxforum.net/index.php?topic=18819.msg187521#msg187521 (http://www.wxforum.net/index.php?topic=18819.msg187521#msg187521)
Much succes and thanks for shooting at the Leuven Template.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 30, 2013, 11:03:21 AM
The testtags used for the Saratoga templates and the testags for this template are different.  I had to set up in WD another testtage file and renamed it to wstesttags.
I have mine working at http://www.shermanctweather.com/weather2
I still have a lot of things to figure out.
My wxsim forecast isn't showing right.  
My yowindow seems to have night and day mixed up.
Nearby metars are European.
Thanks for using the template.
"My wxsim forecast isn't showing right."
1. The temperature is probably not set correctly in the settings for wsWxsim. It seems to be in C. As plaintext.txt does not supply the units used, the conversion is done based on the settings.
line approx. 98 in wsWxsimSettings.php should read:
Code: [Select]
$uoms = array('F','in','mph','inhg','in','mi'); 2. Coming from a more modarate climate I see again too  high values for solar on the solar graph tab.
I will again adapt that in the script shortly.
"Nearby metars are European."
Nearby metars are a very tasty leftover from the past and will be replaced in the next release with a grapical map with those values displayed.
If you want that page to be customized to to your area: it is based on Kent True's extremely nice program with which you can locate nearby airports.
"My yowindow seems to have night and day mixed up."
I see no problems with YoWindow it displays the correct time but I will look further into it.
The current conditons are not displayed so it seems that the xml is not uploaded or that the crossdomain.xml is not in the root.

I will look further into your remarks, but consider the time difference. so probably tomorrow morning your time.
Wim
Edit because I forgot to mention:
After changing a setting for wxsim forecasts or for any other forecast:
REMOVE the correcponding file from the cache. The intermediate arrays are stored in weather2/cache/ so you either wait until the next run or, when you remove the cached file, see the effect of the changes immediately.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 30, 2013, 12:28:27 PM
First, thanks for this wonderful template.  It's really nice.
The change you suggested worked to fix my wsWxsim problem.
Yowindow on my page is showing 5:27am when it is 12:27 pm here.
I'll keep working on it little by little.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on June 30, 2013, 12:34:11 PM
I am giving the USA version a shot, and got hung up on the template finding my data. I am using WD and all the files are being uploaded to the root directory. The template files are located in a subfolder "weather2".

In the wsSettingsWeather.php, this is commented out:
Code: [Select]
#$SITE['uploadDir'] =  '../weather2/upload'.$SITE['WXsoftware'].'/';and this is uncommented:
Code: [Select]
$SITE['uploadDir'] =  '../';On the "Trends page" (61), the template is finding the wind direction image that is found in the root. It also appears that the steel series gauges have found the right data. What am I missing?

http://www.cavecountryweather.com/weather2/ (http://www.cavecountryweather.com/weather2/)
The Saratoga testtags.php are NOT the same as the Leuven Testtags.php.
So you have to copy the correct file with a new name to the WD folder on your PC and let WD upload that file.
See this post also http://www.wxforum.net/index.php?topic=18819.msg187521#msg187521 (http://www.wxforum.net/index.php?topic=18819.msg187521#msg187521)
Much succes and thanks for shooting at the Leuven Template.
Wim
Sorry, Could you elaborate more?
What file(s) does WD need to process and what should the uploaded file be named?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 30, 2013, 01:51:31 PM
The Saratoga testtags.php are NOT the same as the Leuven Testtags.php.
So you have to copy the correct file with a new name to the WD folder on your PC and let WD upload that file.
See this post also http://www.wxforum.net/index.php?topic=18819.msg187521#msg187521 (http://www.wxforum.net/index.php?topic=18819.msg187521#msg187521)
Much succes and thanks for shooting at the Leuven Template.
Wim
Sorry, Could you elaborate more?
What file(s) does WD need to process and what should the uploaded file be named?
From documentation where the files to be uploaded are specified: http://www.weerstation-leuven.be/_template2/documentation/uploads_en_WD.pdf (http://www.weerstation-leuven.be/_template2/documentation/uploads_en_WD.pdf)
"If you are already using the name testtags.php for another web program you should file our testtags.txt with a
different name in C:\wdisplay\webfiles.  You need some more steps to upload our renamed testtags.txt . .
".
You deleted the weather2/uploadWD/ folder so you can not use the wdConfig.php program to download the needed files.
0. you find out testtags.txt in weaher2/_config/WD_tagsPrototype.txt
1. Copy that file to your PC and rename that file into wsTesttags.txt
2. Copy to your C:\wdisplay\webfiles folder
3. Tell WD to upload that file into your websites root (as you choose that location already) and give it a name of wsTesttags.php The name is not important as long as it is NOT named as testtags.php,  that is Saratoga's name for their file.
4. Change a setting in weather2/wsSettingsWeather.php line approx. 152 ? from
Code: [Select]
$SITE['wsTags'] = $SITE['uploadDir'].'testtags.php'; to
Code: [Select]
$SITE['wsTags'] = $SITE['uploadDir'].'wsTesttags.php'; The template can than process todays and yesterdays values from wsTesttags.php
I hope that my English is clear enough for you to understand what I am talking about.
Succes, Wim
P.S.
If you restore the weather2/uploadWD/ folder you can use the config program
http://www.cavecountryweather.com/weather2/wdConfig.php (http://www.cavecountryweather.com/weather2/wdConfig.php)
This program normally helps you download the needed files (for WD, YoWindow / Steelseries).
It also helps to check settings and the uploaded tags.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: tstorm on June 30, 2013, 03:32:21 PM
Starting to get things working.  One thing I can't figure out is why the background shows night and the weather icon also shows night time partly cloudy when it's 330 pm.  The clock also shows the correct time on the web.  Any ideas?

http://www.harpersferry-weather.com/weather2

Thanks,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on June 30, 2013, 03:36:04 PM
Quote
You deleted the weather2/uploadWD/ folder so you can not use the wdConfig.php program to download the needed files.
Either I missed this folder or it was not included in the download.  :-|
Anyway, I created the folder and followed the instructions. It appears all is working so far.  :grin:
http://www.cavecountryweather.com/weather2/ (http://www.cavecountryweather.com/weather2/) Thanks for the help - I will play around some more.  ;)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 30, 2013, 03:41:56 PM
I was having that problem.  It helped when I changed curCondFrom to WD from metar.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: tstorm on June 30, 2013, 03:50:41 PM
I was having that problem.  It helped when I changed curCondFrom to WD from metar.

Thanks that did it.

One other thing is where can I make it so that weather conditions have a . (decimal) instead of a comma (i.e. temperature 85,3)

Thanks,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 30, 2013, 04:03:09 PM
In wsSettings change
Code: [Select]
$SITE['commaDecimal'] = true;  // not yet widely used in this version of the template set, next release will improve on this to
Code: [Select]
$SITE['commaDecimal'] = false;  // not yet widely used in this version of the template set, next release will improve on this
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 01, 2013, 01:46:15 PM
One problem I've encountered  is using the metar for current conditions.  When using this method day and night are backwards.  When I use WD for current conditions day and night are good but the conditions are more accurate from the metar.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 01, 2013, 02:03:25 PM
One problem I've encountered  is using the metar for current conditions.  When using this method day and night are backwards.  When I use WD for current conditions day and night are good but the conditions are more accurate from the metar.
Well that sounds strange to me. Very short description: "WD uses metar when it is night.  When you have a solar sensor it uses its own sensor readings. But without solar it falls back to METAR."  At least that is what I understood from all those "glomy' current conditions and their solution-descriptions.
So WD should normally at least be as good as METAR.
No you say that METAR is switching day and night.Retrieving the xml for KDXR (first few lines displayed)
Code: [Select]
<METAR>
<raw_text>KDXR 011653Z 20005KT 7SM -RA BKN100 23/21 A3000</raw_text>
<station_id>KDXR</station_id>
<observation_time>2013-07-01T16:53:00Z</observation_time>
<latitude>41.37</latitude>
<longitude>-73.48</longitude>
The time supplied looks o.k. so I will modify my test site to your settings and test it.
Will be back with more info.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 01, 2013, 04:40:39 PM
When using WD, when I mouse over the icon I get Daytime most of the day.  My clientraw file is saying cloudy right now so it doesn't seem to be picking up the right condition.
Since I don't have a solar sensor my current condition from the current solar description is daytime.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Weather Display on July 01, 2013, 04:57:37 PM
Quote
At least that is what I understood from all those "glomy' current conditions and their solution-descriptions.
that will occur if the solar thresholds for max solar for time of day is not set correctly
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 02, 2013, 02:46:12 AM
One problem I've encountered  is using the metar for current conditions.  When using this method day and night are backwards.  When I use WD for current conditions day and night are good but the conditions are more accurate from the metar.
Good morning,
METAR: In your settings you specified a non-existing metar  KXDR.
When you check that at http://aviationweather.gov/adds/metars/ (http://aviationweather.gov/adds/metars/) it returns an error.
But when I enter your correct code KDXR it returns sometimes (my morning - your night) an error because the metars are to old. Current time is 07:26:00Z - metar returned is from <observation_time>2013-07-02T00:53:00Z</observation_time>. So nearly 6 hours old. As the script retrieves metars which are less than 3 hours old, you should better switch to an airport/weather station which is supplying metars at night also. If that is not possible, please let me know and I will explain which line you have to change to retrieve older metars.
WD Current Conditions: I can not check your WD returned current conditions because debug mode is set to false.  Therefore the development (test) menu will not show. The other method for checking the tags is the config program but that returns an unknown error. It seems a source could have been changed. I attach the original script.
Can you
1. replace weather2/__config/customize7.php with the attached one?
2. store a copy of your wstesttags.txt (you already put in C:\wdisplay\webfiles\) in the root of your website where WD uploads wstesttag.php?
3. set  wsDebug to true in approximately line 33 in weather2/index.php?

We can then check the WD returned tags and the contents of clientraw much easier.

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 02, 2013, 07:13:00 AM
In wsSettings I had
Code: [Select]
$SITE['METAR'] = 'KDXR'; // #####I thought that airport updated all the time.
I uploaded customize7.php to /weather2/_config
I set debug to true in index.php

If there is anything else need just let me know.
I do appreciate all the work your doing.

I was also thinking for the American template baro and rain should be displayed to 2 decimal points.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 02, 2013, 07:40:56 AM
In wsSettings I had
Code: [Select]
$SITE['METAR'] = 'KDXR'; // #####I thought that airport updated all the time.
I uploaded customize7.php to /weather2/_config
I set debug to true in index.php

If there is anything else need just let me know.
I do appreciate all the work your doing.
Thanks,
Day/Night
I found the error with daytime nighttime. The first USA test site is using 24 hours time (as milatary and like organisations do). So the error with sunrise/sunset time + am/pm did not show up until you started using the template.  I am testing it now and probably tomorrow I post the affected scripts.
The checking was done as string compare with  'H:I' times. But a time starting with a zero is then always nighttime. This is the output:
Code: [Select]
<!-- wsDataGet.php time  is 07:20 - it is  nighttime now; sunrise at 5:24 am  sunset at  8:31 pm -->METAR
Well it seems that not all airports supply metars 24/24 - 7/7.
WD Currewt condition
If you run the wdConfig.php program you can see your settings and the tags as uploaded by WD
These are WD's current descriptions of your weather:
Code: [Select]
wdCurCond "%Currentsolardescription%" Day time
wdCurIcon "%iconnumber%" 2
wdMetarCcn "%weatherreport%" overcast
The WD icon 2 is used for cloudy (there is also more clouds with icon3 - cloudy2) translated to our icon.
But that conflicts with the WD metar report which shows overcast.
I will look into that also.
Extra Menu
I expected the Development menu to show when wsdebug was set.
Can you change line approx. 319 in wsMenuData.xml:
Code: [Select]
from:
<item caption="Development" show="no">
to
<item caption="Development" show="wsDebug">
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 02, 2013, 08:15:42 AM
OK, I've changed show =debug.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 02, 2013, 10:57:41 AM
OK, I've changed show =debug.
Thanks,
WD Current condition
Now 12:20:00Z WD uploads (check at: http://www.shermanctweather.com/weather2/index.php?p=93-2 (http://www.shermanctweather.com/weather2/index.php?p=93-2):
Code: [Select]
wdCurCond "%Currentsolardescription%" Day time
wdCurIcon "%iconnumber%" 10
wdMetarCcn "%weatherreport%" overcast - mist
Your page shows the "foggy" background and icon next to the temperature.
I think when there is no solar sensor in the station,  we better use the %weatherreport% tag to display next to the icon.
Code: [Select]
WXSIMI updated the wxsim scripts to get rid of the strange solar graph.
Download: http://www.weerstation-leuven.be/_template2/wsZips/20130702_wsWxsim.zip (http://www.weerstation-leuven.be/_template2/wsZips/20130702_wsWxsim.zip)

Have a nice day,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 02, 2013, 11:56:49 AM
Quote
Your page shows the "foggy" background and icon next to the temperature.
I think when there is no solar sensor in the station,  we better use the %weatherreport% tag to display next to the icon.
Should I change my wstesttags.txt file?  The icon seems to be working better today.
I downloaded wsWxsim.zip and it has fixed the solar graph.

Thanks.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on July 02, 2013, 09:27:08 PM
The template is (more or less) adapted for the USA.

The settings for the demo website are Branford, CT|41.30|-72.79| The warnings and forecasts are based on that location. I do not own a weather-station in the USA which could feed the website with data and webcam images.  The realtime data is from Europe/Belgium/Leuven. The update times and high low times are CET, 5 hours earlier than Branford CT time.

Wim
Where is this location changed? Changing the long/lat on the wsSettings.php has no effect.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 02, 2013, 09:43:02 PM
I think I changed the forecast in the advforecast2.php file.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on July 02, 2013, 10:22:02 PM
No luck with that either.   :sad:
Code: [Select]
$NOAAZone = 'kyz074';  // change this line to your NOAA warning zone.
// set $fileName to the URL for the point-printable forecast for your area
 $fileName = "http://forecast.weather.gov/MapClick.php?CityName=Glasgow&state=KY&site=LMK&textField1=36.9991&textField2=-85.9215&e=0&TextType=2";
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 03, 2013, 03:16:15 AM
No luck with that either.   :sad:
Code: [Select]
$NOAAZone = 'kyz074';  // change this line to your NOAA warning zone.
// set $fileName to the URL for the point-printable forecast for your area
 $fileName = "http://forecast.weather.gov/MapClick.php?CityName=Glasgow&state=KY&site=LMK&textField1=36.9991&textField2=-85.9215&e=0&TextType=2";

To all readers: Sorry, just a humble answer is here in place.
Of course you are absolutely correct and adjusting the latitude and longitude in the settings is the only thing one SHOULD have to do.
But I forgot to remove one test line in the script. The script therefore always reads the information of Brandford.
Script weather2/noaa/noaaPlainGenerateHtml.php Line 23 remove comment mark  line 24 replace with a comment mark. Now it is:
Code: [Select]
#$returnArray = $weather->getWeatherData($SITE['latitude'],$SITE['longitude']);
$returnArray = $weather->getWeatherData('41.30068','-72.793671');  // demonstration no info for europe
Change to:
Code: [Select]
$returnArray = $weather->getWeatherData($SITE['latitude'],$SITE['longitude']);
#
Some more information: The forecast information is gathered using latitude and longitude only using the xml feeds. Maybe NOAA/NWS changes the layout someday so, just to have another way of getting the data, I  included the proven Saratoga scripts also in the download. If you change any setting in the advforecast2.php it has no effect until you include this in your menu file:
Code: [Select]
<item nr="401-1" show='yes'
link="noaa/incadvforecast2.php"
caption="oud noaa NWS"
/>
The setting of the forecast area is in the noaa/incadvforecast2.php script.


To Dr Obbins:  In your post I  read that you coded
Code: [Select]
$NOAAZone = 'kyz074';  // change this line to your NOAA warning zone.But the script returns an error
Code: [Select]
<!-- ERROR Severe weatherdata (http://alerts.weather.gov/cap/wwaatmget.php?x=kyz074&y=0) Service returns no good data -->It seems that only capital letters are allowed. So I will add an "upshift" in the code, but for now change that line to
Code: [Select]
$NOAAZone = 'KYZ074';  // change this line to your NOAA warning zone.You will than get your warnings also.
Have a nice day, sorry again for the extra tracing and changing in the scripts,
Wim
Edit typo wrong script
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 03, 2013, 05:19:22 AM

I found the error with daytime nighttime. The first USA test site is using 24 hours time (as milatary and like organisations do). So the error with sunrise/sunset time + am/pm did not show up until you started using the template.  I am testing it now and probably tomorrow I post the affected scripts.
The checking was done as string compare with  'H:I' times. But a time starting with a zero is then always nighttime. This is the output:
Code: [Select]
<!-- wsDataGet.php time  is 07:20 - it is  nighttime now; sunrise at 5:24 am  sunset at  8:31 pm -->
I changed the script so it now correctly calculates daytime nighttime.
Code: [Select]
<!-- wsDataGet.php time  is 1372842620 => 5:10 am  | it is  nighttime | sunrise at 1372843406 => 5:23 am  | sunset at  1372897667 => 8:27 pm -->
<!-- wsDataGet.php time  is 1372843068 => 11:17am  | it is  daylight | sunrise at 1372822412 => 5:33am  | sunset at  1372881455 => 9:57pm -->
To correctly display the am pm values for sunrise and sunset on the startpage another script had to be changed also. The scripts are attached.
Thanks for testing this,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 03, 2013, 06:27:00 AM
Wim,
Thank you.  I have loaded the new files and it is working ok now.

Another thing I noticed on the main page, sunrise sunset is correct on dashboard but wrong on the forecast part.  I've attached a picture to show you.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 03, 2013, 06:33:07 AM
. . . edited to shorten  . .
Another thing I noticed on the main page, sunrise sunset is correct on dashboard but wrong on the forecast part.  I've attached a picture to show you.
Well, it is correct on the 3 detailed wxsim forecast tabs and wrong on the overview tab (=plaintext.txt) part.
At least I have something to look into this afternoon.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on July 03, 2013, 08:45:14 AM
To all readers: Sorry, just a humble answer is here in place.
Have a nice day, sorry again for the extra tracing and changing in the scripts,
Wim
No complaints here. I certainly couldn't do any better. (or even come close)  :-)

I didn't have that line #23 or 24 as you posted. When added, it returned an error message. Attached are my files if it helps.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 03, 2013, 08:55:43 AM
To all readers: Sorry, just a humble answer is here in place.
Have a nice day, sorry again for the extra tracing and changing in the scripts,
Wim
No complaints here. I certainly couldn't do any better. (or even come close)  :-)

I didn't have that line #23 or 24 as you posted. When added, it returned an error message. Attached are my files if it helps.
Thanks for pointing this out. Typed the name of the wrong script.
Should be noaaPlainGenerateHtml.php. I edited the post above also.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 03, 2013, 09:24:44 AM
Wim,
Thank you.  I have loaded the new files and it is working ok now.

Another thing I noticed on the main page, sunrise sunset is correct on dashboard but wrong on the forecast part.  I've attached a picture to show you.
Well i try to locate the error, but no succes yet.
There are three pages which display exactly the same information and use more or less the same scripts.
Two of them display correct dates (and therefore correct sunrise sunset times):
http://www.shermanctweather.com/forecast.php (http://www.shermanctweather.com/forecast.php)
http://www.shermanctweather.com/wsWxsimSA/start3in1.php (http://www.shermanctweather.com/wsWxsimSA/start3in1.php)
But the one we are talking about now is totally wrong, at least at your website it is:
http://www.shermanctweather.com/weather2/index.php?p=12 (http://www.shermanctweather.com/weather2/index.php?p=12)
as it displays Wednesday Dec 31 1969 as first day in the Overview ( plaintext ) tab.

Thes dates are retrieved from the filemtime('') of the cached file cache/wsWxsimParser.php-en-FinmphinHginmi
That filemtime (last time modified) is either 0 (first of januari 1970) or replaced somewhere with a zero in the scripts. But it only happens with the cached file in weather2/cache/wsWxsimParser.php-en-FinmphinHginmi
Not with the other two cached files.
wsWxsimSA/cache/wsWxsimParser.php-en-FinmphinHgcmmi
cache/wsWxsimParser.php-en-FinmphinHginmiles

Can you please check the filetimes and afterward delete the file in weather2/cache/   ?
I want to know if that problem returns with a fresh write to the cache.
Off course it does not happen at my other testsites. If an error would be consistent and reproducible, the life of a programmer would be to boring.
Wim

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 03, 2013, 11:18:14 AM
Wim,

 I have installed your script at http://weatheranmore.com/weather2/. Everything is running well, except there is no value for the barometer, in the ajax dashboard or steelseries gauges. I am using Cumulus (version 1.9.4 b 1080). The pressure values are being uploaded in the tags.php and realtimeTags.txt files, but are not loaded on the pages. Any help would be greatly appreciated.

                                                        Thanks,
                                                               Jerry
Hi Jerry,
Probably a setting error for CU as other sites (WD and MH) are working with inHg without problems.
I will look into it and probably report you tomorrow due to the timedifference.
But can you please set the menufile in such a way that we can use the customize menu. I can than test if for instance the values appear with hPa.
Later on you can remove that menu choice as it is indeed not very usefull in the USA.
Can you also mail me a zip of the tags.php file?
Thanks Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 03, 2013, 11:37:13 AM
Wim,
I erased that file in the cache but it has rewritten and is still wrong.
Sorry to cause this problem.  Funny it is only on the overview tab, not the other tabs.  3hour interval and 48 hour interval tabs have the right times.
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jerbo on July 03, 2013, 12:49:45 PM
Wim,

 I set the customize menu, but there are still no values. I had the customize menu turned off because it creates a page error. PHP Warning:  Cookie names cannot contain any of the following '=,; \t\r\n\013\014' in weatheranmore.com/weather2/index.php on line 404
and a second PHP Warning:  Cannot modify header information - headers already sent by (output started at weatheranmore.com/weather2/index.php:404) in weatheranmore.com/weather2/index.php on line 161.
Also, here are the tags.php and realtimeTags.txt files.

                                               Jerry
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 03, 2013, 03:00:12 PM
Wim,
 I set the customize menu, but there are still no values. I had the customize menu turned off because it creates a page error. PHP Warning:  Cookie names cannot contain any of the following '=,; \t\r\n\013\014' in weatheranmore.com/weather2/index.php on line 404
and a second PHP Warning:  Cannot modify header information - headers already sent by (output started at weatheranmore.com/weather2/index.php:404) in weatheranmore.com/weather2/index.php on line 161.
Also, here are the tags.php and realtimeTags.txt files.
Jerry
Hi Jerry,
Thanks for the files,
Cookiename: In your settings the cookiename is specified with special characters, a space. That is not allowed in a cookiename.  The setting in wsSettings.php for cookieName should be changed from "West End Weather" to "WestEndWeather".  Those errors will than disappear.
Inhg as pressunit in CU: The barometer or pressure unit is read from CU with this line:
Code: [Select]
$from = '<#pressunit>'; //  = 'inHg', 'hPa', 'kPa', 'mb'
which is uploaded as
$from = 'in'; //  = 'inHg', 'hPa', 'kPa', 'mb'ed by CU with
The "oficial" unit is inHg so that was what I coded.  I changed the functions and attached you will find an script to update.
Both the Steelseries and the other pages with barometric pressure will contain the correct values.

Please make a backup of weather2/wsFunctions.php
Unzip the attached file and replace the current weather2/wsFunctions.php with the new one.
Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jerbo on July 03, 2013, 03:58:00 PM
Wim,

 Thank you much for your quick response. I found the line of code that you added to wsFunctions.php and inserted it into my website.
Cumulus now has a barometric pressure! I have a couple more things to ask. One is there is an error message in the website log:
PHP Notice:  Undefined variable: pathString in weatheranmore.com/weather2/wsAjaxDataLoad. php on line 11. The second question is it possible to have the rainfall and barometer read two decimal places? For instance 1.15 inches of rain or a barometer reading of 30.01 inHg.

                                                         Thanks again,
                                                                           Jerry
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 03, 2013, 04:26:39 PM
Wim,
 Thank you much for your quick response. I found the line of code that you added to wsFunctions.php and inserted it into my website.
Cumulus now has a barometric pressure! I have a couple more things to ask. One is there is an error message in the website log:
PHP Notice:  Undefined variable: pathString in weatheranmore.com/weather2/wsAjaxDataLoad. php on line 11. The second question is it possible to have the rainfall and barometer read two decimal places? For instance 1.15 inches of rain or a barometer reading of 30.01 inHg.
       Thanks again,      Jerry
Hi jerry,
Tomorrow I will look into that error in the logs.
The number of decimal places for values in inch will indeed be changed to 2. That will take a few days testing so probably after the weekend.
Have a nice day, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: n3ouc on July 03, 2013, 05:40:04 PM
Hi Wim,
I have the exact same error in the logs and it occurs every time a page is loaded. The error is: pathString in macungieweather.net/weather2/wsAjaxDataLoad. php on line 11.
It doesnt seem to create any issue, but does fill up the error log very quickly.

Mike
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on July 03, 2013, 09:19:23 PM
To all readers: Sorry, just a humble answer is here in place.
Have a nice day, sorry again for the extra tracing and changing in the scripts,
Wim
No complaints here. I certainly couldn't do any better. (or even come close)  :-)

I didn't have that line #23 or 24 as you posted. When added, it returned an error message. Attached are my files if it helps.
Thanks for pointing this out. Typed the name of the wrong script.
Should be noaaPlainGenerateHtml.php. I edited the post above also.
Wim

That did the trick  :grin:  Thanks!
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on July 03, 2013, 10:51:31 PM
Is there documentation on how to add/create our own pages?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 04, 2013, 02:27:47 AM
. . .
One is there is an error message in the website log:
PHP Notice:  Undefined variable: pathString in weatheranmore.com/weather2/wsAjaxDataLoad. php on line 11.
 . . . . Thanks again, Jerry
. . .
I have the exact same error in the logs and it occurs every time a page is loaded. The error is: pathString in macungieweather.net/weather2/wsAjaxDataLoad. php on line 11.
It doesnt seem to create any issue, but does fill up the error log very quickly.
Mike
To ALL:  IMPORTANT  Unzip the attachement and replace the current weather2/wsAjaxDataLoad.php with  the attached script.
If you have frequent ajax updates and or your pages open 24/24 hours a day, your logs will overflow with 1 unnecessary message.
If you investigate the script you will see that the errorlogging was turned on also, used only for testing.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 04, 2013, 02:43:43 AM
Is there documentation on how to add/create our own pages?
There is a empty page to start with in weather2/inc/wsNewPage.php.
There is minor documentation in that script what steps to follow.
But most users take a suitable page (mostly weather2/inc/CloudRadar.php) , copy it under a new name, modify it and put it in their menusystem.
Up until a month ago the users of the template were native dutch-speaking so all helpfull hints and descriptions are in Dutch. I will gather the Dutch information from the forums and make a English version to be included in the documentation, to be ready after our holiday/vacation period (Sept 1, 2013).
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: tstorm on July 04, 2013, 07:24:57 AM
I'm uploading the yowindow.xml from WD but haven't been able to figure out how to get it to show.  Any ideas?

http://www.harpersferry-weather.com/weather2

Thanks,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 04, 2013, 07:31:57 AM
I'm uploading the yowindow.xml from WD but haven't been able to figure out how to get it to show.  Any ideas?
http://www.harpersferry-weather.com/weather2
Thanks,
John
Hi John,
Correct: The data yowindow.xml is in the root of your website
Correct: Your crossdomain.xml is in the root of your website
But: it does not allow YoWindow to acces your yowindow.xml
Please read this explanation here: http://yowindow.com/widget_and_pws.php (http://yowindow.com/widget_and_pws.php) as it is far better English than mine.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: tstorm on July 04, 2013, 07:56:12 AM
I downloaded crossdomain.xml and placed in my root, but still not seeing the current conditions from my site.

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 04, 2013, 08:03:05 AM
I downloaded crossdomain.xml and placed in my root, but still not seeing the current conditions from my site.
John
Those xml's are reloaded if you refresh the page.
At least at my laptop your site displays nice after a refresh of the page.

The landscape is covered with snow (at 2013-07-04 12:28:00Z) because your uploaded xml mentions 2 inches of snow. So that is tested also.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 04, 2013, 08:24:40 AM
Wim,
 Thank you much for your quick response. I found the line of code that you added to wsFunctions.php and inserted it into my website.
Cumulus now has a barometric pressure! I have a couple more things to ask. One is there is an error message in the website log:
PHP Notice:  Undefined variable: pathString in weatheranmore.com/weather2/wsAjaxDataLoad. php on line 11. The second question is it possible to have the rainfall and barometer read two decimal places? For instance 1.15 inches of rain or a barometer reading of 30.01 inHg.
       Thanks again,      Jerry
Hi jerry,
Tomorrow I will look into that error in the logs.
The number of decimal places for values in inch will indeed be changed to 2. That will take a few days testing so probably after the weekend.
Have a nice day, Wim
To ALL:
Attached the scripts to display 2 decimals for pressure and rain values in the headers, startpage and trendpage.
Two of the modified scripts go into weather2/  and one into weather2/inc.
There is a small readme.txt included.
I will modify the full template download also.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 04, 2013, 08:46:28 AM
Thanks Wim.  The extra decimal places are working nicely.
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 04, 2013, 09:17:58 AM
Question was asked: "How to use wuGraphs inside the template"
Example imlementation: http://www.weerstation-leuven.be/northam/index.php?p=62-2 (http://www.weerstation-leuven.be/northam/index.php?p=62-2)
Download of the extra scripts for the template: http://www.weerstation-leuven.be/_template2/template.php?lang=en (http://www.weerstation-leuven.be/_template2/template.php?lang=en)
  Choose button Downloads  and the third choice is  wuGraphs_extra
You will find the extra template-scripts and a description where you can download the wuGraphs scripts.
Be aware that debug (error reporting) is switched off for this page even when you switched it on for the whole template!

I trust some of you will like these graphs as much as the Dutch users did.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: tstorm on July 04, 2013, 09:35:01 AM
I went to another computer and I can see my current conditions.  Will have to look at the laptop to see what I need to turn on.  One more problem with the landscape for YrNo.  I've looked around in the scripts and I can't figure out why the landscape is winter when it should be summer.

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 04, 2013, 09:40:22 AM
I went to another computer and I can see my current conditions.  Will have to look at the laptop to see what I need to turn on. 
Just refresh the page with the circular arrow (at least in Chrome, Safari and FF). Or clean the cache and history, that always helps.
Quote
One more problem as with the landscape for YrNo.  I've looked around in the scripts and I can't figure out why the landscape is winter when it should be summer.
John
I added that to my previous post to you. In your data (yowindow.xml) you have 2 inches of snow.
The landscape is correct with snow for the live time. Off course the next minute (use the slider in the top part of YoWindow) there is no snow in the forecast and the normal landscape returns.
Have a nice day, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jerbo on July 04, 2013, 10:05:36 AM
Wim,

 Thanks again for the great script and your help getting it running.
All working well, now time to add more pages.

                                           Jerry
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 04, 2013, 10:21:15 AM
Wim,
 Thanks again for the great script and your help getting it running.
All working well, now time to add more pages.
 Jerry
Hi Jerry,
And if you add those pages, there are at least two situations where I would like to hear from you.
1.  If you get stuck and
2.  If you think that page you are creating can be used by others.
Please send a PM or mail if I can be of some assistance to you.

I hope all readers of this post understand that it is difficult for a European guy from a country with 3 official languages and less inhabitants than a a USA city (11 miliion in Belgium is less inhabitants than those of LosAngelos) to really create the "local" USA pages.
So all users of the template will benefit one way or another, if we share all those "local" pages.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 04, 2013, 11:27:05 AM
Wim,
I am trying to add the WU graphs.  I have graphs working here
Quote
http://www.shermanctweather.com/weather2/wugraphs.php
but when I put it in the weather template here
Quote
http://www.shermanctweather.com/weather2/index.php?p=62-2
you can see the errors I get.
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 04, 2013, 11:58:00 AM
Wim,
I am trying to add the WU graphs.  I have graphs working here
Quote
http://www.shermanctweather.com/weather2/wugraphs.php
but when I put it in the weather template here
Quote
http://www.shermanctweather.com/weather2/index.php?p=62-2
you can see the errors I get.
Tom
Hi Tom
This is your entry for the graphs in wsMenudata.xml
Code: [Select]
<item nr="62-2" show="yes"
link="wsWuGraphs/wsWuGraphs.php"
caption="WU History Graphs"
title="Weather Underground History Page Graphs"
head="wsWuGraphsHead.php"
/>
and it should be according the readme:
Code: [Select]
<item nr="62-2" show='yes'
link="wsWuGraphs/wsWuGraphs.php"
caption="WU History Graphs"
title="Weather Underground History page Graphs"
head="wsWuGraphs/wsWuGraphsHead.php"
/>
So when the script starts it can not read the head part of the wuGraphs script because of the missing folder name in the 5th line.
head="wsWuGraphs/wsWuGraphsHead.php"
Hope this solves those errors,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 04, 2013, 12:05:26 PM
Wim,
Thanks that was it.  I thought I copied it right, sorry.
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jerbo on July 06, 2013, 07:46:14 PM
Wim,

 I have a question about the Noaa watches and warnings on my site http://weatheranmore.com/weather/.
At the moment there is a flood watch for my area and the message is level: Severe, Significant threat to life or property - Responsive action SHOULD be taken soon (within next hour). However, the watch does not take effect until Sunday morning.
The watch instructions from NOAA read: A FLASH FLOOD WATCH MEANS THAT CONDITIONS MAY DEVELOP THAT LEAD TO FLASH FLOODING. FLASH FLOODING IS A VERY DANGEROUS SITUATION. YOU SHOULD MONITOR LATER FORECASTS AND BE PREPARED TO TAKE ACTION SHOULD FLASH FLOOD WARNINGS BE ISSUED. I think for a Watch the message should read: monitor later forecasts should a warning be issued.

                                         Jerry
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 07, 2013, 10:21:31 AM
Wim,

 I have a question about the Noaa watches and warnings on my site http://weatheranmore.com/weather/.
At the moment there is a flood watch for my area and the message is level: Severe, Significant threat to life or property - Responsive action SHOULD be taken soon (within next hour). However, the watch does not take effect until Sunday morning.
The watch instructions from NOAA read: A FLASH FLOOD WATCH MEANS THAT CONDITIONS MAY DEVELOP THAT LEAD TO FLASH FLOODING. FLASH FLOODING IS A VERY DANGEROUS SITUATION. YOU SHOULD MONITOR LATER FORECASTS AND BE PREPARED TO TAKE ACTION SHOULD FLASH FLOOD WARNINGS BE ISSUED. I think for a Watch the message should read: monitor later forecasts should a warning be issued.

                                         Jerry
Hi Jerry, I agree that severity level and color do not match with the content of the message. But I am not close to my own computer to check the scripts. I will look into it later on this evening and post my findings and an idea how to solve it. Is your text fot the Watch message from an original noaa site or your own proposal? If from noaa please post or send a pm with the url.
Thanks for bringing this to my attention.

Wim
I am writing this on my iPad  near a pool on the first day with summer weather this year!
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jerbo on July 07, 2013, 01:52:32 PM
Wim,

  The watch is no longer in effect for my county, so I changed my $SITE['warnArea'] to the next county where the watch is
still in effect. The NWS page is http://alerts.weather.gov/cap/wwacapget.php?x=PA124F0BA623EC.FlashFloodWatch.124F0BB3F760PA.PBZFFAPBZ.5b47588090dbb816d4b4c9e4a8d6a6da.
When looking at the file noaa/noaaWarning.php', there does not seem to be any code for advisories or watches, only for warnings.

 Also, in my state each county is it's own alert zone, so would it be possible to add more than one zone to a site. There is a script on my old site that lets you add up to 4 zones without using a cron job. There is no rush to get this done. Enjoy your summer weather.

                                                              Thank you,
                                                                      Jerry
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 08, 2013, 09:35:49 AM
Dr Obbins
How did you get your radar picture into the menu bar?
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on July 08, 2013, 01:33:43 PM
I will can provide more info when I get home from work.
1. I don't use the WU address for the pic, so I found the section of the script that references the WU pic and then put my webcam address in that location.
2. I pretty much copied/pasted the webcam script but put the radar address there instead.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 08, 2013, 01:38:59 PM
Thanks.  I noticed that and copied the webcam code and kept changing that till it worked.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Dr Obbins on August 18, 2013, 09:22:36 AM
Two questions:
1.It looks like the background changes from night to day at 8:00am. Where is the setting for this?
2. I would like to use a live webcam for the background during the day and the stock background pics at night. Where is the part of the script that sets the backgrounds? I would like to insert this script.
Website (http://www.cavecountryweather.com/weather2/index.php)
Code: [Select]
<?php 
// ~15 minutes before sunrise to ~15 minutes after sunset

$cut_off '15';  // cut off time in minutes

$day_image "webcamimage-ih.php";       // filename to use for the day time image
$night_image "webcamimage-ih2.php";   // filename of use for the night time image
$mysunrise_time $sunrise ;          // tag for sunrise
$mysunset_time $sunset ;            // tag for sunset
date_default_timezone_set('America/Chicago');

####   END OF SETTINGS   ####

$cot $cut_off 60;                    // cut off time in seconds
$et date("U");                         // current time in seconds since the Unix Epoch 
$srt strtotime($mysunrise_time)-$cot;  // get time stamp for sunrise minus cut off time
$sst strtotime($mysunset_time)+$cot;   // get time stamp for sunset plus cut off time

$outputImage $night_image;             // set night image as default
if($et >= $srt and $et <= $sst) {        // IF the current time is during day time span
  
$outputImage $day_image;             //   change the image to the day image
}
?>
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 18, 2013, 10:23:34 AM
Two questions:
1.It looks like the background changes from night to day at 8:00am. Where is the setting for this?
2. I would like to use a live webcam for the background during the day and the stock background pics at night. Where is the part of the script that sets the backgrounds? I would like to insert this script.
Website (http://www.cavecountryweather.com/weather2/index.php)
Code: [Select]
<?php 
// ~15 minutes before sunrise to ~15 minutes after sunset

$cut_off '15';  // cut off time in minutes

$day_image "webcamimage-ih.php";       // filename to use for the day time image
$night_image "webcamimage-ih2.php";   // filename of use for the night time image
$mysunrise_time $sunrise ;          // tag for sunrise
$mysunset_time $sunset ;            // tag for sunset
date_default_timezone_set('America/Chicago');

####   END OF SETTINGS   ####

$cot $cut_off 60;                    // cut off time in seconds
$et date("U");                         // current time in seconds since the Unix Epoch 
$srt strtotime($mysunrise_time)-$cot;  // get time stamp for sunrise minus cut off time
$sst strtotime($mysunset_time)+$cot;   // get time stamp for sunset plus cut off time

$outputImage $night_image;             // set night image as default
if($et >= $srt and $et <= $sst) {        // IF the current time is during day time span
  
$outputImage $day_image;             //   change the image to the day image
}
?>
The script is weather2/index.php lines 277 --
First in the body-class the default colors are set.
Then if a jpg with the correct name exist that is used as a back-ground picture (sort of).
Code: [Select]
echo '<body class="'.$headerClass.'">'.PHP_EOL;
#-----------------------------------------------------------------------------------------
# Now we set a picture as background based on the  settings
#-----------------------------------------------------------------------------------------
$fileString='img/background-'.$headerClass.'.jpg';
if (file_exists($fileString)) {
echo '<img src="'.$fileString.'" class="bg" alt="" />'.PHP_EOL;
}
The switch from day to night is based on sunset and sunrise time and are not fixed but calculated equivalent to your calcs..
So I think you do not need the first part of your code.
In script wsDataGet.php the lines 53-57 set the description of day or night you could test.
Code: [Select]
if (($nowInt >= $sunriseInt) && ($nowInt <= $sunsetInt)) {
$dayNight = 'daylight';
} else {
$dayNight = 'nighttime';
}
Hope this helps with your idea,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: FinPat on September 12, 2013, 11:20:23 AM
Hello

I do not know if this is correct place to ask for some help.
But i have a problem like this on my website:

.. Notice: Undefined index: lastRainTip in /home2/int47017/public_html/weather2/inc/trends.php on line 250
It is Cumulus driven and what i find in cumulus tags it would be lastRainTipISO, but even if i change to this it wont work still same error.

Website location
http://www.pvuorio.net/weather2/index.php?p=61

Trying to understand where all the different indexes comes from. Havent really figured it out yet.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 12, 2013, 11:49:35 AM
Hello

I do not know if this is correct place to ask for some help.
But i have a problem like this on my website:

.. Notice: Undefined index: lastRainTip in /home2/int47017/public_html/weather2/inc/trends.php on line 250
It is Cumulus driven and what i find in cumulus tags it would be lastRainTipISO, but even if i change to this it wont work still same error.

Website location
http://www.pvuorio.net/weather2/index.php?p=61

I enclose a replacement for tags.txt which includes the needed tags for cumulus

Quote
Trying to understand where all the different indexes comes from. Havent really figured it out yet.
If you mean thiose numbers after index.php like p=61?
Those are the numbers in the menu system which points to the scripts. A description can be found at:
http://www.weerstation-leuven.be/_template2/documentation/menu_en.pdf (http://www.weerstation-leuven.be/_template2/documentation/menu_en.pdf)

Also, for your comfort, change the line in index.php (around line 30) which read
Code: [Select]
$lang = 'nl'; to
Code: [Select]
$lang = 'en';
In a few days (next week) a fresh new version of the template will be available for download.
Those irritating errors should then be gone.

You can also e-mail me if you have more questions.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 15, 2013, 05:19:44 AM
A new version 2.30 is ready to be downloaded.
http://www.weerstation-leuven.be/_template2/template.php?lang=en (http://www.weerstation-leuven.be/_template2/template.php?lang=en)

The North American test site http://www.weerstation-leuven.be/northam/ (http://www.weerstation-leuven.be/northam/) runs already with the new version.

Weather programs supported now also include consolewd for the rapsberryPI.

The European and North American version are integrated in one set of scripts.
NOAA is fully supported and all remarks from this topic are taken care of, I think.

As always, send me a message here on the board or an email if you have difficulties implementing or if you find things in error or which should be improved.

Next step is finding the correct information (forecasts and warnings in xml format) for the Canadian users and writing the scripts for that.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: el-rain on September 25, 2013, 08:40:27 AM
Hi,
I currently test a bit with those Scripts to bring my weather station data on line, but have a problem with the steelseries Gauges, it always show the message that the Tag file is broken.

Setup is a Davia VP connected via Meteohub. I gone multiple times through the install documents to make sure I have no error in the setup but still same problem.
When I compare my realtimeTags file with others which use as well meteohub the only I see is that the UV and Solar values still show the [value_name] which make sense to me as I don't have a UV or Solar sensor installed.

wetter2.dg7yeo.de (http://wetter2.dg7yeo.de)

I would be happy for any hint what I can check to find out where the error is and how to fix this.

El
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 25, 2013, 09:09:12 AM
Hi,
I currently test a bit with those Scripts to bring my weather station data on line, but have a problem with the steelseries Gauges, it always show the message that the Tag file is broken.

Setup is a Davia VP connected via Meteohub. I gone multiple times through the install documents to make sure I have no error in the setup but still same problem.
When I compare my realtimeTags file with others which use as well meteohub the only I see is that the UV and Solar values still show the [value_name] which make sense to me as I don't have a UV or Solar sensor installed.

wetter2.dg7yeo.de (http://wetter2.dg7yeo.de)

I would be happy for any hint what I can check to find out where the error is and how to fix this.

El
I can send you the changed script to get rid of this error.
Please send me an email -adress.
Thanks, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 06, 2013, 03:56:14 AM
A new version 2.30 is ready to be downloaded.
http://www.weerstation-leuven.be/_template2/template.php?lang=en (http://www.weerstation-leuven.be/_template2/template.php?lang=en)

The North American test site http://www.weerstation-leuven.be/northam/ (http://www.weerstation-leuven.be/northam/) runs already with the new version.

Weather programs supported now also include consolewd for the rapsberryPI.

The European and North American version are integrated in one set of scripts.
NOAA is fully supported and all remarks from this topic are taken care of, I think.

As always, send me a message here on the board or an email if you have difficulties implementing or if you find things in error or which should be improved.

Next step is finding the correct information (forecasts and warnings in xml format) for the Canadian users and writing the scripts for that.

Wim
The Canadian version is operational now at http://www.weerstation-leuven.be/weatherCanada/ (http://www.weerstation-leuven.be/weatherCanada/)

Download: The download will be ready from 2013-10-23, the upcoming two weeks will be used for changes to the documentation and some more testing of the EC-warnings (if there are any) and a one week vacation to beautiful Quebec, CA.

Additions on top of the needed localization of maps a.s.o.:
1. The Environment Canada forecast and warnings (using the xml feed)
2. The Air Quality Health Index on the front page (no xml so the html pages are scanned)

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0 (http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0).

Please let me know if you find things in error or which should be improved.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on October 06, 2013, 11:18:48 AM
Hi Wim,
Very well done.  I look forward to downloading and giving it a try.

and enjoy your vacation,

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 22, 2013, 09:59:15 AM
The updated 2.31 release now contains the Canadian forecast and warning scripts.
Also a AQHI (air quality health index) is added.
Downloads as usual from www.weerstation-leuven.be (http://www.weerstation-leuven.be)
Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on October 22, 2013, 10:57:49 PM
Hi Wim,
I have downloaded and tried to unzip but that failed with an Error 0x80070057 "The parameter is incorrect".  It stops during the unzip at "mobi" and a Retry then continues, but fails again later on with the similar file, and continues with another Retry and then at the end can't complete the unzip. Appears to be mobi file.  I have tried 3 separate times and each time the same Errors and failure.

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 23, 2013, 01:40:29 AM
Hi Wim,
I have downloaded and tried to unzip but that failed with an Error 0x80070057 "The parameter is incorrect".  It stops during the unzip at "mobi" and a Retry then continues, but fails again later on with the similar file, and continues with another Retry and then at the end can't complete the unzip. Appears to be mobi file.  I have tried 3 separate times and each time the same Errors and failure.

Paul
I assume something went wrong with the upload or download to your PC/Mac.
Discard the current zip and the unpacked folder.
Do the download again and try the unzip.
The files are stored at GoDaddy which seems to be very busy when it is day-time/evening for the Amaricans.

I uploaded/downloaded this morning the zip again and as tested:
1. it can be unzipped without errors, albeit on a Mac. Test it later today on a Windows PC.  
2. The file size before unzip is: 38.541.381 bytes (38,5 MB op schijf)
3. The unzipped folder: 50.490.199 bytes (73,2 MB op schijf) voor 3.990 onderdelen
       This description is copied from the finder and is in Dutch: onderdelen == parts  schijf == disc
4. No differences can be found between the downloaded/unzipped one and the orginal folder
       50.490.199 bytes (73,2 MB op schijf) voor 3.990 onderdelen
I will in the future make and supply a md5 hash so users can check the validity of the downloaded file.
Wim


SORRY: this zip is not downloadable under windows 7 at this moment  2013-okt-23  09:00 CET.
One can skip the two files in error but i will first test today why there is a difference between Mac and PC during the unzip.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 23, 2013, 05:25:30 AM
Hi Wim,
I have downloaded and tried to unzip but that failed with an Error 0x80070057 "The parameter is incorrect".  It stops during the unzip at "mobi" and a Retry then continues, but fails again later on with the similar file, and continues with another Retry and then at the end can't complete the unzip. Appears to be mobi file.  I have tried 3 separate times and each time the same Errors and failure.

Paul
OK I uploaded a new zip file, same name.
I downloaded, unzipped and put it at Leuven test site.
http://www.weerstation-leuven.be/canada2/ (http://www.weerstation-leuven.be/canada2/)
It seems to work OK.
zip: 36.271.536 bytes both mac and win 7  (36,3 MB op schijf)
unzipped: 49.532.562 bytes (57,7 MB op schijf) voor 3.988 onderdelen  on a mac
The size and number of files is lower at a Win7 machine as the Mac is inserting all kinds of read-only files (.DS store) where it saves desktop and icon info.

MD5 hash of the zip:   AC3EB684286096B07AEC4087E3A2EC0E

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on October 23, 2013, 06:04:33 PM
Thanks Wim,
I had actually downloaded 3 separate times after the failure to unzip and removed the full download from my PC each time.  Your new zip downloaded and unzipped fine and is 34.5 MB zipped and 81.8 MB unzipped with 3,907 files and 118 folders.

I will now try to understand the templates and get them working.

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on October 25, 2013, 11:11:13 PM
Hi Wim,
I have it installed and in test www.komokaweather.com/weather2/index.php (http://www.komokaweather.com/weather2/index.php)
Wow, a lot of information included in the template set =D&gt;.  I have done a line-by-line review/change in the settings and settings-weather.php files and a few other files but still some settings to find and change.

Can you give me some quick pointers on -
1. How to fix the aqhiCanada.php notices on the home page.  I have checked that file but can not see what I should change.
2. YoWindow doesn't look to be using my local data nor time.
3. On the Other Sites links it seems to want a numerical ID but my PWS is KOMOKA and my CWOP is DW3930 so these do not work.
4. Can the background image be removed and/or replaced.
5. Can I remove the Donate button.

Thanks,
Paul

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 26, 2013, 04:21:13 AM
Hi Wim,
I have it installed and in test www.komokaweather.com/weather2/index.php (http://www.komokaweather.com/weather2/index.php)
Wow, a lot of information included in the template set =D&gt;.  I have done a line-by-line review/change in the settings and settings-weather.php files and a few other files but still some settings to find and change.
Can you give me some quick pointers on -
1. How to fix the aqhiCanada.php notices on the home page.  I have checked that file but can not see what I should change.
2. YoWindow doesn't look to be using my local data nor time.
3. On the Other Sites links it seems to want a numerical ID but my PWS is KOMOKA and my CWOP is DW3930 so these do not work.
4. Can the background image be removed and/or replaced.
5. Can I remove the Donate button.
Thanks,
Paul
Some answers:

All line numbers are approximately as they change with every release

5. donate button:

script weather2/wsSideColom.php
line: 30  
$SITE['donateButton'] = false;


4 background images colors etcetera
a. You can choose which fixed color set you want or a background who changes with the current weather
   script weather2/wsSettings.php line 93

$SITE['colorNumber']   = 0;   // #####    this number is the default key which color and style your website will be using
$SITE['colorStyles']   = array ('weather adapted', 'green','blue','pastel','red','orange','none','clouds','cloudsn','mist','moon','pclouds','rain','snowx','storm','sun','thunder');

b. You can test the different colors and weatherconditions with menu choice "Customize"

c. You can adapt CSS for every color scheme in script  weather2/styleMood20.css

d. If you want a different picture, for instance of your own city, store that picture in the folder weather2/img/
   For instance a different picture for the color-scheme "clouds" would be weather2/img/headClouds.jpg
   Please compress the image so that it is not to big
   Browse the weather2/img folder to see the different backgrounds. For certain schemes multiple backgrounds are there

See also the Q&A at http://www.weerstation-leuven.be/_template2/template.php?lang=en#5 (http://www.weerstation-leuven.be/_template2/template.php?lang=en#5)

3 Other Sites links at lines 462 - 474 in weather2/wsSettings.php

The links are either false or a value which is used to acces the current page.
So at my site some of these  are:
$SITE['hwaID']         = 'wilsele';                               // #####
A string is needed for that site
$SITE['ewnID']         = true;                               // #####
A simple false or true needed for this one
$SITE['pwsID']         = 'WILS01';                              // #####
Again a string, so in your case 'KOMOKA'
$SITE['cwopId']         = 'D8113';                              // #####
Yours would be 'DW3930'  I think.
But be aware that CWOP works differently outside NortAmerica so please warn me if there are errors in the scripts  or URL. I could not test them here in Europe as extensively as should have been.

2. YoWindow doesnt look to be using my local data nor time.
   Yowindow needs  3 differtent things to be fully functional.
a.   a crossdomain.xml in the ROOT of your website.
   http://yowindow.com/widget_and_pws.php (http://yowindow.com/widget_and_pws.php)
   A zz_crossdomain.xml is in your download and uploaded in step 1.2 of
   http://www.weerstation-leuven.be/_template2/documentation/__readMeFirst_en.pdf (http://www.weerstation-leuven.be/_template2/documentation/__readMeFirst_en.pdf)
   You have to rename that to crossdomain.xml

b.  a correct location_id which is set in line 381 in weather2/wsSettings.php
   On line 379 you find in the comments the url http://yowindow.com/id (http://yowindow.com/id) where can find the id for almost every large or smalll city
   So change that line to
   $SITE['YoWindowPlaceID']='6182962';
   as that is the correct id for windsor ontario

c. a xml file to be uploaded by the weather program with the current conditions, see documentation
   http://www.weerstation-leuven.be/_template2/documentation/uploads_en_CU.pdf (http://www.weerstation-leuven.be/_template2/documentation/uploads_en_CU.pdf)
   A file with that name is present at
   http://www.komokaweather.com/weather2/uploadCU/yowindow.xml (http://www.komokaweather.com/weather2/uploadCU/yowindow.xml)
   but that is the old file for testing from the download.
   So it seems the file is not uploaded or to a different location.

1. How to fix the aqhiCanada.php notices on the home page.
   The settings are very precise, see also the csv files mentioned in the docs.
             http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv (http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv)
   For you it should be:
   $SITE['caProvince']   = 'ON';         // #####
   $SITE['aqhiArea']      =  'Windsor';   // #####    
   $SITE['caCityCode']   = 's0000646';   // #####    
====
I tested most of these settings in http://www.weerstation-leuven.be/canada2/index.php?p=10 (http://www.weerstation-leuven.be/canada2/index.php?p=10)
So you can compare your results with that page.

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on October 26, 2013, 11:55:29 AM
Thank you Wim,
I have fixed these except will need to still do the YoWidow.  The CWOP does work (had an initial problem that it couldn't connect to the url but later on it did so likely a temporary cwop issue).

Still need to work on -
    getting the precipitation radar from the west coast to Southern Ontario,
    change the Mesonet links from Alaska and Western Canada to our area,
    fix the WU forecast and World Weather forecast details
    fix the WU History graphs errors
    fix by webcam image
    and how to get the world map, nearby buoys and temperature worldwide pages to have the marker on North America instead of Europe
but have done pretty good so far.

And another observation, my AWEKAS page comes up in Flemish

And oh, how would I add my Sunrecorder images on the home page?

I am really amazed with what you have done with these templates and the support documentation included with them, and what you have given here, awesome!

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 26, 2013, 12:16:40 PM
Thank you Wim,
I have fixed these except will need to still do the YoWidow.  The CWOP does work (had an initial problem that it couldn't connect to the url but later on it did so likely a temporary cwop issue).

Still need to work on -
    getting the precipitation radar from the west coast to Southern Ontario,
    change the Mesonet links from Alaska and Western Canada to our area,
    fix the WU forecast and World Weather forecast details
    fix the WU History graphs errors
    fix by webcam image
    and how to get the world map, nearby buoys and temperature worldwide pages to have the marker on North America instead of Europe
but have done pretty good so far.

And another observation, my AWEKAS page comes up in Flemish

And oh, how would I add my Sunrecorder images on the home page?

I am really amazed with what you have done with these templates and the support documentation included with them, and what you have given here, awesome!
Paul
Hello Paul,
1. WU  webcam
http://www.wunderground.com/webcams/PaulMy/1/show.html (http://www.wunderground.com/webcams/PaulMy/1/show.html)
Your camera id seems to be PaulMy
So change $SITE['webcamID'] => PaulMyCAM1
It could be there are still errors with WU, but at the moment this seems to be your webcamID.

2. WU  forecast
$SITE['wuId']     => IONTARIO226     seems ok
$SITE['wuFctId']  => PWS:IONTARIO226IONTARIO226   ???? strange

WU now supports forecasts using lat lon so I tested that to remove the errors as on
http://www.komokaweather.com/weather2/index.php?p=50-3 (http://www.komokaweather.com/weather2/index.php?p=50-3)
If they persist after correcting $SITE['wuFctId'] I will post a changed script.

It would still not work if you do not have your own WU-API-key to use.
But for testing remove the first x from the string at  $SITE['wuKey']

We are using for all forecasts the xml feeds but sometimes (WU and WW) they need a extra signup and a key.

3. WW forecasts
Same issue with $SITE['worldKey'], remove the x and if finished request your own key at their site and replace this setting with yours
WorldWeather already was working with latitude/longitude as city-location-ID

Important
If it looks if changes in the settings have no effect on the website:
PLEASE look into the weather2/cache/ folder and remove the old cache files if you are changing things with forecasts and so on.
====
Will look into the other remarks when the small guests (grand-children) are in bed.
====
Please be aware that you have to get your own hiStats account (it is free) so that the red bar at the bottom is more usefull to you.
Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 26, 2013, 03:19:16 PM
Thank you Wim,
...
Still need to work on -
...
    fix the WU History graphs errors
 ...
Paul
Hello Paul,
I downloaded the latest version and put it into the template download.
I wrote the scripts to integrate them nicely in the template, I think.
Then i forgot to write a how to install wxwugraphs.
That is in the download description at   http://pocasi.hovnet.cz/wxwug.php?lang=en (http://pocasi.hovnet.cz/wxwug.php?lang=en)
But I did the download and put in the right place already, so one can skip those things.

Well there are two things one should do now:
1. run the configurator www.yoursite.com/wxwugraphs/configurator.php
password = ****  (see mail)
2. Test if everything is OK  www.yoursite.com/wxwugraphs/WUG-test.php
same password.

Be aware that you can not use the hourly graphs as they need clientrawhourly.txt which is uploaded by WD/CW/MH/MB but not by Cumulus, which you are using.
So set that setting correctly.
====
If everything seems wrong simply remove the settings.php from the weahter2/wxwugrpahs/  folder and start again.
And do not forget to change the password.
Succes,  Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: blainec on November 03, 2013, 02:51:52 PM
Quote

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0 (http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0).

Wim


There is a set of png icons on Ken True's site
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 03, 2013, 02:56:46 PM
Quote

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0 (http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0).

Wim


There is a set of png icons on Ken True's site

Yes I know and they are very nice.
But the copyright notice does not allow redistribution, I think so.

So a template user is allowed to download and use them on their site.

But I should not include them in my own downloads.

Wim

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: blainec on November 03, 2013, 10:16:02 PM
Quote

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0 (http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0).

Wim


There is a set of png icons on Ken True's site

Yes I know and they are very nice.
But the copyright notice does not allow redistribution, I think so.

So a template user is allowed to download and use them on their site.

But I should not include them in my own downloads.

Wim



I have tried to implement them but they don't seem to display
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 04, 2013, 10:05:43 AM
Quote

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0 (http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0).

Wim


There is a set of png icons on Ken True's site

Yes I know and they are very nice.
But the copyright notice does not allow redistribution, I think so.

So a template user is allowed to download and use them on their site.

But I should not include them in my own downloads.

Wim



I have tried to implement them but they don't seem to display

The current EC icons are located in weather2/canada/ec-icons/

To use another set of icons one has to follow these steps:
1. download / unzip
2. copy every icon without a precip number (01.png) and name that copy 01p00.png
That means use this icon when PoP = 00
There are 45 icons in an EC set so you have to copy 45 times and rename that copy 45 times.
Seems a lot, but you have far more beautiful icons after that to display.

3. Put them somewhere on your web-server, example: weather2/canada/other-ec-icons/

4. change lines 28-29 in weather2/canada/ecSettings.php
from
Code: [Select]
$ecIconsLoc = 'canada/ec-icons/';
$ecIconsExt = '.gif';
$SITE['ecIconsOwn'] = false;
$showPoP = true;
to
Code: [Select]
$ecIconsLoc = 'canada/other-ec-icons/';
$ecIconsExt = '.png';
$SITE['ecIconsOwn'] = true;
$showPoP = true;
if you did not copy and renamed those p00 icons, set $showPoP to true, if you copied them set to false.

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: blainec on November 08, 2013, 02:16:51 PM
I have a set with the POP icons.
I skipped the copying and renaming because of that. Changed the setting, but only 1 icon displays.

Take a look
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: blainec on November 08, 2013, 06:00:56 PM
Got it worked out now
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: blainec on November 10, 2013, 12:39:26 AM
I am trying to get the wxreports scripts to work, but I can not get them to work with the template. They will work on their own though.
In the template the data will not display and if I select a different year, it just pushes me to the home page.

Anyone got any ideas?

Stand alone page is here   http://wxcalgary.com/weather2/wxreports/wxbarodetail.php
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 10, 2013, 04:54:09 AM
I am trying to get the wxreports scripts to work, but I can not get them to work with the template. They will work on their own though.
In the template the data will not display and if I select a different year, it just pushes me to the home page.

Anyone got any ideas?

Stand alone page is here   http://wxcalgary.com/weather2/wxreports/wxbarodetail.php
The standalone page works well on its own. It adepts to the wide of the page. The reason for the template startpage to be displayed is in the handling of the form / go button.

For the time being I would advise to use
1. a newpage form the template (weather2/inc/wsNewPage.php)
2. make a copy of it and rename that as wsreportBaro.php
3. put it in the menufile at the place you wish
4. test if an empty page is displayed if you select it in the menu.
===
Now adapt the  wsreportBaro.php page you just copied and use the iFrame example in that page. The other exmple code (HTML and PHP) should be removed.The width of the iFrame can be set to 100%, the hight at 1100 pixels as the wxbarodetail.php page is that now.
It is a fast solution for pages that do not need an integration (of data or other scripts) in the Leuven Template.
Succes, Wim

P.S. After the december release I will download those scripts and if integration of the scripts add value to both, try to integrate them more closely.
 
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: blainec on November 10, 2013, 11:39:56 PM
I was hoping to integrate them, but the frame option works for now
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: metaija1 on November 26, 2013, 01:08:35 AM
I have a problem with script AjaxDashboard ( WL is used )  " it's always showing last updated: the date is always   01:01:1970  and time always  01:01 .
Thanks for your help
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 26, 2013, 08:13:21 AM
I have a problem with script AjaxDashboard ( WL is used )  " it's always showing last updated: the date is always   01:01:1970  and time always  01:01 .
Thanks for your help
This is the page were one can inspect the contents of the tags as uploaded by WeatherLink and processed by the template. http://www.meteovouvry.ch/weather2/index.php?p=93-4/ (http://www.meteovouvry.ch/weather2/index.php?p=93-4/)
All your date fields are in error. The date fields are in an unexpected format.
The program expected the fields
<!--stationDate--> <!--stationTime--> in a certain format, the result is normally
12-09-13 16:02
It seems that your Weatherlink is returning the date time fields a different format then I encouterd until now.
12.09.13 16:02 So a point and not a dash.
Please change line 22 in todayTags.htx and ydayTags.htx in your Weatherlink webfiles folder from
Code: [Select]
$from = array ('-',':'); to
Code: [Select]
$from = array ('-',':','.');The uploads after the change will be correctly processed.
I attached an updated version of this script also.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 29, 2013, 07:11:43 AM
A new version of Ken True "Global Mesonet Page" is available.
Discussion: http://www.wxforum.net/index.php?topic=20865.0 (http://www.wxforum.net/index.php?topic=20865.0)
For users of the Leuven-Template I adapted the scripts to run nicely inside this template environment including multi-languge support.

Download http://leuven-template.eu/downloads/global_map.zip (http://leuven-template.eu/downloads/global_map.zip)

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on November 29, 2013, 02:23:59 PM
I have downloaded and installed this but must have another mistake somewhere http://www.komokaweather.com/weather2/glo/wxglobal.php (http://www.komokaweather.com/weather2/glo/wxglobal.php)
replaced former /glo with new /glo folder.  I have also tried with wxglobal.php in the /weather2 folder but no success.  Should any of the files in /glo be moved up in the /weather2 folder, or other setting changes?

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 29, 2013, 02:40:31 PM
I have downloaded and installed this but must have another mistake somewhere http://www.komokaweather.com/weather2/glo/wxglobal.php (http://www.komokaweather.com/weather2/glo/wxglobal.php)
replaced former /glo with new /glo folder.  I have also tried with wxglobal.php in the /weather2 folder but no success.  Should any of the files in /glo be moved up in the /weather2 folder, or other setting changes?

Paul
the template works with a menu.
http://www.komokaweather.com/weather2/

If you select the page in the menu => mesonets => global
You go to page
http://www.komokaweather.com/weather2/index.php?p=33
Which displays the global map correctly.
============
The saratoga template works with scriptnames, the Leuven-Template with numbers.

Succes, wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jerbo on November 29, 2013, 02:54:00 PM
wim,
 
 I have installed your new version Global Mesonet Page at http://www.weatheranmore.com/weather/index.php?p=32.
It is working, but two things I noticed were, the img src for the cluster marker at the bottom is from your website.
I had to change the wxglobal.html file to my source to show the image. Also, the w3.org html5 validator has two errors.
Bad value Pragma for attribute http-equiv on element meta. <meta http-equiv="Pragma" content="no-cache" />
Bad value Cache-Control for attribute http-equiv on element meta. <meta http-equiv="Cache-Control" content="no-cache" />
 
                                                 Jerbo
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on November 29, 2013, 02:54:41 PM
Thanks again Wim, so it has been there all along :oops:

Now to fix the little image problem.
Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 29, 2013, 03:42:32 PM
. . .
Now to fix the little image problem.
Paul
wim,  I have installed your new version Global Mesonet Page at http://www.weatheranmore.com/weather/index.php?p=32.
It is working, but two things I noticed were, the img src for the cluster marker at the bottom is from your website.
I had to change the wxglobal.html file to my source to show the image. Also, the w3.org html5 validator has two errors.
Bad value Pragma for attribute http-equiv on element meta. <meta http-equiv="Pragma" content="no-cache" />
Bad value Cache-Control for attribute http-equiv on element meta. <meta http-equiv="Cache-Control" content="no-cache" />
 Jerbo
Can you please do a new download and replace the scripts in the glo folder.
There appaeared to be two errors: 1 the image has an incorrect address and the cache is not correctly read.
These two errors are solved in the current version.
I will look tomorrow (as my timezone is CET) into the  w3.org html5 validator .
I forgot to do that. So thanks Jerbo for testing it.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on November 29, 2013, 05:55:39 PM
I have replaced with the new download and the image issue is gone.

Thanks,
Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 04, 2013, 09:46:07 AM
The beta version for the Dec 31 release is online for:
Whats New:
1.  Adaptable startpage. In the current release the startpage (menu choice "current weather") is adaptable on a few points such as which forecaster, yes or no soil info, and an extra YoWindow gadget.

Release 2.40 offers more and different components that can be selected and put in any order om the startpage.
The menu choice to view current available components is the second one on both demo sites.

2.  WiKi. The documentation is no longer included in the download. All current release pdf-documents could already be read on-line. I am nearly finished rewriting everything and putting it in a  WiKI: http://wiki.leuven-template.eu/doku.php  (http://wiki.leuven-template.eu/doku.php)  And yes, it is draft typing. But before the end of December I have everything spell-checked. And as Dutch is my native language please be kind about the English version as long as it is understandable.  In future releases the WiKi can be downloaded also. It does not need SQL. 

3.  Test of support ticketing system.On the demo- and WiKi-sites a pop-up support form is available if things are still unclear. Also the http://leuven-template.eu/?lang=en (http://leuven-template.eu/?lang=en) website is created to improve the response times and gather all  support type activities in one place . It also uses a different provider as the one for the demo-sites.

====

For those who want to start testing the Leuven-Template, the download is "finished". So better use the 2.4b release if you start from scratch.

In January I will wite a conversion doc for current 2.3x users.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: CNYWeather on December 05, 2013, 07:32:27 AM
I cant seem to get either of those beta example links to open Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on December 05, 2013, 08:53:51 AM
I can open them both and from home and at work computers.

Hope to test it on the weekend.

Paul

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: CNYWeather on December 05, 2013, 11:13:33 AM
Hmmm.

I get a Resolving Host in the taskbar. Just tried at work too. Maybe a Time Warner thing?  ](*,)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: BfdWx on December 05, 2013, 11:39:04 AM
No problem here either Tony! Take a look at my site, I have the template running, it's about 90% complete. The new version is running under the Test Page tab, although currently our local radar is down for maintenance.

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: CNYWeather on December 05, 2013, 12:34:54 PM
WOW, that really looks good. I've been thinking of a change. Wonder if I could squeeze the Alternative Dashboard in there?

I have a project now.  :grin:


I even tried with IE (YUK) and couldnt get to those beta pages either.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 05, 2013, 03:21:22 PM
WOW, that really looks good. I've been thinking of a change. Wonder if I could squeeze the Alternative Dashboard in there?

I have a project now.  :grin:


I even tried with IE (YUK) and couldnt get to those beta pages either.
i am in NYC myself at the moment and i can not reach them myself. Of three different hosters two are not reachable. There is a storm, but how that can influence my sites, ?
The wiki can be reached. Leuven-template.eu

But not my test sites at www.weerstation-leuven.be. And not my and my daughters production sites.
I hope things clear out soon,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: BfdWx on December 05, 2013, 03:33:31 PM
Quote
i am in NYC myself

Only about an hour away from me Wim.....are you enjoying the fog?

Jack
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 06, 2013, 09:03:17 AM
Quote
i am in NYC myself

Only about an hour away from me Wim.....are you enjoying the fog?

Jack
the problems yesterday were caused by a DDOS attack on the DNS server were i bought my .be domains. Thats why my websites at two unrelated providers could not be reached. The attack has stopped and everything is working again.
@jack. The weather was forecasted to be cold and dry, so it was quit a surprise landing with 14 degrees C. Especially as we had only warm winter clothes with us.  But that is why the weather is such a nice hobby,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on December 14, 2013, 12:16:36 PM
excellent website templates, slowly getting my head around everything and still in the experimental stage have a small problem with a error message appearing on the main screen my knowledge of programming is a bit basic so if anybody can help would be appreciated
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 14, 2013, 12:21:15 PM
excellent website templates, slowly getting my head around everything and still in the experimental stage have a small problem with a error message appearing on the main screen my knowledge of programming is a bit basic so if anybody can help would be appreciated

Two helpfull remarks (I hope):
1. This is a warning which should disappear as you are finished with testing and setting debug mode off.
2. If you go to the line number mentioned and replace the word split  with explode the warning will disappear also.

The latest releases of PHP do not like the split function anymore. But the old (as in a few years) scripts sometimes still contain this instruction.

If you run into any problem, let me know and I will post a adapted version of this script.
Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on December 14, 2013, 01:11:13 PM
excellent problem solved, another small one I just noticed, yowindow has the current time ( to the right of Live) shown as 1 hour ahead of what we are, where would it be picking this up from, thanks for the quick response
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: George Richardson on December 14, 2013, 03:35:00 PM
"yowindow has the current time ( to the right of Live) shown as 1 hour ahead of what we are, where would it be picking this up from,"

Possibly from Wxsim still having Daylight Savings Time checked.

FWIW

George
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 14, 2013, 04:00:17 PM
excellent problem solved, another small one I just noticed, yowindow has the current time ( to the right of Live) shown as 1 hour ahead of what we are, where would it be picking this up from, thanks for the quick response
Your homepage at http://www.weatherwatcher.co/weather2/  displays incorrect YoWindow.
YoWindow gets its data from:
a.  Your weatherdata = yowindow.xml  => OK, but can only be read if allowed by crossdomain.xml
b.  Metar
c.  YoWindow placeID (set in the wsSettings.php)

1. documentation at http://wiki.leuven-template.eu/doku.php?id=yowindow
2. the crossdomain.xml is not in the root of the website
    http://www.weatherwatcher.co/crossdomain.xml   gives 404 error
3. can not check if you updated the metar, looks OK
4. yowindow placeID  2792482  is definitly not a place in UK but in Belgium

Succes, Wim



Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: BfdWx on December 14, 2013, 04:16:58 PM
 Wim,

The small radar on the homepage side column is not displaying for a "Winter Storm Warning".

Regards,

Jack
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 14, 2013, 04:27:12 PM
Wim,

The small radar on the homepage side column is not displaying for a "Winter Storm Warning".

Regards,

Jack
Hi Jack,
I have to check what "winterstorm warning" should show. The first radar is for severe  thunder, the second for severe rain/snow. Will look into tomorrow in my day-time as I am typing this on my iPad.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on December 15, 2013, 04:35:47 AM
thanks again another problem solved
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on December 16, 2013, 04:42:31 AM
is it possible to include a streaming web cam image on a page, I have a snapshot displayed at the moment, http://www.weatherwatcher.co/weather2/index.php?p=12 , apart from creating a page refresh is there a more professional way of going about it
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 16, 2013, 04:51:09 AM
is it possible to include a streaming web cam image on a page, I have a snapshot displayed at the moment, http://www.weatherwatcher.co/weather2/index.php?p=12 , apart from creating a page refresh is there a more professional way of going about it
There are a lot of ways, sometimes multiple ways for the same webcam.
First you have to look into the documentation of your webcam, then into the webcam specific parts of this forum and finaly post this question in a more webcam oriented thread.
Such as: http://www.wxforum.net/index.php?board=72.0
Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on December 20, 2013, 11:06:21 AM
got webcam working, would like to put Statcounter code as follows, not sure which page would be best to put it on would only like to have to do it once needs to go before  </body>


<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project=9087441;
var sc_invisible=1;
var sc_security="8d58caf7";
var scJsHost = (("https:" == document.location.protocol) ?
"https://secure." : "http://www.");
document.write("<sc"+"ript type='text/javascript' src='" +
scJsHost+
"statcounter.com/counter/counter.js'></"+"script>");
</script>
<noscript><div class="statcounter"><a title="web analytics"
href="http://statcounter.com/" target="_blank"><img
class="statcounter"
src="http://c.statcounter.com/9087441/0/8d58caf7/1/"
alt="web analytics"></a></div></noscript>
<!-- End of StatCounter Code for Default Guide -->
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 20, 2013, 02:34:08 PM
got webcam working, would like to put Statcounter code as follows, not sure which page would be best to put it on would only like to have to do it once needs to go before  </body>
<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project=9087441;
var sc_invisible=1;
var sc_security="8d58caf7";
var scJsHost = (("https:" == document.location.protocol) ?
"https://secure." : "http://www.");
document.write("<sc"+"ript type='text/javascript' src='" +
scJsHost+
"statcounter.com/counter/counter.js'></"+"script>");
</script>
<noscript><div class="statcounter"><a title="web analytics"
href="http://statcounter.com/" target="_blank"><img
class="statcounter"
src="http://c.statcounter.com/9087441/0/8d58caf7/1/"
alt="web analytics"></a></div></noscript>
<!-- End of StatCounter Code for Default Guide -->
It is evening here, sorry for the delay in answering. One should place a  counter like that in the footer (wsFooter.php). Than it is used on every page.  Probably the last line in your wsFooter.php is
echo $strFooter;
Place a ?> after that line and than the html-code for your counter.
Hope this helps. If not,  just make a new posting and I see that tomorrow morning (my time).
Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on December 22, 2013, 04:18:39 AM
thanks again, working fine
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jerbo on December 22, 2013, 09:54:55 AM
Wim,

   When updating my website to template Release 2.4, the barometer readings are 0.00 inhg.
I found that the Release 2.4 wsFunctions.php file is version 2.12 from 2013-04-19. When replaced with
version 2.13 from  2013-07-03 the barometer then reads the correct value.

                    jerbo
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 22, 2013, 12:14:23 PM
Wim,
When updating my website to template Release 2.4, the barometer readings are 0.00 inhg.
I found that the Release 2.4 wsFunctions.php file is version 2.12 from 2013-04-19. When replaced with
version 2.13 from  2013-07-03 the barometer then reads the correct value.
  jerbo
Thanks for bringing this to my attention.
When I look at the Nort American version of the demo template at http://www.weerstation-leuven.be/northam/ (http://www.weerstation-leuven.be/northam/) the barometer displays barometer:  29,88 inHg.  But that inHg is a recalculated hpA value. Thats why I did not notice this version error. The next zip will contain the correct version of wsFunctions.php
Thanks again Wim

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on December 27, 2013, 10:06:56 AM
The Highcharts side of my ownforecast have for some reason stopped working, I have current copies of plaintext.txt and latest.csv all appear to be ok and being updated regularly need some direction on where to look or what might have changed to stop it working
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 27, 2013, 11:10:49 AM
The Highcharts side of my ownforecast have for some reason stopped working, I have current copies of plaintext.txt and latest.csv all appear to be ok and being updated regularly need some direction on where to look or what might have changed to stop it working
It looks exactly like the error with the dates in the latest.csv file.  It seems I only put a note about this error on WeatherWatch.
Code: [Select]
2013  , 12  , 31  , 23.5  ,CLEAR      ,HEAVY DEW
2013  , 1  , 1  , 0 
As you can see the year is not increased after Dec 31. The graph displays from the first new hour after now() until the date in the last record in latest.csv, which is Jan 1, 2013. As all dates to be displayed are in the past no graphical forecast is displayed. If you look into the tables, they stop also at Dec 31, because the remaining lines are in the past.
Solution:
OK, here is the replacement for the WXSIM script. Tom (from WXSIM) has already a new Beta available for the WXSIM programs on your Windows PC and will roll out a final release soon. But you can either use the lastret.txt as input or this new version of the wsWxsimGetFile.php which has a workaround for this date error.

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on December 27, 2013, 03:35:03 PM
Excellent, one again I'm in your debt
Thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on December 31, 2013, 05:17:11 AM
Is there a way of adjusting how the background pictures appear, I assume they are controlled by weather conditions, i.e. rain . sun, snow, do they show a different one for day or night.
really impressed with these templates, is there a way I can make a donation towards their development past and future
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 31, 2013, 05:30:50 AM
Is there a way of adjusting how the background pictures appear, I assume they are controlled by weather conditions, i.e. rain . sun, snow, do they show a different one for day or night.
There are multiple ways:
1. use your own images/photos. some users use photos from their local village.
http://wiki.leuven-template.eu/doku.php?id=faq:csschanges (http://wiki.leuven-template.eu/doku.php?id=faq:csschanges)
2. you can also choose one "mood" by blocking the changing backgrounds and only selecting one.
My own website uses "pastel' as background because of all the testing I have to do.
You can set which background to use in the setting at
http://wiki.leuven-template.eu/doku.php?id=check_these_also#background_colors_and_image (http://wiki.leuven-template.eu/doku.php?id=check_these_also#background_colors_and_image)
Quote
really impressed with these templates, is there a way I can make a donation towards their development past and future
Well this will be much appreciated:
http://www.weerstation-leuven.be/northam/index.php?default&lang=en (http://www.weerstation-leuven.be/northam/index.php?default&lang=en)
There is in the left column a button "donate" which guides you to paypal and a donation is made to www.weerstation-wilsele.be which is my weatherstation. The locals know that the real, quit weatherstation in Wilsele is the one to look at and that the Leuven station is used to demonstrate all kind of "new" features.

Succes with adapting the backgrounds,

And to @all Happy New Year,

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jerbo on January 02, 2014, 03:18:12 PM
Wim,

    There is a slight problem with the version 2.4 template. If it is snowing the correct background aprears, but the vertical menu is transparent, making it hard to read. Also, if $SITE['colorNumber']   = 13 the snow background is chosen, there is no background picture,
but the vertical menu then works correctly.

                                       Jerbo
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 02, 2014, 03:51:21 PM
Wim,
    There is a slight problem with the version 2.4 template. If it is snowing the correct background aprears, but the vertical menu is transparent, making it hard to read. Also, if $SITE['colorNumber']   = 13 the snow background is chosen, there is no background picture,
but the vertical menu then works correctly.
                                       Jerbo
Hello Jerbo,
At least you have snow to test the template.
An error in the 2.4 version of the script where we renamed all weatherconditions so that they will not conflict with the new EWN scripts.
Solution:
Replace the wsIconUrl.php script in weather2/ with the attached version. => solves real snow condition
And rename the background-snowx.jpg in the weather2/img/ folder to background-snow.jpg  Same name without an x.

I will put this in the update download tomorrow after checking if there is not a similar typo with another "seldom" (at least in Belgium) weather condition.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jerbo on January 02, 2014, 05:28:06 PM
Wim,

 Thanks for the updated file. It's still snowing and the script now works as it should.

                                     jerbo
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on January 08, 2014, 12:08:52 AM
Wim,

Enjoying the Scripts...Great Job on them.  a few issues so far on my end:

1: Steelgauges; I have the customclientrawlocal set up in WD to load every minute.  Steelgauges show "corrupt file...retrying". Cannot figure this out. (went through the wdConfig.php page to download to the webfiles folder. to no avail.

2: Midwestern Weather Network (Mesonet): I downloaded the mesonet for MWWN into the Mesomaps folder. Cannot for the life of me figure the rest out once I reconfigured the pages to point towards the folder. I have no map and several errors.

3: Local Radar: Precip radar, got the information set to my local radar locations. I know my local DVN radar is working, but on my page the radar is down for maintenance.

I'm also looking to add a traffic page with cameras via 511ia.org. I should be able to use the "newpage.php" file to make that happen correct?

regards

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 08, 2014, 03:14:05 AM
. . . shortened
1: Steelgauges; I have the customclientrawlocal set up in WD to load every minute.  Steelgauges show "corrupt file...retrying". Cannot figure this out. (went through the wdConfig.php page to download to the webfiles folder. to no avail.
 I checked this morning:  seems to work now
2: Midwestern Weather Network (Mesonet): I downloaded the mesonet for MWWN into the Mesomaps folder. Cannot for the life of me figure the rest out once I reconfigured the pages to point towards the folder. I have no map and several errors.
I am not sure what happened.
If everything would be OK there should be in the root of your website  http://lightningweather.com/ at least two filders:
weather2/ containing the template and all scripts. OK
MWWN-mesomap/   a fresh copy you downloaded containing the scripts for your reginal network. Not OK  Missing

TEST 1  Display the list of stations:
http://lightningweather.com/MWWN-mesomap/MWWN-stations-cc.txt    Does not work
Should be similar to:
http://www.weerstation-herent.be/BNLWN-mesomap/BNLWN-stations-cc.txt

Some work to do
1. download a fresh copy of the MWWN-mesomap and place it NEXT to the weather2/ folder.
2. remove the weather2/mesomaps/ folder and replace it with a fresh version from your template download.

We then know for sure the starting point for testing.

TEST 2: We go step by step so we first test the MWWN page via an iFrame:
"Repair" (back to the original situation) your wsMenuData.xml
and
change the first "31" line to "no" and the second to "yes"
Code: [Select]
<item nr="31" show="no"
link="mesomaps/wnSpecificInc.php"
caption="WeatherNetwork"
title="Local Weather Exchange Stations" 
head='mesomaps/wnSpecificCSS.php'
/>
<item nr="31" show="yes"
link="mesomaps/wnGeneralFrame.php"
caption="WeatherNetwork"
title="Local Weather Exchange Stations" 
/>
How-to is described here: http://wiki.leuven-template.eu/doku.php?id=mesonets#iframe
The MWWN page should now be displayed in one long page.
If that is working correctly you could adapt the page to have multiple tabs. It is described in the WiKi at
http://wiki.leuven-template.eu/doku.php?id=mesonets#adaption_of_the_standard_scripts
Quote
3: Local Radar: Precip radar, got the information set to my local radar locations. I know my local DVN radar is working, but on my page the radar is down for maintenance.
I will look into that later today
Quote
I'm also looking to add a traffic page with cameras via 511ia.org. I should be able to use the "newpage.php" file to make that happen correct?
Yes, I think the "weather2/inc/wsNewPage.php" and the description in it could be used for almost all extra pages.
Quote
regards
Jonny J.
Thanks for testing the Leuven-Template, succes, Wim
Title: Re:
Post by: jonnyj771 on January 08, 2014, 04:05:04 AM
Wim,
I see now the steelserie's gauges are working.  Just not in Chrome.  Works in Firefox though.

I will  go back over the entire mesomaps folder tomorrow.  I had everything in the mesomaps folder instead of making a new one.  I'll redo that tomorrow.

Let me know what you come up with for the radar.  Regional works.  Local doesn't. I'm wondering if it's a change wunderground did to the URL.

Regards.,
Jonny J
Title: Re:
Post by: wvdkuil on January 08, 2014, 05:10:23 AM
Wim,
I see now the steelserie's gauges are working.  Just not in Chrome.  Works in Firefox though.
. . .  shortened . . .
Regards.,
Jonny J
I tested your Steelseries page http://lightningweather.com/weather2/index.php?p=25
MAC: Safari, Chrome, Opera, Firefox => all OK
Win-7: IE-11, Chrome => all OK
Win-8: IE-11, Chrome => all OK
Maybe you have to clear the Chrome cache on your PC.
Success, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on January 08, 2014, 06:52:04 AM
Hi Wim

Could there be any posibillity in the future to have the MetNO/YR,no forecast with the same look and feel as you have made for Heetweer?

Regards
Erik
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 08, 2014, 07:58:28 AM
Hi Wim

Could there be any posibillity in the future to have the MetNO/YR,no forecast with the same look and feel as you have made for Heetweer?

Regards
Erik
That "format" is proprietary for the cooperation between those two organizations. It is normally a .png in one color. It was allowed to redo that in html to get the adaption to other color schemes.
But I am redoing all the forecast scripts for the new release second half of this year. I will include some other condensed format like this one into the new versions.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on January 08, 2014, 03:38:14 PM
Wim,

I appreciate the insite on getting the mesonet map going.  Here's my only issue...Everything is working fine, except I cannot get the map to appear.  I have the map in the /MWWM-mesomap folder.  Is that the right folder to put it in? Or am I putting it in the wrong folder?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 08, 2014, 04:26:10 PM
Wim,

I appreciate the insite on getting the mesonet map going.  Here's my only issue...Everything is working fine, except I cannot get the map to appear.  I have the map in the /MWWM-mesomap folder.  Is that the right folder to put it in? Or am I putting it in the wrong folder?
I think the # on the folowing line is not there. The first line defines the new relative location, the second line (the original one)  should be commented out.
Code: [Select]
$Graphic = $fldr."BNLWN_meso.jpg";  // #### added / changed to run in the template
# $Graphic = "./BNLWN_meso.jpg";  // used for display on this page and in code gen.
The script still try to read the map from a diferent place.
Documentation: http://wiki.leuven-template.eu/doku.php?id=mesonets#adaption_of_the_standard_scripts
If you can not find it, you can send me the MWWN zip you downloaded and I will adapt it for you.
Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on January 09, 2014, 08:46:26 PM
Wim,

I figured the problem out.   ](*,)  The entire issue was a permissions problem. Not missing a parameter.   #-o
All I needed to do was set my permissions for that set at 775 (both MWWN-mesomap and the mesomaps folders).
After that, the page loaded cleanly. No further issues.   \:D/

Again, I appreciate the help getting this resolved.
Can you also look at the local section of the radar.
In this link is my local radar on WU. The radar is NOT inactive.  http://www.wunderground.com/radar/radblast.asp?zoommode=pan&prevzoom=zoom&num=15&frame=0&delay=15&scale=1.000&noclutter=0&ID=DVN&type=N0R&showstorms=0&lat=41.53838730&lon=-90.55599976&label=Davenport,%20IA&map.x=400&map.y=240&scale=1.000&centerx=400&centery=240&showlabels=1&rainsnow=1&lightning=0&lerror=20&num_stns_min=2&num_stns_max=9999&avg_off=9999&smooth=1 (http://www.wunderground.com/radar/radblast.asp?zoommode=pan&prevzoom=zoom&num=15&frame=0&delay=15&scale=1.000&noclutter=0&ID=DVN&type=N0R&showstorms=0&lat=41.53838730&lon=-90.55599976&label=Davenport,%20IA&map.x=400&map.y=240&scale=1.000&centerx=400&centery=240&showlabels=1&rainsnow=1&lightning=0&lerror=20&num_stns_min=2&num_stns_max=9999&avg_off=9999&smooth=1)

Thanks for keeping up with me on this.

Regards,

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 10, 2014, 04:17:55 AM
Wim,
. . . shortened . . .
Can you also look at the local section of the radar.
In this link is my local radar on WU. The radar is NOT inactive.  http://www.wunderground.com/radar/radblast.asp?zoommode=pan&prevzoom=zoom&num=15&frame=0&delay=15&scale=1.000&noclutter=0&ID=DVN&type=N0R&showstorms=0&lat=41.53838730&lon=-90.55599976&label=Davenport,%20IA&map.x=400&map.y=240&scale=1.000&centerx=400&centery=240&showlabels=1&rainsnow=1&lightning=0&lerror=20&num_stns_min=2&num_stns_max=9999&avg_off=9999&smooth=1 (http://www.wunderground.com/radar/radblast.asp?zoommode=pan&prevzoom=zoom&num=15&frame=0&delay=15&scale=1.000&noclutter=0&ID=DVN&type=N0R&showstorms=0&lat=41.53838730&lon=-90.55599976&label=Davenport,%20IA&map.x=400&map.y=240&scale=1.000&centerx=400&centery=240&showlabels=1&rainsnow=1&lightning=0&lerror=20&num_stns_min=2&num_stns_max=9999&avg_off=9999&smooth=1)
Thanks for keeping up with me on this.
Regards,
Jonny J.
Hello Jonny,
I thought it was a simple typo (a missing = before the station name).
But your station DVN works differently as the others I have seen.
So I tested at home and changed the script to suit your DVN station.  I have no idea why DVN is different then the other tested stations but "one can never test enough".
Success, Wim

Success, Wim
Title: Re:
Post by: jonnyj771 on January 11, 2014, 12:26:20 AM
Wim,
Thanks for fixing the WU Radar script up for me.
I transferred the file to the site and "boom"... We're rockin.

Regards,

Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on January 12, 2014, 12:40:03 PM
Wim,

New problem popped up while I was tweaking the site to my settings and liking.

While setting up WU forecast page, all went well. However, I am noticing that my forecast temps are in ºC while showing ºF following the temps.

I also want to implement different wind icons. what do I need to do to set them correctly without having to rename all of them?
I also have links to USWXGroup and USA Weather Finder that the links return with "Syntax Error, Parsing "<" in..."
   How to fix it?


I was also working on a traffic page based on the Iowa traffic page ( www.511ia.org (http://www.511ia.org)). The setup is in .xml and the info is becoming confusing.
If you don't want to assist with that page, that's fine. I'll work on it as I can. Not a big deal.


Again, I appreciate your assistance.

Regards,

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 12, 2014, 01:10:04 PM
Wim,

New problem popped up while I was tweaking the site to my settings and liking.

While setting up WU forecast page, all went well. However, I am noticing that my forecast temps are in ºC while showing ºF following the temps.
Normally you DO NOT have to set anything in the scripts themselves.
The WU forecast gets its data from your settings in wsSettings.php and uses the latitude and longitude to retrieve the xml.

There are problems today with the WU servers today.  Could also be affecting your area.
To narrow down the problem:
1. First remove the cached file form weather2/cache/ 
         That file is wu.weather.php-en-41.537,-90.554-F-mph-in-inHg-mi
2. Test the forecast again.

I run the http://www.weerstation-leuven.be/northam/index.php?p=50-3 which displays correctly.
      wu.weather.php-EN-41.30068,-72.793671-F-mph-in-inHg-mi     "Nearly" in the same area.
Quote
I also want to implement different wind icons. what do I need to do to set them correctly without having to rename all of them?
I do not understand what you want to accomplish.
Will you use the same type of icons "Wind Direction Graphics by Mike Challis"?
If you use his nicely crafted generator you can name the first part of the icon-names as you want just before generating them.
Quote
I also have links to USWXGroup and USA Weather Finder that the links return with "Syntax Error, Parsing "<" in..."
   How to fix it?
On what page are these links?
Quote
I was also working on a traffic page based on the Iowa traffic page ( www.511ia.org (http://www.511ia.org)). The setup is in .xml and the info is becoming confusing.
If you don't want to assist with that page, that's fine. I'll work on it as I can. Not a big deal.
I will look into that page CET tomorrow as the kids need some attention this evening.
Quote
Again, I appreciate your assistance.
Regards,
Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on January 12, 2014, 03:51:33 PM
Hi Wim

I´m trying to adapt a new translation to the template, but it dosen´t show up in the language select, neither the test are translated. Obvisiolly i`m doing something wrong ;-)
Both files are put in the directory: lang
Can you please help me.

The new language is: Danish
Website (not finished yet): http://byvejr.danmaach.dk

Language files attached.

Thanks in advance

Erik M M
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 12, 2014, 04:31:11 PM
Hi Wim

I´m trying to adapt a new translation to the template, but it dosen´t show up in the language select, neither the test are translated. Obvisiolly i`m doing something wrong ;-)
Both files are put in the directory: lang
Can you please help me.

The new language is: Danish
Website (not finished yet): http://byvejr.danmaach.dk

Language files attached.

Thanks in advance

Erik M M
Hello Erik,
The available languages can be downoaded from
http://www.weerstation-leuven.be/_template2/template.php?lang=nl&step3 (http://www.weerstation-leuven.be/_template2/template.php?lang=nl&step3)
on top of the page. Danish is not yet in it.
BUT there is a description of how to proceed because it is necessary to modify the settings if a new langiuage is available, before it can be shown.  You need  wind-roses also (there is a description for that in the language download) and a flag.
There is another Danish user http://www.vejr3.dk/weather2/index.php (http://www.vejr3.dk/weather2/index.php) which already is using his site in Danish.

I will add the expanded and revised content of the readme for the language installation also to the WiKi in the next week.

If you still run into problems, please let me know. You can also use the support system at http://leuven-template.eu/index.php?lang=en (http://leuven-template.eu/index.php?lang=en) or at any of the demo sites at www.weerstation-leuven.be/weather2/ (http://www.weerstation-leuven.be/weather2/).

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on January 12, 2014, 04:39:51 PM

The available languages can be downoaded from
http://www.weerstation-leuven.be/_template2/template.php?lang=nl&step3 (http://www.weerstation-leuven.be/_template2/template.php?lang=nl&step3)
on top of the page. Danish is not yet in it.
BUT there is a description of how to proceed because it is necessary to modify the settings if a new langiuage is available, before it can be shown.  You need  wind-roses also (there is a description for that in the language download) and a flag.
There is another Danish user http://www.vejr3.dk/weather2/index.php (http://www.vejr3.dk/weather2/index.php) which already is using his site in Danish.

I will add the expanded and revised content of the readme for the language installation also to the WiKi in the next week.

If you still run into problems, please let me know. You can also use the support system at http://leuven-template.eu/index.php?lang=en (http://leuven-template.eu/index.php?lang=en) or at any of the demo sites at www.weerstation-leuven.be/weather2/ (http://www.weerstation-leuven.be/weather2/).

Succes, Wim

Wim, yes got the files from the other Danish guy, but it just seems I can´t figure it out ;-)
I´ll try take a closer look tomorrow, thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 13, 2014, 08:12:08 AM
Wim,
.....

I was also working on a traffic page based on the Iowa traffic page ( www.511ia.org (http://www.511ia.org)). .......

Jonny J.
Hello Jonny,
I tried to connect to that site with Chrome, Opera and FF.
The only pages which are displayed is the startpage from your link and the "full featured" en "streamlined" versions of the map.

All other links, including contact, RSS and so on are timed out.

I suspect that they block (as others do) foreign IP adresses.

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 13, 2014, 08:16:28 AM
. . .
Wim, yes got the files from the other Danish guy, but it just seems I can´t figure it out ;-)
I´ll try take a closer look tomorrow, thanks
Hello Erik,
I added  text about adding languages to the language part of the WiKi
http://wiki.leuven-template.eu/doku.php?id=faq:lang (http://wiki.leuven-template.eu/doku.php?id=faq:lang)
Hope this helps,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on January 13, 2014, 09:29:54 AM
. . .
Wim, yes got the files from the other Danish guy, but it just seems I can´t figure it out ;-)
I´ll try take a closer look tomorrow, thanks
Hello Erik,
I added  text about adding languages to the language part of the WiKi
http://wiki.leuven-template.eu/doku.php?id=faq:lang (http://wiki.leuven-template.eu/doku.php?id=faq:lang)
Hope this helps,
Wim

Wim, what a service!!! - Great work  :grin:
Going try it when I´m back home from work, I already see where I did wrong - Thanks  =D&gt;
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on January 13, 2014, 02:20:38 PM
Wim, the wiki edit you made for translation installation...wohoooo, works like a charm.
Nice work  =D&gt;

Big thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on January 20, 2014, 10:21:44 PM
Wim,

I got the wind graphic figured out. Just had to adjust the image from a png to a gif.

The USWXGroup and USA weather finder I intend to put in the side column (side colom).
The string I need to place is:  <a href="http://www.uswxgroup.org"><img src="http://uswxgroup.org/rankings/button.php?u=jonnyj771" alt="United States Weather Group" border="0" /></a>
The USA Weather Finder is a similar string. When I place the string into a space in the side column, I get a Parsing error as I mentioned above. If I alter the string, it may not work. Any idea how to set this string in without putting it in the text file?

The WU forecast page is still showing temps in ºC with ºF following it.  I have gone in to see what I may need to adjust, but cannot find the problem. I'm wondering if it's a difference in the url string similar to the problem I had with the DVN Radar image.

I again appreciate your assistance in all of this.

Regards,

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 21, 2014, 03:44:06 AM
Wim,
I got the wind graphic figured out. Just had to adjust the image from a png to a gif.
I will put a setting for that in the 2.5 release
Quote
The USWXGroup and USA weather finder I intend to put in the side column (side colom).
The string I need to place is:  <a href="http://www.uswxgroup.org"><img src="http://uswxgroup.org/rankings/button.php?u=jonnyj771" alt="United States Weather Group" border="0" /></a>
The USA Weather Finder is a similar string. When I place the string into a space in the side column, I get a Parsing error as I mentioned above. If I alter the string, it may not work. Any idea how to set this string in without putting it in the text file?
Now I understand. This is another "partner" with which you share your weather-data, same as with WU.
The easiest way to go: add those partners to the weather2/partners/partner.txt file.
I included a modified version for you to start with.
Also take a look at the demo for North America http://www.weerstation-leuven.be/northam/index.php?p=82 . It shows the two places this information is displayed. The side- or bottom area and the separate page with more information.
I will also add some description in the WiKi.
Quote
The WU forecast page is still showing temps in ºC with ºF following it.  I have gone in to see what I may need to adjust, but cannot find the problem. I'm wondering if it's a difference in the url string similar to the problem I had with the DVN Radar image.
Well it works like a charm at  http://www.weerstation-leuven.be/northam/index.php?p=50-3.
There is no need at al to change anything in these scripts as all adaptions are automatic, based on your settings in wsSettings.php.
1. Please restore the original script (I attached it to this post)
2. Remove the cached file weather2/cache/wu.weather.php-en-41.537,-90.554-F-mph-in-inHg-mi
Quote
I again appreciate your assistance in all of this.
Regards,
Jonny J.

@Jonny J.  @all      IMPORTANT:
There are updates to the original download. Not very urgent, but for instance the transparent menu when there is a snow condition is extremely anoying. Please check from time to time the download site if there are new updates and install them all.  http://www.weerstation-leuven.be/_template2/template.php?lang=en&step3

Most important for now:
* Remove transparent menu with snow condition
* Remove error in thermometer when all temps are far below freezing

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on January 21, 2014, 09:08:26 PM
Wim,

Thanks. Not sure what the difference was. I had deleted the cache file for wu previously. Hadn't changed anything. This time, I deleted the cache then uploaded the file you sent me. That fixed it. Not sure what the difference was.

New issue, been fightning with it for some time now...

SteelSeries Gauges, I keep updating the clientrawlocal.txt file from the wdConfig.php page. Still shows up as corrupt. I see the template uses v 1.05b. I noticed the SteelSeries has several updates. the latest is 2.4.3. The thread can be found here:
http://www.weather-watch.com/smf/index.php/topic,54945.0.html (http://www.weather-watch.com/smf/index.php/topic,54945.0.html).
Is there a possibility to update the SteelSeries to current. I cannot confirm, but it may be my problem for the corrupt file.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 22, 2014, 03:32:51 AM
Wim, . . . shortened . . .
SteelSeries Gauges, I keep updating the clientrawlocal.txt file from the wdConfig.php page. Still shows up as corrupt.
An extensive answer:  You should be running the first few eeeks with debug= yes to remove typo errors. That means that all PHP errors will then be reported. There is an error in your settings file which is not shown until you run with debug = yes  or  with the debug option on the URL. http://lightningweather.com/weather2/index.php?p=10&debug (http://lightningweather.com/weather2/index.php?p=10&debug) The errors are hidden behind the background image. You removed the customize option from the menu so the only way to see those errors is in the source of the page.
Code: [Select]
<b>Notice</b>:  Undefined index: noChoice in <b>/home/content/73/11239473/html/weather2/wsSettings.php</b> on line <b>592</b><br />
<br />
<b>Notice</b>:  Undefined index: noChoice in <b>/home/content/73/11239473/html/weather2/wsCookie.php</b> on line <b>178</b><br />
When the real time data is retrieved from the server lightningweather.com/weather2/gauges/realtimeWD.php (http://lightningweather.com/weather2/gauges/realtimeWD.php) this "error" message messes up your realtime data.
Code: [Select]
<b>Notice</b>:  Undefined index: noChoice in <b>/home/content/73/11239473/html/weather2/wsSettings.php</b> on line <b>592</b><br />
{"date":"02:43 AM","temp":"7.4","tempTL":"6.3","tempTH":"7.4","intemp":"69.5","dew":"2","dewpointTL":"-0.7","dewpointTH":"2
This error is there because an essential setting from your wsSettings.php script has been removed. Line 58
Code: [Select]
$SITE['noChoice']  = '10'; // ##### visitors go to this page at first time visit, 10 = home/startpage So re-insert  line 58 in the settings file and the gauges will work

Quote
I see the template uses v 1.05b. I noticed the SteelSeries has several updates. the latest is 2.4.3. The thread can be found here:
http://www.weather-watch.com/smf/index.php/topic,54945.0.html (http://www.weather-watch.com/smf/index.php/topic,54945.0.html). Is there a possibility to update the SteelSeries to current.
The version of the gauges, as used in the Leuven-Template, is a well proven version running for WD, CW, WC, MH, MB and Weatherlink. And it works with dynamic changes of language and UOMs. Although I am testing 2.4x at the moment it will not be for this release but maybe for the 2.5 release.

But all the scripts can be modified by yourself. It is the choice of the website owner if it is worh the hours spent to implement another version of any script. There are examples and "newpage"-scripts to help.
Quote
I cannot confirm, but it may be my problem for the corrupt file.
No, it is not

Succes, Wim
Title: Re:
Post by: jonnyj771 on January 23, 2014, 11:14:38 PM
Wim,
Thanks for helping me correct that.  It was my intention to remove the "no choice"  section so I can link directly to a particular page on Facebook. I'll go back to working that correctly at a later time.

I have also noticed the clientraw is supposed to update the page temps/conditions every few seconds.  I had an issue with WD having stopped collecting data from my station. I got that going again,  but now the page is not updating but every 5 minutes when the testtags upload. I have gone in and set updates to every 5 seconds in the wsSettings page,  to no avail.
Any ideas on a fix for this?
The clientraw does upload from WD  every few seconds as I had originally set.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 24, 2014, 05:23:56 AM
Wim,
Thanks for helping me correct that.  It was my intention to remove the "no choice"  section so I can link directly to a particular page on Facebook. I'll go back to working that correctly at a later time.
You can link directly to any existing page by adding the pagename/number to the url. Example: if you want to link directly to your WD-Live page use: http://lightningweather.com/weather2/index.php?p=21 (http://lightningweather.com/weather2/index.php?p=21) or maybe you have french speaking friends from Canada, you could give them the link to the forecast page in french http://lightningweather.com/weather2/index.php?p=50-3&lang=fr (http://lightningweather.com/weather2/index.php?p=50-3&lang=fr)
Quote
I have also noticed the clientraw is supposed to update the page temps/conditions every few seconds.  
Here I am lost. Thre are only two realtime-data files uploaded as of now.
Quote
I had an issue with WD having stopped collecting data from my station. I got that going again,  but now the page is not updating but every 5 minutes when the testtags upload.
Which page is not updating? Your home page is: http://lightningweather.com/weather2/index.php?p=10 (http://lightningweather.com/weather2/index.php?p=10)
Quote
I have gone in and set updates to every 5 seconds in the wsSettings page,  to no avail.
This is really only generating enormous loads on your webserver. There are realtime pages which retrieve small amounts of data for gauges and the like. And there is the rest of the pages in the template which are only updated when the big load of data has arived. If there are meters the visitors maybe want to see them every so many seconds. But the startpage which all that information? The realtime values of WU and WD-L are continually updated. The rest of the values evey 5 seconds is overkill.
Quote
Any ideas on a fix for this?  The clientraw does upload from WD  every few seconds as I had originally set.
Due to the language difficulties I am lost what you want to achieve.

The WU panel refreshes its information every 5 seconds or so
==> works ok as shown on your startpage. I hope the upload from WD is also that frequent

The gauges request there information based on a setting, currently var g_count = 30 seconds.
==> functions correctly at http://lightningweather.com/weather2/index.php?p=25 (http://lightningweather.com/weather2/index.php?p=25)

So does WD-Live for which the request time it is set to 60 seconds in your config.xml,  but uploading happens every 5 seconds.
==> functions correctly at  http://lightningweather.com/weather2/index.php?p=21 (http://lightningweather.com/weather2/index.php?p=21)

The rest of the information will be updated based on a new version of testtags available, which is default set to 5 minutes to lessen the load on your webserver.
You could set WD to upload the testtags every 1 or 2 minutes, but why? There are no moving dials on the other pages and the average / min /max values do not change that often. And very important, all the other pages have no changing weather-data on them. The only exception is http://lightningweather.com/weather2/index.php?p=61 (http://lightningweather.com/weather2/index.php?p=61) which only display 5 minute values.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on January 25, 2014, 11:48:11 AM
I have a soil temp probe that is recording the temp in my pond, I would like to have this tag '<#SoilTemp1>' displayed as the pool temp on my website main page where would I go about doing this
Thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 25, 2014, 11:53:14 AM
I have a soil temp probe that is recording the temp in my pond, I would like to have this tag '<#SoilTemp1>' displayed as the pool temp on my website main page where would I go about doing this
Thanks
Hello Stewart,
I hope that I described that question in the Wiki at
http://wiki.leuven-template.eu/doku.php?id=miscellaneous#adding_one_extra_tag_value_to_be_used_on_your_start-page (http://wiki.leuven-template.eu/doku.php?id=miscellaneous#adding_one_extra_tag_value_to_be_used_on_your_start-page)
If it is not clear after reading that page, please ask for more information. I will adapt the WiKi then also for future users.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 26, 2014, 03:59:33 AM
@ALL North American users - NOAA forecast error

For one reason or another (sloppiness) I let a test setting in the NOAA Plain forecast script so that it defaults to Brandford CT.

When Dennis Hall from http://rathdrumweather.us/ notified me about this (thanks Dennis) I discovered also that, in the NOAA xml,  for the rural areas a different field is used as for the cities.

Please replace the two NOAA scripts in weather2/noaa with these new ones, AFTER making a backup copy of the old scripts.

There is also a download available with all updates since the original 2.4 release.
You find this at the download area: http://www.weerstation-leuven.be/_template2/template.php?lang=en&step3 (http://www.weerstation-leuven.be/_template2/template.php?lang=en&step3)

Have a nice sunday,

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on January 26, 2014, 05:24:51 AM
Thanks for that working fine, just have to change the language files now
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on January 28, 2014, 09:32:14 AM
Small query, this may sound like a particularly dumb and trivial question, I've been rearranging menu tabs and would like all the main tabs descriptions to have uppercase first letter example "home page" to be "Home Page", webcam to Webcam , altering the text in wsMenuData.xml doesn't seem to affect some of them and cant find anything in the Wiki
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 28, 2014, 09:52:54 AM
Small query, this may sound like a particularly dumb and trivial question, I've been rearranging menu tabs and would like all the main tabs descriptions to have uppercase first letter example "home page" to be "Home Page", webcam to Webcam , altering the text in wsMenuData.xml doesn't seem to affect some of them and cant find anything in the Wiki
There are no dumb questions, really. This is a huge template with hundreds of scripts.
There are facilities I probably have not yet documented, like this one.
There is a setting in wsSettings.php to force  all(translated)  texts to lowercase. Probably this is set to true.
Code: [Select]
$SITE['textLowerCase'] = true;  // all text to lowercase = true  or leave all texts as they are supplied (false)   If you set it to false, all texts remain as they are.
Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on January 28, 2014, 10:16:44 AM
Great, everything changed except one" maps" for some reason stayed lower case. this is the setting in wsMenuData.xml  <item caption="Maps">
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 28, 2014, 10:28:20 AM
Great, everything changed except one" maps" for some reason stayed lower case. this is the setting in wsMenuData.xml  <item caption="Maps">
Well than it is translated to "maps", maybe for other places in the scripts. Either change the name in the menu to "Weather maps" which is probably not there or search the english language file.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on January 28, 2014, 10:55:34 AM
Couldn't find anything wrong on the language page, but as you point out 'more than one way to skin a cat',  very impressive bit of software still finding my way around, how long did it take you to get it to the stage it is now.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: marfanuk on February 02, 2014, 09:14:32 AM
Great, everything changed except one" maps" for some reason stayed lower case. this is the setting in wsMenuData.xml  <item caption="Maps">
Well than it is translated to "maps", maybe for other places in the scripts. Either change the name in the menu to "Weather maps" which is probably not there or search the english language file.
Wim

have you fixed this yet as i cant see it on your page Stewart?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on February 02, 2014, 03:39:48 PM
couldn't find that one but as I only had 2 maps that I was using I moved them into the main menu its not too cluttered
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: marfanuk on February 02, 2014, 03:43:50 PM
I changed it on mine if ever you change your mind.

go to menu style and add text-transform: capitalize to #nav a
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: stewart45 on February 03, 2014, 04:24:48 AM
Thanks might try that
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on March 20, 2014, 03:14:45 PM
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
Would I be able to use Curly's alerts scripts?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on March 20, 2014, 03:20:55 PM
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
I retrieve the alerts via xml feeds. It is not difficult to add more. But indeed they could be better retrieved by a cron job to lower the waiting time. It is a nice idea and see the next weekend how much work it is.
Please mail me or post:
1 a list of the counties you want to add so I can set up a test environment.
2. maybe a screenshot of another website which shows multiple alerts for different counties.
Quote
Would I be able to use Curly's alerts scripts?
I am not familar with all american scripts. Do you have the URL?
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 06, 2014, 05:04:57 PM
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
I retrieve the alerts via xml feeds. It is not difficult to add more. But indeed they could be better retrieved by a cron job to lower the waiting time. It is a nice idea and see the next weekend how much work it is.
Please mail me or post:
1 a list of the counties you want to add so I can set up a test environment.
2. maybe a screenshot of another website which shows multiple alerts for different counties.
Quote
Would I be able to use Curly's alerts scripts?
I am not familar with all american scripts. Do you have the URL?
Wim

Wim,

I appologize for the delay in response. you can Go here (http://www.wxforum.net/index.php?topic=16175.0) to see the script for nws-alerts by Curly.
This is a script that can be used with the Saratoga/Carter Lake template or as a stand alone template.
I am attempting to utilize the script on my site now. However, I am having issues with getting the page(s) to show up. I was able to get the page within the template to show up. The page opens blank even though I have "no warnings" alert box set to true.
If I go to the actual pages nws-alerts.php (main alerts page) nws-summary and nws-details pages, I get a 500 internal server error. I have the page set up in wsMenuData.xml as index.php?p=57-3.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 07, 2014, 03:10:34 AM
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
I retrieve the alerts via xml feeds. It is not difficult to add more. But indeed they could be better retrieved by a cron job to lower the waiting time. It is a nice idea and see the next weekend how much work it is.
Please mail me or post:
1 a list of the counties you want to add so I can set up a test environment.
2. maybe a screenshot of another website which shows multiple alerts for different counties.
Quote
Would I be able to use Curly's alerts scripts?
I am not familar with all american scripts. Do you have the URL?
Wim

Wim,

I appologize for the delay in response. you can Go here (http://www.wxforum.net/index.php?topic=16175.0) to see the script for nws-alerts by Curly.
This is a script that can be used with the Saratoga/Carter Lake template or as a stand alone template.
I am attempting to utilize the script on my site now. However, I am having issues with getting the page(s) to show up. I was able to get the page within the template to show up. The page opens blank even though I have "no warnings" alert box set to true.
If I go to the actual pages nws-alerts.php (main alerts page) nws-summary and nws-details pages, I get a 500 internal server error. I have the page set up in wsMenuData.xml as index.php?p=57-3.
Sorry, I am currently on vacation with bad/non existent internet. I will look into this after april 16.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ea1hmy on April 15, 2014, 11:58:40 AM
hello
I'm trying to configure the template to take data on the following sites

wsSettings.php'
$SITE['wxsimPage']      = 'yes';          // #####
$SITE['wxsimDir']      = './wsWxsim/';
$SITE['wxsimData']      = './../';         // root folder

wsSettingsWeather.php
#$SITE['uploadDir']      =  'upload'.$SITE['WXsoftware'].'/';      // #####   where to store uploaded files (weather variables graphs clientraw)

$SITE['uploadDir']      =  './../';                           // #####   with this setting: uploaded files are stored in ROOT

#$SITE['clientrawDir']    = $SITE['uploadDir'];                   // #####   for standard loaction of clientraw

$SITE['clientrawDir']    = './../';                            // #####   with this setting:  clientraw files are stored in ROOT

$SITE['steelFile']      = $SITE[''].'./../customclientraw.txt';   // realtime tags (also for steelseries)

   $SITE['wsTags']       = $SITE[''].'./../testtags.php';          // for current and yesterday weather variables


at first sight works but does not update the header gizmo
any suggestions

thanks
emilio
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 15, 2014, 12:19:07 PM
hello
I'm trying to configure the template to take data on the following sites

wsSettings.php'
$SITE['wxsimPage']      = 'yes';          // #####
$SITE['wxsimDir']      = './wsWxsim/';
$SITE['wxsimData']      = './../';         // root folder

wsSettingsWeather.php
#$SITE['uploadDir']      =  'upload'.$SITE['WXsoftware'].'/';      // #####   where to store uploaded files (weather variables graphs clientraw)

$SITE['uploadDir']      =  './../';                           // #####   with this setting: uploaded files are stored in ROOT

#$SITE['clientrawDir']    = $SITE['uploadDir'];                   // #####   for standard loaction of clientraw

$SITE['clientrawDir']    = './../';                            // #####   with this setting:  clientraw files are stored in ROOT

$SITE['steelFile']      = $SITE[''].'./../customclientraw.txt';   // realtime tags (also for steelseries)

   $SITE['wsTags']       = $SITE[''].'./../testtags.php';          // for current and yesterday weather variables


at first sight works but does not update the header gizmo
any suggestions

thanks
emilio
As far as I can see in the settings on your site,
http://www.meteotorrelavega.com/weather2/printSite.php
they all point to the weather2/uploadWD folder.

None point to the root as they should according to the settings you describe in your post.

So to what site are you referring to?

I am on vacation now and will only be able to do more after I am home with normal internet connections next thursday,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ea1hmy on April 15, 2014, 01:08:02 PM
thanks for your reply
if now gives you that because I have removed the settings, I restart the morning as you can and look at him, the first thing is your vacation, you have to enjoy
a greeting
emilio
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ea1hmy on April 15, 2014, 02:24:17 PM

I made a change and now seems well
before
$SITE['steelFile']      = $SITE[''].'./../customclientraw.txt';   // realtime tags (also for steelseries)
$SITE['wsTags']       = $SITE[''].'./../testtags.php';          // for current and yesterday weather variables

now

$SITE['steelFile']      = './../customclientraw.txt';   // realtime tags (also for steelseries)
$SITE['wsTags']       = './../testtags.php';          // for current and yesterday weather variables

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 15, 2014, 04:43:22 PM
Emilio,  can you link me to your site and put those in a text file and pm to me plz.
I'll take a look when I get home this evening
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ea1hmy on April 15, 2014, 04:58:43 PM
I do not understand what you mean  #-o
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 15, 2014, 06:03:53 PM
Emilio,
Put the file the above string is in into a text file (.txt) and send it to me in a private message.
Also include a link to your site so I can see what it's looking like
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 16, 2014, 12:01:05 AM

at first sight works but does not update the header gizmo
any suggestions

thanks
emilio

Emilio,

I believe you are asking about the Header Gizmo at the top of your page.  That has a time out set on it. I believe it's 5 minutes, but I could be wrong. I think that is why it appears like it isn't updating. You leave the page open for a length of time it stops updating until you refresh the page.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ea1hmy on April 16, 2014, 01:50:01 AM
Hi Jonny J
Thanks for your interest, and is working correctly and is updated at the time, could have been my error uploading new modified files, or had not updated the "cache" folder, keep trying more settings so that everything runs smoothly
Best regards
emilio
  excuse the language, google translator
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 16, 2014, 07:50:12 PM
Hi Jonny J
Thanks for your interest, and is working correctly and is updated at the time, could have been my error uploading new modified files, or had not updated the "cache" folder, keep trying more settings so that everything runs smoothly
Best regards
emilio
  excuse the language, google translator

Good to know it's working for you.
Don't hesitate to ask for help if you need it.

Regards,

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ea1hmy on April 17, 2014, 01:18:28 PM
hello
languaje.js attached file with Spanish included
for steelseries
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 19, 2014, 08:20:16 AM
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
Would I be able to use Curly's alerts scripts?
Good morning, I am back from vacation and as promised I tested the Curly's alerts scripts and they look great.
My first 'adaption' works at http://www.weerstation-leuven.be/northam/ (http://www.weerstation-leuven.be/northam/)

I will as always keep the adaption in someone elses scripts to the absolute minimum.
As for now I only have to change a few ? in the url-links to a &
The template itself is uses the ? to refer to the pagenumber.

I also had to adapt the css for the alert box to have the same look as the rest of the page , but all will be documented.

Wim


Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 19, 2014, 08:31:32 AM
I have the summary page working within the template.  At this point,  the details page is still not showing the same way.  How should I go about changing it to work within the template?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 19, 2014, 08:40:56 AM
I have the summary page working within the template.  At this point,  the details page is still not showing the same way.  How should I go about changing it to work within the template?
As mentined in the "Curly alerts" thread I combined the details and summary into one page.
The current development version of that page 57-3 is attached.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: xadow on April 19, 2014, 12:06:30 PM
Hi,
I'm currently setting up my new weather station website, but I'm wondering if there's any way to use the Weather Underground Forecast in the start page?

By the way if there's anyone looking for the portuguese language for this template I'm attaching the translation I've made for my personal use.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 19, 2014, 12:23:59 PM
Hi,
I'm currently setting up my new weather station website, but I'm wondering if there's any way to use the Weather Underground Forecast in the start page?
There are currently 7 different forecast possible.
One extra would not be a big deal. The current forecastst for the startpages are:
Code: [Select]
#$SITE['fctOrg'] = 'yahoo'; //  Yahoo 5 line forecast, quick as it also supplies the currrent conditions from nearby metar / airport
#$SITE['fctOrg'] = 'hwa'; //  hwa ONLY for HWA members which have a key and security code
$SITE['fctOrg'] = 'metno'; //  very extensive forecast based on latitude and longitude
#$SITE['fctOrg'] = 'yowindow';  //  Yowindow gadget, nice Flash program, needs a geo key setting
#$SITE['fctOrg'] = 'wxsim'; //  you have to use this paid program on a PC
#$SITE['fctOrg'] = 'noaa'; //  for the USA one can use NOAA
#$SITE['fctOrg'] = 'ec'; //  Environment Canada forecast for Canadian users
MetNo forecastst are extensive and supply a lot of information.
http://www.weerstation-leuven.be/weather2/index.php?p=51-1 (http://www.weerstation-leuven.be/weather2/index.php?p=51-1)
On the startpage one can choose for an icon display or a meteogram.

WeatherUnderground , as  implemented in the Leuven-Template supplies far less information.
http://www.weerstation-leuven.be/weather2/index.php?p=50-3

QUESTION:
Why do you prefer WeatherUnderground?
How should it look?
and does it add value compared to the others?
Quote
By the way if there's anyone looking for the portuguese language for this template I'm attaching the translation I've made for my personal use.
Thanks for that file. I hope more portuguese language users will benefit from your work.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: xadow on April 19, 2014, 01:03:07 PM
Hi Wim
There are currently 7 different forecast possible.
MetNo forecastst are extensive and supply a lot of information.
http://www.weerstation-leuven.be/weather2/index.php?p=51-1 (http://www.weerstation-leuven.be/weather2/index.php?p=51-1)
On the startpage one can choose for an icon display or a meteogram.
I've seen all of those options and at the moment I have the website set to MetNo.

Why do you prefer WeatherUnderground?
As I'm currently sending weather data to Weather Underground, I like to think that I'm contributing to the forecast in the area I live in, as such I would prefer to use the WU forecast in the start page. Also the previous template I was using, Saratoga-Weather had Weather Underground in the start page, so when I was configuring your template it seemed a bit odd that I couldn't find that option.

How should it look?
What I was hoping for was a similar look to the icon display of MetNo.

and does it add value compared to the others?
Well, if like me, people are uploading their data to weather underground, I believe they would have a preference for a forecast they are contributing for.

Thanks for that file. I hope more portuguese language users will benefit from your work.
Wim
Your welcome, it was the least I could do, If I add/correct anything, I will share it.

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 19, 2014, 01:43:43 PM
I have the summary page working within the template.  At this point,  the details page is still not showing the same way.  How should I go about changing it to work within the template?
As mentined in the "Curly alerts" thread I combined the details and summary into one page.
The current development version of that page 57-3 is attached.

Wim

Wim,

I updated to the wsnws-details.php file. however, when I click on the alert (I have 3 that have recently come to light), instead of going to the details page, I get returned back to the main page.
Did I miss a setting?

Regards,

Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 19, 2014, 01:59:43 PM
Wim,

I updated to the wsnws-details.php file. however, when I click on the alert (I have 3 that have recently come to light), instead of going to the details page, I get returned back to the main page.
Did I miss a setting?

Regards,

Jonny J
No, you did not miss. You are already busy and I need some time to write down all details.
This is the url when you click one one of the links on the summary page.
http://lightningweather.com/weather2/index.php?a=IAZ042#WA2 (http://lightningweather.com/weather2/index.php?a=IAZ042#WA2)
it should be:
http://lightningweather.com/weather2/index.php?p=57-3&a=IAZ042#WA2 (http://lightningweather.com/weather2/index.php?p=57-3&a=IAZ042#WA2)
So it does not contain the page number 57-3.
These is set in a two step process, in weather2/nws-alerts/nws-alerts-config.php
Code: [Select]
$alertURL      = $SITE['warningsMenu']; #####
$summaryURL    = $SITE['warningsMenu']; #####
and in wsSettings.php
Code: [Select]
$SITE['warningsMenu'] = 'index.php?p=57-3'; // menu choice for separate warningspageBut then the link would be:
http://lightningweather.com/weather2/index.php?p=57-3?a=IAZ042#WA2 (http://lightningweather.com/weather2/index.php?p=57-3?a=IAZ042#WA2)
That is also not correct. Two ? returns invalid get parameters, so again you would go to the index.php start-page.
You should also scan for the ?a=  strings in the scripts and replace that with &a=.
Yes, do that if you like php errors and debugging as much as i do.
No if you care to wait until tuesday next week.
In between the egss hiding and letting be found by visiting grand-children this easter week-end there should be ample time for me to test and document.
The alert scripts are very fine pieces of work. But testing all possibillities takes some time.
Monday evening CET I estimate for now.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 19, 2014, 02:15:49 PM
That is also not correct. Two ? returns invalid get parameters, so again you would go to the index.php start-page.
You should also scan for the ?a=  strings in the scripts and replace that with &a=.
Yes, do that if you like php errors and debugging as much as i do.
No if you care to wait until tuesday next week.
In between the egss hiding and letting be found by visiting grand-children this easter week-end there should be ample time for me to test and document.
The alert scripts are very fine pieces of work. But testing all possibillities takes some time.
Monday evening CET I estimate for now.
Wim

Wim,

I see what you are saying now. I will dig through and locate the strings and fix those. Take the time with your grandkids. I will work it up. If I can get it done prior to Monday, I will forward you the scripts. Save you some time.

Regards,

Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 19, 2014, 02:23:01 PM
Wim,

I see what you are saying now. I will dig through and locate the strings and fix those. Take the time with your grandkids. I will work it up. If I can get it done prior to Monday, I will forward you the scripts. Save you some time.

Regards,

Jonny J
The scripts are ready. But testing all possibillities takes some time. Need to find one area with multiple alerts. Other areas without one alert, and so on. Then test all display possibillities, include the code for large icons and some other things.
Nice work, but takes some time. As other customers do also.
Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 19, 2014, 06:47:05 PM
The scripts are ready. But testing all possibillities takes some time. Need to find one area with multiple alerts. Other areas without one alert, and so on. Then test all display possibillities, include the code for large icons and some other things.
Nice work, but takes some time. As other customers do also.
Succes, Wim

Wim,
I have a few counties with Flood warnings plus several without. I'll play guinea pig since I started this whole thing.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 19, 2014, 08:33:08 PM
I'll keep pressing on adding what I need to my page Wim.
I will get the alert box in the menubar tonight or tomorrow night.

Alert Box is up now. I have to check with Curly about the icons (the flood warnings on my page are showing Flash Flood Warnings when they are River Flood Warnings - Separate Icons). Aside of that, I am up and running.

I was able to locate the strings with the ?a= and replace them with &a=.
I will need to know what file I need to put the Big Alert Box in for the Menubar.

Regards,

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on April 20, 2014, 02:04:00 AM
Wim,

Before I forget.  Weather Underground Changed their logo.

I have already implemented the link to the new logo in my Partners.txt file

here's the link I was able to obtain:

http://icons.wxug.com/i/o/logo-footer.png

This will replace the original logo in the sidebar.

Regards,

Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on May 02, 2014, 12:20:09 AM
Wim,

Not sure what happened, however, when I was getting the new nws-alerts page going, somehow the wsSettings.php file was changed and an original was put in its place.
I got everything back the way it was supposed to be, now though, I cannot get the wdConfig.php file to open.
My Steel Series Gauges are not working and I cannot for the life of me figure out the situation.
when I go to the page lightningweather.com/wdConfig.php, I get a 500 internal server error.  I have adjusted the permissions several different times, to no avail.
Can you give me some ideas to fix this problem?

Regards,

Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 02, 2014, 03:03:31 AM
Wim,

Not sure what happened, however, when I was getting the new nws-alerts page going, somehow the wsSettings.php file was changed and an original was put in its place.
I got everything back the way it was supposed to be, now though, I cannot get the wdConfig.php file to open.
My Steel Series Gauges are not working and I cannot for the life of me figure out the situation.
when I go to the page lightningweather.com/wdConfig.php, I get a 500 internal server error.  I have adjusted the permissions several different times, to no avail.
Can you give me some ideas to fix this problem?

Regards,

Jonny J
Hello Jonny,
It is a pity, only a minor typo can cost so much of your spare time.
This is the script which retrieves the data for the steelseries. http://lightningweather.com/weather2/gauges/realtimeWD.php It returns the data and an error message. You typed the name of your mesonet MWWN without quotes in the wsSetrtings.php file on line 542.
If you put the qoutes/apostrophes around the MWWN string on that line, the steelseries should work again.  You could also remove the error setting in realtimeWD.php, but as a programmer I like to get error messages/warnings. They more often than not lead to underlying problems which should be resolved.
===
I attach a fresh version of weather2/__config/customize.php which is the script run for configWD.
Can you upload that one so we can look into that other error?

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on May 02, 2014, 08:13:27 AM

I attach a fresh version of weather2/__config/customize.php which is the script run for configWD.
Can you upload that one so we can look into that other error?

Succes, Wim

Wim,
Here's a copy of my file.  Still getting the 500 int. error
I'm thinking there may be a different problem. Just not sure what.

I'm off to work, I'll catch up with you later today.

Regards

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 05, 2014, 03:33:11 PM
Hello @all
A new maintenance version of the Leuven-Template is available. Release 2.5 includes all updates for 2.4 and the remarks/wishes since December 2013 into a new download. No need to hurry and upgrade if you are already using a previous version.

Most important improvements are a lot of small changes to better support windows webservers. They do not like  special characters as the ' | ' character in filenames. So I did spend considerable time to test the Leuven-Template with XAMPP on a windows test-server. Also for users in the US, the very fine "Curly" NWS alert scripts are relative easy to use in the template now.

As always: go to http://leuven-template.eu/?lang=en (http://leuven-template.eu/?lang=en) where you can post your questions and find the links to the download area and  the WiKi. That WiKi contains some interesting stuff, so just try to read it when you start implementing the template.

Download remarks:

Succes and thanks for all the nice comments,

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 06, 2014, 05:39:42 AM

I attach a fresh version of weather2/__config/customize.php which is the script run for configWD.
Can you upload that one so we can look into that other error?

Succes, Wim

Wim,
Here's a copy of my file.  Still getting the 500 int. error
I'm thinking there may be a different problem. Just not sure what.

I'm off to work, I'll catch up with you later today.

Regards

Jonny J.
OK, if that 500 error keeps popping up, try to set the rights at 755 for the whole weather2/__config/ folder and all of the contents. Some providers do not like 777 that much.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on May 06, 2014, 10:17:31 PM
OK, if that 500 error keeps popping up, try to set the rights at 755 for the whole weather2/__config/ folder and all of the contents. Some providers do not like 777 that much.

Wim

Wim,

I went back to 755 on the _Config folder, fixed that problem.
The weather2/index.php file has the following string at the beginning of it:
Code: [Select]
if (!isset($_REQUEST['maintenance']) ) {echo '<h3> The NorthAmerica version of the  Leuven-Template is not available today. <br />
I am installing and testing the 2.5 version <br />

Click <a href="http://www.weerstation-leuven.be/weather2/">here</a> for the European version click here<br />
and <a href="http://www.weerstation-leuven.be/weatherCanada/">here</a> for the Canadian version<h3> '; exit;}

To remove this, do I comment it out or just remove it? or is there a 'maintenance' spot located somewhere that I need to disable to stop this?
The Wiki doesn't have this info in it.
I cannot do anything else with it there.
NOTE: I have made adjustments to this update when it's done and the main (weather2) folder is now called "quadcities"
Once completed, the site will be "lightningweather.com/quadcities/index.php?p=10" for the index page.

Edit: I went ahead and commented out the maintenance code.
I am trying out the Horizontal menu. However, the tabs are not even and are only as wide as the text. I am attempting to adjust the StyleMenuDrop20.css file. Just not sure how to adjust so the tabs are more even or set up to have the tabs with multiple words stacked/ (Word wrapped) in the tabs.
Can you give me some better insight on this? What part of the css file do I need to adjust on this to make it more even and look more uniform?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 07, 2014, 04:01:02 AM
. . . shortened . . .
The weather2/index.php file has the following string at the beginning of it:
Code: [Select]
if (!isset($_REQUEST['maintenance']) ) {echo '<h3> The NorthAmerica version of the  Leuven-Template is not available today. <br />
I am installing and testing the 2.5 version <br />

Click <a href="http://www.weerstation-leuven.be/weather2/">here</a> for the European version click here<br />
and <a href="http://www.weerstation-leuven.be/weatherCanada/">here</a> for the Canadian version<h3> '; exit;}

. . . shortened . .

Edit: I went ahead and commented out the maintenance code.
I hope you are the only one who downloaded in that short period that the uploaded file was a test version. I suspect that godaddy caches files (like txt and zip) for a certain period of time.
I will be even more precise when testing the upload/download process. sorry for the inconvenience.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 07, 2014, 05:06:30 AM
. . . shortened . . .
I am trying out the Horizontal menu. However, the tabs are not even and are only as wide as the text. I am attempting to adjust the StyleMenuDrop20.css file. Just not sure how to adjust so the tabs are more even or set up to have the tabs with multiple words stacked/ (Word wrapped) in the tabs.
Can you give me some better insight on this? What part of the css file do I need to adjust on this to make it more even and look more uniform?
Well it is a CSS thing. I "modified" the drop down CSS for the http://www.weerstation-leuven.be/northam/ (http://www.weerstation-leuven.be/northam/) demo. If you go to the menu choice "Customize" and select "where do we place the menu?"  ==> "horizontal" and press "save your changes" you see the new horizontal menu including standard html word wrap.

The menu implementation in the template is fairly standard as a lot of others are.
#nav is the whole menu area first horizontal line only! ==> we have to set that to a fixed height of about 50px to have room for word wrap
#nav li  is every first level menu-item such as "Home" or "Development"  ==> we have to adapt the fixed height from 36 to 50px for the word wrap
AND set a fixed width.
That part is a little bit trial and trial again. I put in width: 106px; to make it nicely fit. Be aware that it only looks if the spare room at the right on the first line is "added" to the last menu item.

The other drop down settings can remain as they are now.

===

You have to modify your menu file so that there are exactly the amount of menu items as fit on the first menu line.

===

If the standard worp-wrap is not what you want, you can also modify the translation of the menu descriptions so that word wrap occurs where you want it, by adding a < br / > to it.
You HAVE to do that in the translation file if you want to keep the translations for other languages.
If you skip multi-language support you can also add & lt;br /& gt; to the menu caption in the menu xml. You should not use the < and > characters itself as the menu xml will generate multiple errors.

Example menu item with <br /> but you have to use the  & equivalents there
Code: [Select]
<item  nr="13" show="ewnID"
          link="wsEwn/ewnFctBody2.php"
          caption="ewn &lt;br /&gt; forecasts"
Example of a language translation to have word wrap in the menu:
Code: [Select]

langlookup|ewn world-wide forecasts|ewn<br />forecasts|
I attached the modified CSS for you to start with. If this information works for you I will add it to the WiKi also.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on May 17, 2014, 11:36:06 AM
Got the new 2.5a update in,  the only issue I'm seeing is the yowindow is showing 2 hours behind.  It was on time when I initially started.  Then it dropped back.
Any ideas?
I'm going to check WD and the yowindow programs and see if something got changed. Just looking for your thoughts.
Regards,
Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 17, 2014, 11:37:21 AM
Got the new 2.5a update in,  the only issue I'm seeing is the yowindow is showing 2 hours behind.  It was on time when I initially started.  Then it dropped back.
Any ideas?
I'm going to check WD and the yowindow programs and see if something got changed. Just looking for your thoughts.
Regards,
Jonny J
Did you set the correct placeID for yowindow in the settings? The time yowindow displays is for the specified place. Not the server time.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on May 17, 2014, 11:38:33 AM
I hadn't made any changes to it prior to updating. I'll double check the settings
It worked fine prior to the update
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on May 17, 2014, 05:16:23 PM
Wim,

Got it straightened out. Had the wrong code in the settings file.

I was wondering how to add a Logo to the head of my site. Also an icon for the tabs at the top of the browser (instead of the anemometer icon). What file(s) do I need to update to accomodate the logo and icon?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 18, 2014, 03:14:07 PM
Wim,

Got it straightened out. Had the wrong code in the settings file.

I was wondering how to add a Logo to the head of my site.
http://wiki.leuven-template.eu/doku.php?id=faq:header (http://wiki.leuven-template.eu/doku.php?id=faq:header)
I hope I understand what you mean by "logo" and that the link answers your question.
Quote
Also an icon for the tabs at the top of the browser (instead of the anemometer icon).
The code which includes this icon comes from index.php.
Code: [Select]
<link rel="icon" href="img/icon.png" type="image/x-icon" />So take a look at that file weather2/img/icon.png and replace it with a similar sized image and give it that name replacing the davis anemometer

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on May 24, 2014, 07:04:20 AM
Hey all

Just installed this great template, but getting this error:

Warning: file_get_contents() [function.file-get-contents]: Unable to access cache/uploadWDtesttagsChPamsmmcmkmhrm in /var/www/danmaach.dk/byvejr/weather2/wsDataGet.php on line 69

Warning: file_get_contents(cache/uploadWDtesttagsChPamsmmcmkmhrm) [function.file-get-contents]: failed to open stream: No such file or directory in /var/www/danmaach.dk/byvejr/weather2/wsDataGet.php on line 69
no valid tags file found - program halts


Any suggestion would be really appreciated   :-)

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on May 24, 2014, 07:06:47 AM
Hey all

Just installed this great template, but getting this error:

Warning: file_get_contents() [function.file-get-contents]: Unable to access cache/uploadWDtesttagsChPamsmmcmkmhrm in /var/www/danmaach.dk/byvejr/weather2/wsDataGet.php on line 69

Warning: file_get_contents(cache/uploadWDtesttagsChPamsmmcmkmhrm) [function.file-get-contents]: failed to open stream: No such file or directory in /var/www/danmaach.dk/byvejr/weather2/wsDataGet.php on line 69
no valid tags file found - program halts


Any suggestion would be really appreciated   :-)

Erik,

Double check your permissions for the uploadWD folder.  Try setting at 777 or 775.
Sounds like a permission issue.

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on May 24, 2014, 07:29:14 AM
Jonny J

Been there, done that ;-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on May 24, 2014, 07:30:44 AM
Did you set the permissions for the cache to the same as uploadWD?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on May 24, 2014, 07:33:47 AM
Did you set the permissions for the cache to the same as uploadWD?

uploadWD is set to 777, cache was set to the same
Tried both 777 and 755 and recursive
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on May 24, 2014, 07:51:19 AM
Try 775 and if need be,  774
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 24, 2014, 08:55:24 AM
Hey all

Just installed this great template, but getting this error:

Warning: file_get_contents() [function.file-get-contents]: Unable to access cache/uploadWDtesttagsChPamsmmcmkmhrm in /var/www/danmaach.dk/byvejr/weather2/wsDataGet.php on line 69

Warning: file_get_contents(cache/uploadWDtesttagsChPamsmmcmkmhrm) [function.file-get-contents]: failed to open stream: No such file or directory in /var/www/danmaach.dk/byvejr/weather2/wsDataGet.php on line 69
no valid tags file found - program halts


Any suggestion would be really appreciated   :-)
Good afternoon (at least in CET),
It would be extremely helpfull if you supplied an URL of the offending page.
When I am "en-route" the problem solving is far easier then. So it needed some time now.
1. This is the URL, I think: http://byvejr.danmaach.dk/weather2/ (http://byvejr.danmaach.dk/weather2/). OK.
2. You are using WD already at your http://www.danmaach.dk/ (http://www.danmaach.dk/) site. Checked.
3. You are uploading the Leuven-Tempalte files to a separate folder on your server. OK.
4. You are uploading the tags file as testtags.php  CHECKED:
http://byvejr.danmaach.dk/weather2/uploadWD/testtags.php?sce=view (http://byvejr.danmaach.dk/weather2/uploadWD/testtags.php?sce=view)
5. The settings also specify that. OK

BUT the file you are uploading to the Leuven-Template is the Saratoga one. See the link above. The Carterlake, Saratoga and Leuven all use the name "testtags" bunt the contents are different.

Normal procedure in the Leuven-Template:
The scripts try to read the file specified in the settings. If that file is incomplete OR in error OR  not a file with Leuven-Template data it reads the last good file in the cache.

But in your case there is no 'last good file' in the cache. There should have been one created when you started testing (step 3 and 4 of the WiKi) , before you were starting to upload (step 5) your own data.

When there is no decent tags file found the scripts generate that error  you mentioned.

So either restore the testtags.php from the download, run the template once and the "fall-back" cache file is created. You can continue to test.

You should download (according to the wiki a template tags file, rename that in f.i. testtags2.txt and let WeatherDisplay upload that file to weather2/uploadWD/
You can let that file be renamed in testtags.php or change the settings.

Hope this helps, I will put a note on my to-do list to clarify this specific WD "issue"

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on May 24, 2014, 11:10:51 AM
Wim, point taken ;-)

Erased all, uploaded all leuven files again, ran configuration, set all permissions, downloaded right config files, copied the right testatgs etc. to Webfiles folder.

Url: http://byvejr.danmaach.dk/weather2

Ran saratoga before at http://www.danmaach.dk (not used anymore)

Problem not solved....but files are back in cache folder

NOTE: Nothing done, all working - strange but good :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on May 24, 2014, 11:16:32 AM
Wim, point taken ;-)

Erased all, uploaded all leuven files again, ran configuration, set all permissions, downloaded right config files, copied the right testatgs etc. to Webfiles folder.

Url: http://byvejr.danmaach.dk/weather2

Ran saratoga before at http://www.danmaach.dk (not used anymore)

Problem not solved....but files are back in cache folder
Well WD is sometimes a little bit tricky to install.
But: in http://byvejr.danmaach.dk/weather2/uploadWD/testtags.php?sce=view  (http://byvejr.danmaach.dk/weather2/uploadWD/testtags.php?sce=view) there is NEW data

// General OR Non Weather Specific/SUN/MOON
// ========================================
$time =  '17:10';   // current time
$date =  '24/05/14';   // current date

but that is the normal Saratoga file which is uploaded to the weather2/ folder.

So for one reason or another WD is not correctly instructed to . . . .

just see the correct file arriving.

Solved ?

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on May 24, 2014, 11:19:17 AM
Wim, solved - don´t know why :-)
But all working, thanks again for great support :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on June 01, 2014, 02:37:21 PM
Wim,

  I have been looking into integrating the Leuven Template into Joomla. I know about changing the settings in wsSettings.php to strip menus and strip all. Do you know how to integrate the rest of the template into Joomla? If not, can you point me in the right direction to accomplish this?
Doing this setup on my site will aid me in getting more accomplished when it comes to the fans on my facebook pages.
I may be able to sway more people my direction in doing so.
I have looked all over the forums here and on Weather-Watch plus the Joomla and other Joomla based forums and how-to's
All assistance is appreciated.

Regards,

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 01, 2014, 02:43:08 PM
Wim,

  I have been looking into integrating the Leuven Template into Joomla. I know about changing the settings in wsSettings.php to strip menus and strip all. Do you know how to integrate the rest of the template into Joomla? If not, can you point me in the right direction to accomplish this?
Doing this setup on my site will aid me in getting more accomplished when it comes to the fans on my facebook pages.
I may be able to sway more people my direction in doing so.
I have looked all over the forums here and on Weather-Watch plus the Joomla and other Joomla based forums and how-to's
All assistance is appreciated.

Regards,

Jonny J.
I am not familiat with Joomla and similar packages.
But as I understand it, one uses a iframe to display a template page.
All menu kind of things are handled by joomla. So if the user wants to see a certain page the joomla code calls an iframe  with the detailed script name, like weather2/index.php?p=12

The same thing is used by people who already have a website and simply want to put a few of the template pages inside their existing layout.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on June 01, 2014, 02:49:42 PM
So,  to make sure I understand, take all of the template (ie: wsSettings.php), put it in the inflame,  just make it so it's not publicly published. On the other hand, the ajax-dashboard should be published as publicly accessible as the home page, or a link off the home page?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 01, 2014, 03:12:13 PM
So,  to make sure I understand, take all of the template (ie: wsSettings.php), put it in the inflame,  just make it so it's not publicly published. On the other hand, the ajax-dashboard should be published as publicly accessible as the home page, or a link off the home page?
1. The complete template as it is now installed stays in weather2/
2. In the settings all header display, side area, foooter and so on can be switched off.
3. Any page can still be shown by typing the full adress in your browser:
Example:  http://lightningweather.com/quadcities/index.php?p=42
The browser would still display the center part of the page but, depending on the settings, no menu and all other stuff.
Up until this point I tested it myself in the past. It works

From within the joomla code one uses an iframe to display the requested page, they call it a wrapper and not an iframe. ButI have no experience with it. From http://help.joomla.org/content/view/331/153/ (http://help.joomla.org/content/view/331/153/)
The Wrapper Menu Item creates a shortcut to a display page that wraps an external web page. The new display page appears as a 'page within a page'. If this is an external web site, all of that site's functions, menus for example, will be operable from within the Wrapper.
Other potential uses for a Wrapper are:
Displaying an internal web page,
Displaying non-Joomla! scripts, galleries or directories for example, within the Joomla! web site.
Displaying Content written in specialised web languages that the current crop of Joomla! Editors could not handle.


Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 04, 2014, 08:30:01 PM
I've been working on this template and I have been making progress. 
I'm stuck at the buoy page.  I can get the current conditions to load but not the map.  I have uploaded the mapbut I must be missing something.
You can see it here: http://www.shermanctweather.com/weather25/index.php?p=34
Thanks,
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on June 04, 2014, 08:31:21 PM
Verify your permissions for the map.  What are they set at?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 04, 2014, 08:35:28 PM
They are set at 644 the same as the same as the United_Kingdom image.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on June 05, 2014, 01:58:33 AM
Try setting at 755. See if that helps
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 05, 2014, 02:09:46 AM
I've been working on this template and I have been making progress. 
I'm stuck at the buoy page.  I can get the current conditions to load but not the map.  I have uploaded the mapbut I must be missing something.
You can see it here: http://www.shermanctweather.com/weather25/index.php?p=34
Thanks,
Tom
When you "inspect" the page you will find the error message:
GET http://www.shermanctweather.com/weather25/NorthEast.jpg 404 (Not Found)
So either the name is spelled wrong or the image is in a different folder.
I think it is:
http://www.shermanctweather.com/weather25/buoy/NorthEast.jpg

===  edited 09:00
As the NorthEast.jpg image is larger than expected, you should also modify line 27 in weather2/buoy/incBouy.php from
Code: [Select]
<div style="margin: auto; width: 620px;">to
Code: [Select]
<div style="margin: auto; width: 730px;">otherwise the image will not fit nicely in the page.

Succes, Wim

P.S.  In your browser do a right click and choose "inspect".  You can find a lot of interesting things in the browser inspect window. Works very fine in Chrome and FF to find missing javascripts, misspelled images and so on.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 05, 2014, 06:49:30 AM
Thank you. Moving the NorthEast.jpg to /weather25 from /weather25/buoy did it.
Thanks for your help on this and for the template.
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 25, 2014, 09:16:37 AM
My Steel series isn't working.  You can see here: http://www.shermanctweather.com/weather25/index.php?p=25
It says text file is corrupted but my gauges at http://www.shermanctweather.com/wxssgauges.php work and they are using the same customclientraw.txt file.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: txweather.org on June 25, 2014, 09:58:02 AM
Does yrno support Imperial units now? IE: F instead of C?

Edit: Also where can I download yrno and the compact version of yrno?

Thanks!
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PaulMy on June 25, 2014, 10:18:32 AM
Quote
Edit: Also where can I download yrno and the compact version of yrno?
Wim had both the MetNo and YrNo scripts in the past but now only see the MetNo http://www.weerstation-leuven.be/ (http://)

Paul
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: txweather.org on June 25, 2014, 10:32:43 AM
Paul,

Thanks for your reply.

Yea it looks like he took it down for a reason :(

Edit: Looks like MetNo is what I want.

Thanks!
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 25, 2014, 11:38:32 AM
My Steel series isn't working.  You can see here: http://www.shermanctweather.com/weather25/index.php?p=25
It says text file is corrupted but my gauges at http://www.shermanctweather.com/wxssgauges.php work and they are using the same customclientraw.txt file.
Can you make a backup of the current gauges/realtimeWD.php script.
Then unzip and upload the replacement I attached. I will have more debug code inside that script to check.

Must be an annoying bug somewhere, sorry.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 25, 2014, 11:40:30 AM
Does yrno support Imperial units now? IE: F instead of C?

Edit: Also where can I download yrno and the compact version of yrno?

Thanks!
There are multiple yrno scripts, one of them
http://www.nordicweather.net/phpscripts.php?en

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 25, 2014, 11:42:57 AM
Quote
Edit: Also where can I download yrno and the compact version of yrno?
Wim had both the MetNo and YrNo scripts in the past but now only see the MetNo http://www.weerstation-leuven.be/ (http://)

Paul
Hello Paul,
The contents of the forecast files are different between yrno and metno. And metno has a better area-coverage.
So indeed I decided to maintain only one version.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 25, 2014, 12:22:09 PM
I have downloaded the file realtimeWD.php.
Still not working, but I guess it will supply you with more info.
I thought at one time this page did work.
Thanks Tom.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on June 25, 2014, 12:40:38 PM
I have downloaded the file realtimeWD.php.
Still not working, but I guess it will supply you with more info.
I thought at one time this page did work.
Thanks Tom.
Just let me explain.
The page to the display the gauges is:
http://www.shermanctweather.com/weather25/index.php?p=25 (http://www.shermanctweather.com/weather25/index.php?p=25)
Inside that page is a call to script to process the realtime file on the server and to return the result:
http://www.shermanctweather.com/weather25/gauges/realtimeWD.php?lang=en (http://www.shermanctweather.com/weather25/gauges/realtimeWD.php?lang=en)
Normally you would not notice anything strange, but now this script has run into an error in the wsSettings.php  file and with the error reporting set on this results in an error message:
Code: [Select]
Notice: Undefined variable: vars in /hermes/waloraweb017/b1261/moo.shermanctweathercom/weather25/wsSettings.php on line 220This error message is then also send back to the page and than the javascript decides: No good data, lets retry.

So if you either remove the error in wsSettings.php (preferred way) or swith of error reporting in realtimeWD.php, the gauges should work as expected.

You can see yourself that all data is OK when you run:
http://www.shermanctweather.com/weather25/gauges/realtimeWD.php?lang=en&debug
It is just the also returned error message which messes things up.

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on June 25, 2014, 12:59:06 PM
Thanks Wim.
I got rid of the error in wsSettings and it works.
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: blainec on July 06, 2014, 11:04:28 PM
I had to do a fresh install, and now I am getting an error as follows

Parse error: syntax error, unexpected '%', expecting ']' in /home/wester55/public_html/weather2/uploadWD/testtags.php on line 533
Line 533 in nothing more than "//" (no quotes)

Anyone got an idea?

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on July 07, 2014, 01:32:04 AM
Did you go in to the configuration page and download the testtags file to your webfiles folder?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 07, 2014, 02:33:44 AM
I had to do a fresh install, and now I am getting an error as follows

Parse error: syntax error, unexpected '%', expecting ']' in /home/wester55/public_html/weather2/uploadWD/testtags.php on line 533
Line 533 in nothing more than "//" (no quotes)

Anyone got an idea?
Could you please zip your testtags.php and post it? So I can take a look into this?
The number 533 is the line were the parser understood there was an error, so the real error can be one or more lines before 533.
But there should not be a parse error in testtags.php as it is not a script which is changed during install. Very strange.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 08, 2014, 05:24:38 PM
Hi everybody

Suddenly this evening, my homepage stopped updating at prceisely at 8 in the evening.

WD is running and uploading as it should (version 10.37R b 81)
Link to my webpage: http://byvejr.danmaach.dk/weather2
screenshot attached

If any other information is needed, just say so and I´ll try to get it

Thanks in advance
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 09, 2014, 03:11:48 AM
Hi everybody

Suddenly this evening, my homepage stopped updating at prceisely at 8 in the evening.

WD is running and uploading as it should (version 10.37R b 81)
Link to my webpage: http://byvejr.danmaach.dk/weather2
screenshot attached

If any other information is needed, just say so and I´ll try to get it

Thanks in advance
Since 20:00 (8:00PM) yesterday the testtags.php as uploaded to your webserver contains "garbage".
The template detects that and switches back to the last known good data wich is from 20:00.
Normally, sometimes quite often, these garbage uploads happen if an ftp fails in the middle.  So in those cases the last good data is used while waiting until the next correct upload arrives. The weather does not change that much in 5 minutes.

In your case the upload of garbage continues
OR
the upload has halted.

This is from the HTML  of your page (I shortened the garbage):
Code: [Select]
<!-- index.php => wsDataGet.php: get data from weatherprogr / wu sites / metar files -->
<!-- module wsDataGet.php ==== version: 2.30 2013-09-30 -->
<!-- loading uploadWD/testtags.php -->
GIF87adôw,d
. . . . .   continues for a  lot of lines  . . .
Ž䜇$i¸=ÔÉ™K;
<!-- uploaded file incorrect - reverting to cached file -->
<!-- loading tag files from cache/uploadWDtesttagsChPamsmmcmkmhrm -->
This garbage is outputted to the screen as an php file is only read as php after the first < ? php  (without the spaces) in the script.
It  seems a gif is uploaded instead of the tags file.

So check on your windows PC
1. the C:\wdisplay\webfiles\testtags.txt file if it is corrupted/ written over with an image
2. the settings for the upload.
If everything is OK on your PC, than and only than,  go to your webserver and:
3. rename the current testtags.php to testtags-corrupt.php

For a future occasion:
Sometime there is some garbage (FTP errors?) in the files to process and that is in most of the times displayed at the top of the page. Also errors in the processing of scripts can be written there.

It is hidden for the visitors of your website behind the back-ground picture.

So if the page does not start at the top of the browser window you know there is some unexpected garbage or some error message there for you to check.

To see those messages or garbage just go to the menu
Customize ==> Automatically adept coulors and backgrounds? ==> Coulor and style: Pastel ==> Save
Only your background changes (all visitors have their own individual settings for this).
You can now see the messages / garbage at the top of the browser window.

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 09, 2014, 03:38:46 AM
Hey Wim

Thanks for the quick reply, I´m at work now, so I´ll try the solution when I get home  :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 09, 2014, 11:55:36 AM
 :-) :-) :-) :-) :-) :-) :-)

 Hey Wim

Your solution worked perfect, everything looks as it should be and your eminent guide is saved.

thanks for eminent support.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 09, 2014, 12:37:29 PM
Wim

Danish translation to your report script attached.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 10, 2014, 05:03:44 PM
Wim

Been wondering why Weather Underground History page still loads IOOSTVLA8 data, even I have changed it to my own IMIDTJYL27 history data.

Link: http://byvejr.danmaach.dk/weather2/index.php?p=62&ID=IOOSTVLA8&month=07&day=10&year=2014&mode=1&units=M

Maybe you have the golden answer here

Thanks in advance
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 11, 2014, 02:22:37 AM
Wim

Been wondering why Weather Underground History page still loads IOOSTVLA8 data, even I have changed it to my own IMIDTJYL27 history data.

Link: http://byvejr.danmaach.dk/weather2/index.php?p=62&ID=IOOSTVLA8&month=07&day=10&year=2014&mode=1&units=M

Maybe you have the golden answer here

Thanks in advance
The wsSettings.php file contains all settings for all scripts, more or less.

So there are three settings for wuhistory
wuHistPage true   = OK
wuId = IOOSTVLA8 => should be changed
wuStart = 01-01-2011 => should be changed

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 11, 2014, 03:45:46 AM
Already sat in wsSettings.php but my old fat fingers had put in an extra letter  #-o

Thanks again Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: azkiwi on July 11, 2014, 03:32:17 PM
Issue with CHMOD in startHere -- Initial Testing.

Found some time to download, upload etc the templates etc.   On doing the initial startHere.php testing, I get a fatal error with the CHMod test, startHere.php output in in the attachment.  I'm not tech enough to know what / how / where to resolve it unfortunately.

Relevant info:
Version is 2.5a
test.azkiwis.net/weather2/startHere.php (http://test.azkiwis.net/weather2/startHere.php) is where it lives
E-Rice is my hosting
All folders  ID'd in the wiki are set to 777.  No other changes yet made.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 11, 2014, 03:35:56 PM
Issue with CHMOD in startHere -- Initial Testing.

Found some time to download, upload etc the templates etc.   On doing the initial startHere.php testing, I get a fatal error with the CHMod test, startHere.php output in in the attachment.  I'm not tech enough to know what / how / where to resolve it unfortunately.

Relevant info:
Version is 2.5a
test.azkiwis.net/weather2/startHere.php (http://test.azkiwis.net/weather2/startHere.php) is where it lives
E-Rice is my hosting
All folders  ID'd in the wiki are set to 777.  No other changes yet made.
The text say to send the output to me. Just to make sure that the template can be installed. The error with chmod only reflects some older scripts and in most cases have no effect.
Just continue the installation, but if we run into minor problems with older scripts we know were to look.
Succes, wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: azkiwi on July 11, 2014, 04:01:56 PM
Thanks So much Wim --- Getting excited about putting it up!


Ken
Sonoran Desert, Arizona
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: azkiwi on July 12, 2014, 01:59:20 PM
Time format change   and Precipitation Radar

Firstly the time.  Altho in the US (Arizona) I run the station on 24 hour clock.   I've found  the time /data info in wssettings.php 

 $SITE['timeFormat']     = 'M j Y g:i a';
   $SITE['timeOnlyFormat'] = 'g:i a';
   $SITE['hourOnlyFormat'] = 'ga';       and *think* if I use a mod of the European one it should work for me

$SITE['timeFormat']     = 'm-d-Y H:i';      // Euro 'd-m-Y H:i'; 31-03-2012 14:03  US  'M j Y g:i a';  03 31 2013 02:03 pm
   $SITE['timeOnlyFormat'] = 'H:i';         // Euro format hh:mm  (hh=00..23);  US 'g:i a';   5:54 pm
   $SITE['hourOnlyFormat'] = 'H';    

Agree? 

2nd one -- the precipitation radar (s)  show the Pacific Northwest - seattle etc.    I cannot find where to specify my local NWS radar, KIWA.   I've checked all my entries for locations, lat and long and I can't see any error nor overlooked item..

Edit:    seems it's an Environment Canada radar image WUJ??


Any pointers for me?

Thanks

Ken
Sonoran Desert, AZ
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on July 12, 2014, 02:17:29 PM
I changed mine in /inc/rain3Sources.php line 31 $wuRadarStation      = 'OKX';   
and line 29 $wuRadarArea      = '2xradara5_anim.gif';   // find your area at http://www.wunderground.com/radar/mosaic.asp
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: azkiwi on July 12, 2014, 02:40:27 PM
Ah, well hidden from me --- Thanks weatherbee

Ken
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on July 17, 2014, 09:04:29 AM
Hi Wim,
I have been experimenting with some parts of your scripts, mainly the weather forecasting.
I got the YR. No one working here www.mad-weather.com/wsyrnofct/printfull.php but when I changed it to one of my own pages the graph isn't being drawn www.mad-weather.com/myyrno.php
Seems odd as everything else seems to be pointing in the right direction.
thanks Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 17, 2014, 09:23:03 AM
Hi Wim,
I have been experimenting with some parts of your scripts, mainly the weather forecasting.
I got the YR. No one working here www.mad-weather.com/wsyrnofct/printfull.php but when I changed it to one of my own pages the graph isn't being drawn www.mad-weather.com/myyrno.php
Seems odd as everything else seems to be pointing in the right direction.
thanks Rosalind
Hello Rosalind,
The javascripts to draw the graphs are not loaded ?at the right moment?. These are loaded in the standard page at the end. But you put them in front. That seems not to work?.
I will test that later as  at the moment I am not near my systems.
You could try to load the jquery and highcharts javascripts at the end to see if that helps.


Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on July 17, 2014, 09:59:20 AM
I moved the
Quote
<script type="text/javascript">var docready=[],$=function(){return{ready:function(fn){docready.push(fn)}}};</script>
to underneath the include and it works.
Happy Days!
Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 17, 2014, 10:38:00 AM
I moved the
Quote
<script type="text/javascript">var docready=[],$=function(){return{ready:function(fn){docready.push(fn)}}};</script>
to underneath the include and it works.
Happy Days!
Rosalind
Hello Rosalind,
The graph is drawn => OK.
But the green pop-ups in the graph are still missing.
So if you want those also, re-include this JQuery call also at the end of your script as it was in the example script.
Code: [Select]
<script type="text/javascript">$=jQuery;jQuery(document).ready(function(){for(n in docready){docready[n]()}});</script>Happy customizing,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on July 17, 2014, 04:39:09 PM
I would never have noticed that!

I was having a look at the MetNo forecasts and even though the two are linked the forecasts for the same place do give a very different reading and the MetNo are more accurate to what we are getting and the forecast from Wunderground.

One thing I spotted though is that it the day reads this evening, Friday Night, Friday morning, see www.weerstation-leuven.be/demo/demoMETNO.php?lang=en

Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 17, 2014, 05:44:20 PM
I would never have noticed that!

I was having a look at the MetNo forecasts and even though the two are linked the forecasts for the same place do give a very different reading and the MetNo are more accurate to what we are getting and the forecast from Wunderground.

One thing I spotted though is that it the day reads this evening, Friday Night, Friday morning, see www.weerstation-leuven.be/demo/demoMETNO.php?lang=en

Rosalind
There is a setting for that. So you can choose if you want the night (00:06)  named after the previous day or after the 24 hour day. It depends on where you live and what the local custom is.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on July 17, 2014, 06:27:44 PM
Quote
There is a setting for that. So you can choose if you want the night (00:06)  named after the previous day or after the 24 hour day. It depends on where you live and what the local custom is.
That is a new one on me. Can I have a clue please as to where to find the setting.
Thanks Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 18, 2014, 02:35:50 AM
Quote
There is a setting for that. So you can choose if you want the night (00:06)  named after the previous day or after the 24 hour day. It depends on where you live and what the local custom is.
That is a new one on me. Can I have a clue please as to where to find the setting.
Thanks Rosalind
I am sorry, the version for MetNo is still V2. I am upgrading all scripts to the same level as used in the leuven-Template. So i was confused with the version in the template.
http://www.weerstation-wilsele.be/index.php?p=51-1&wp=MH&lang=en
MetNo will be version 3 in the coming weeks. But the scripts are simplified, adapted for "drop-in" in Saratoga-template and Leuven-template envrironments. And writing ennough documentation takes some time.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on July 20, 2014, 06:39:52 AM
Look forward to seeing it as it is more accurate. 2-3 degrees difference so it is noticeable.
I did alter the array for the dayparts so it started night instead of evening (the same as in the yrno version) which did correct it to showing Sunday night after Sunday evening but it moved everything on by a few hours!
Couple of other things that happened, while I can add the yrno forecast to the top of my page www.mad-weather.com/new2.php if I try to do the same with the metno version I get a Fatal error: Cannot redeclare langtrans() (previously declared in /home4/madweath/public_html/common.php:52) in /home4/madweath/public_html/wsMetNoSA/otherScripts/wsLangFunctions.php on line 24
I don't use the Saratoga template, but most of it is loaded to run all the scripts, so the common.php  and Settings.php are all there. Just wrapped up in my layout. Like to do things a bit different and like working with code, but not very good with php.
Also noticed the update time on the metno is showing as 09.00 instead of 21.00 all the settings appear to be the same in both versions.
Thanks Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 21, 2014, 04:36:39 AM
Changing Gizmo to show temperature with 1 decimal.

Anyone know where, think I have been looking all around in the documentation and in here in the forum, any help is appreciated :-)

Quote
Found the solution :-)
Solution: open wsHeader1.php, change line 47 from: <span class="ajax" id="ajaxtemp"><?php echo $vars['ajaxbigtemp']; ?></span> to <span class="ajax" id="ajaxbigtemp"><?php echo $vars['ajaxtemp']; ?></span>
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 22, 2014, 08:38:52 AM
Hi

Trying to make a tablet version to a iPad I have no use for, other than maybe hang on the wall, showing data and refresh every minut (why, my wife hates the look of the Davis console, and I have it hanging in the office)

I have made this BETA look: http://byvejr.danmaach.dk/weather2/index.php?p=111 (absolutly not designet for other than test, design will be changed ;-) )

But, somehow, I can´t get it to show without menus and everything, just want to show it likes the attached pic.

I´ve used the mobi page as directions, but it dosen´t help, are there somone who can point me into the right direction please :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on July 22, 2014, 11:17:01 AM
Switched to using the printSaratoga.php and we are nearly there. I added in the forecast where they came in uppercase to the lang files and that now displays as it should, the only part I couldn't get to alter is by to Prepared by.
Still the issue with the day order.
But the other thing that has come up is, that I switched from charset=ISO-8859-1 to charset=UTF-8 to make the &amp;C display with out the ? in front of it using the Steel Series gauges. This doesn't work on the metno and yrno forecasts, it needs to be the other way around.
Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 23, 2014, 08:31:59 AM
Hi

Trying to make a tablet version to a iPad I have no use for, other than maybe hang on the wall, showing data and refresh every minut (why, my wife hates the look of the Davis console, and I have it hanging in the office)

I have made this BETA look: http://byvejr.danmaach.dk/weather2/index.php?p=111 (absolutly not designet for other than test, design will be changed ;-) )

But, somehow, I can´t get it to show without menus and everything, just want to show it likes the attached pic.

I´ve used the mobi page as directions, but it dosen´t help, are there somone who can point me into the right direction please :-)
Very nice idea. You only have to set two settings to true.
But do not use your production version for this.
Step 1: Make a clone of your current weather2/ folder, name it weatherx/  as long as it is not weather2/
Step 2: Change the settings in weatherx/wsSettingsWeather.php to get all weatherdata from the original weather2/ folder.
Code: [Select]
$SITE['uploadDir'] =  '../weather2/'.$SITE['uploadDir']; ;What we tell the scripts here: Get one step back (up) from weatherx/ - go into the weather2/ folder - go into the upload folder for your weather program.

You cam make as many clones of the weather2/ folder and use it for testing, new releases or your iPad pages. So now you have to complete weather folders, all data is uploaded to weather2/ and read by the scrpits in weather2/ and weatherx/

We can now safely remove anything we want. The template can be used in other envirionments where there is for instance a totally different menu system.
So in the wsSettings.php you remove all unnecessary parts.
You want: no headers, no menu, no side column, no bottom parts, no whatsoever.
Only the main part.
Code: [Select]
$SITE['stripAll'] = false; // to have only menu, no headers for including template in joomla sites etc
$SITE['stripMenu'] = false; // to have no menu, f.i.  when using joomla
If you do not the weatherwarnings on the iPad to show up, set that setting also to false.

You can still call any page you want
www.yourwebsite.com/weatherx/index.php?p=10  will load the main page
So if you want to have multiple sets of information on your iPad, add a few buttons or tabs and call the correct page number.

Hope this makes it a little bit more clear.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 23, 2014, 08:39:52 AM
Look forward to seeing it as it is more accurate. 2-3 degrees difference so it is noticeable.
I did alter the array for the dayparts so it started night instead of evening (the same as in the yrno version) which did correct it to showing Sunday night after Sunday evening but it moved everything on by a few hours!
Couple of other things that happened, while I can add the yrno forecast to the top of my page www.mad-weather.com/new2.php if I try to do the same with the metno version I get a Fatal error: Cannot redeclare langtrans() (previously declared in /home4/madweath/public_html/common.php:52) in /home4/madweath/public_html/wsMetNoSA/otherScripts/wsLangFunctions.php on line 24
I don't use the Saratoga template, but most of it is loaded to run all the scripts, so the common.php  and Settings.php are all there. Just wrapped up in my layout. Like to do things a bit different and like working with code, but not very good with php.
Also noticed the update time on the metno is showing as 09.00 instead of 21.00 all the settings appear to be the same in both versions.
Thanks Rosalind
The MetNo forecast is still release 2. The translation routines have the same names as in Saratoga-template and Leuven-template.  Seemed easier then.

Now (version 3) I changed this, based on these kind of user input. The translation routines have a unique name  based on the script they are intended for. Some disadventages for template users who want all the scripts. But nice for users like you who have their own set of common scripts.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 23, 2014, 08:58:50 AM
Hi

Trying to make a tablet version to a iPad I have no use for, other than maybe hang on the wall, showing data and refresh every minut (why, my wife hates the look of the Davis console, and I have it hanging in the office)

I have made this BETA look: http://byvejr.danmaach.dk/weather2/index.php?p=111 (absolutly not designet for other than test, design will be changed ;-) )

But, somehow, I can´t get it to show without menus and everything, just want to show it likes the attached pic.

I´ve used the mobi page as directions, but it dosen´t help, are there somone who can point me into the right direction please :-)
Very nice idea. You only have to set two settings to true.
But do not use your production version for this.
Step 1: Make a clone of your current weather2/ folder, name it weatherx/  as long as it is not weather2/
Step 2: Change the settings in weatherx/wsSettingsWeather.php to get all weatherdata from the original weather2/ folder.
Code: [Select]
$SITE['uploadDir'] =  '../weather2/'.$SITE['uploadDir']; ;What we tell the scripts here: Get one step back (up) from weatherx/ - go into the weather2/ folder - go into the upload folder for your weather program.

You cam make as many clones of the weather2/ folder and use it for testing, new releases or your iPad pages. So now you have to complete weather folders, all data is uploaded to weather2/ and read by the scrpits in weather2/ and weatherx/

We can now safely remove anything we want. The template can be used in other envirionments where there is for instance a totally different menu system.
So in the wsSettings.php you remove all unnecessary parts.
You want: no headers, no menu, no side column, no bottom parts, no whatsoever.
Only the main part.
Code: [Select]
$SITE['stripAll'] = false; // to have only menu, no headers for including template in joomla sites etc
$SITE['stripMenu'] = false; // to have no menu, f.i.  when using joomla
If you do not the weatherwarnings on the iPad to show up, set that setting also to false.

You can still call any page you want
www.yourwebsite.com/weatherx/index.php?p=10  will load the main page
So if you want to have multiple sets of information on your iPad, add a few buttons or tabs and call the correct page number.

Hope this makes it a little bit more clear.

Wim

Hi Wim

Had that thought also to do it that way, but then then I have 2 sites to maintain (upgrade and so on)
My original thought was to make a page similar to the mobi page, and use that (one place for everything)

But your idea I´ll try later today

Thanks :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 23, 2014, 09:01:12 AM
Switched to using the printSaratoga.php and we are nearly there. I added in the forecast where they came in uppercase to the lang files and that now displays as it should, the only part I couldn't get to alter is by to Prepared by.
Still the issue with the day order.
Quick and dirty - it may work, reset the clock time only for the display with an extra few hours.
change line 247 in metnoGenerateHtml.php from
Code: [Select]
$dayText = langtransstr( date('l', ($arr['timestamp']-3*60*60) ) );to
Code: [Select]
$dayText = langtransstr( date('l', ($arr['timestamp']-6*60*60) ) );
Quote
But the other thing that has come up is, that I switched from charset=ISO-8859-1 to charset=UTF-8 to make the &amp;C display with out the ? in front of it using the Steel Series gauges. This doesn't work on the metno and yrno forecasts, it needs to be the other way around.
Rosalind
The yrno forecast is fully HTML5 - UTF8. It has a setting to be used in non-UTF-8. All texts are UTF-8 and converted if needed in another character-encoding.
So for the YrNo forecast is should work. Tthe ? before the C or F symbol is an error, I can not replicate that. The script to generate yrnoGenerateHtml.php is saved as an UTF-8 script and the degree symbol is hard-coded in the javascript.

The metno forecast is still V2, the texts must be loaded and saved as UTF-8 before copying them to the Saratoga translate files. The metnoGenerateHtml.php should be openend in a program editor and saved with the same name but with UTF-8 decoding, replacing the current script.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 23, 2014, 09:29:09 AM

Hi Wim

Had that thought also to do it that way, but then then I have 2 sites to maintain (upgrade and so on)
My original thought was to make a page similar to the mobi page, and use that (one place for everything)

But your idea I´ll try later today

Thanks :-)
The maintenance is nealy nill.
You maintain ALL scripts in the main weather2/ environment, including the iPad scripts.

New scripts are always copied twice, without thinking if they are needed for that weather folder.

IF a new release arrives, make a clone => weahterx/ modify one setting in settingsWeather and two in the normal settings file.

===
There is no easy workaround.
We could try, but still you should only test it in a separate weatherx environment to be sure and when everything works as expected, make the modifications in your 'production' weather2/ scripts.

It is always very handy to have an "more or less exact" copy of the weather2/ folder on your website.
Just the settings for the location of the weatherdata needs to be different, all other things should be exactly the same. Then you can test anything you want without influence on your real site.

Workaround:
In index.php,
after checking the requested pagenumber (so after line 140),
set the two settings to true,
only for that pagenumber.
Code: [Select]
if ($p == 'your name or number') {
        $SITE['stripAll'] = true;
        $SITE['stripMenu'] = true;
}
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 23, 2014, 09:29:51 AM
Hey Wim

Little confused which par to chage upload dir in:

Code: [Select]
#---------------------------------------------------------------------------
$SITE['uploadDir'] =  'upload'.$SITE['WXsoftware'].'/'; // ##### where to store uploaded files (weather variables graphs clientraw)
#$SITE['uploadDir'] =  '../'; // ##### with this setting: uploaded files are stored in ROOT
$SITE['clientrawDir'] = $SITE['uploadDir']; // ##### for standard loaction of clientraw
#$SITE['clientrawDir'] = '../'; // ##### with this setting:  clientraw files are stored in ROOT
$SITE['graphImageDir']  = $SITE['uploadDir'];    // #####
#---------------------------------------------------------------------------
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 23, 2014, 09:37:34 AM
Hey Wim

Little confused which par to chage upload dir in:

Code: [Select]
#---------------------------------------------------------------------------
$SITE['uploadDir'] =  'upload'.$SITE['WXsoftware'].'/'; // ##### where to store uploaded files (weather variables graphs clientraw)
#$SITE['uploadDir'] =  '../'; // ##### with this setting: uploaded files are stored in ROOT
$SITE['clientrawDir'] = $SITE['uploadDir']; // ##### for standard loaction of clientraw
#$SITE['clientrawDir'] = '../'; // ##### with this setting:  clientraw files are stored in ROOT
$SITE['graphImageDir']  = $SITE['uploadDir'];    // #####
There are two, the first one points to your normal uploadWd folder.
The second one is commented and can be used to point to the root (see the WiKi).
The other lines use the $SITE['uploadDir'] value to point to the correct upload folder also. If for one reason or antother you can not upload all data to the same location, you can modify these locations.
===
So you only have to modify the first setting.
All other settings will be reading that value and using it.
Code: [Select]
$SITE['uploadDir'] =  '../weather2/'. 'upload'.$SITE['WXsoftware'].'/';or
Code: [Select]
$SITE['uploadDir'] =  '../weather2/uploadWD/';The value for $SITE['uploadDir'] now points to the weather2/uploadWD/ folder.
So testtags is read from that location.
clientrawDir and graphImageDir do not have to change as they automatically now read from weather2/uploadWD/ also.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 23, 2014, 09:42:06 AM
 :grin: :grin: :grin: :grin:

That did the trick, thanks again Wim, super service :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 23, 2014, 04:34:07 PM
Wim

Your solution works perfect, with 2 sites, getting data from 1 site, but I have an issue with the css.
Take a look here: http://byvejr.danmaach.dk/weather2_tablet/

I have tried the whole evening to make the background white and centering the view, but nothing I do helps.
I have been working on the stylemain20.css and the styleMood20.css......but, no luck - any possibility you could help n old man again ;-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on July 23, 2014, 04:52:01 PM
Wim

Your solution works perfect, with 2 sites, getting data from 1 site, but I have an issue with the css.
Take a look here: http://byvejr.danmaach.dk/weather2_tablet/

I have tried the whole evening to make the background white and centering the view, but nothing I do helps.
I have been working on the stylemain20.css and the styleMood20.css......but, no luck - any possibility you could help n old man again ;-)
I will look into it tomorrow.

As I may advise you:
1. Take the  exact copy of weather2/
2. Set the settings to true to skip all menu sidcolumns and so on.
3. test with an existing but very simple page
http://byvejr.danmaach.dk/weather2_tablet/index.php?p=45
4. then we have to find the small CSS modifications necessary

After an existing well tested page is working as expected:

5. Use a newpage script to make your own script
But DO NOT include headings end the like again in the page.
Code: [Select]
<div id="pagina" style="width:800px; position: relative; z-index: 2;">
<!-- module wsWarning.php ==== version: 2.5a 2014-04-30 -->
<div id="data-area" style="width: 650px; ">
<!-- index.php: loading program: tablet/tablet.php -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
<meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" />
<script src="mobi/mobiFunctions.js" type="text/javascript"></script>
<link href="mobi/mobiStyle.css" rel="stylesheet" media="screen" type="text/css" />
Multiple heads and css mess things up.

6. Add all ipad code and other header extensions in a seperate file and let the menu system take care of that.
7. Wait with adding iPad code until the page displays correct  in a normal browser.

Can you please send me the script itself? I will give it a try

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 23, 2014, 04:59:29 PM
Wim

Thats a deal, I´ll send you the very basic script and do what you tell me :-)
But I´ts going to be tomorrow, I´m on the way to bed now, hard day at work today :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 24, 2014, 02:36:34 AM
Wim

Script attached

Just be aware that my programming skills is very low, and I´m trying to figure it out and learn ;-)

As promised, put the code into new page as you suggested and in settings.php made these changes:

Code: [Select]
$SITE['pageWidth'] = '800';
$SITE['menuPlace']  = 'V';
$SITE['header'] = '1';
$SITE['colorNumber'] = 1;
$SITE['colorStyles'] = array
$SITE['sideDisplay'] = false;
$SITE['bottomDysplay'] = false;
$SITE['showVisitors'] = false;
$SITE['ajaxGizmoShow'] = false;
$SITE['stripAll'] = true;
$SITE['stripMenu'] = true;
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 24, 2014, 05:14:13 AM
Wim

Been playing a litle around, try take a look now: http://byvejr.danmaach.dk/weather2_tablet/ ;-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on July 24, 2014, 05:15:36 PM
Wim

Think I got it to work  :grin: :grin: :grin:

Remember this a workaround, and I have to go to choose the colorscheme: green, otherwise it dosen´t work (maybe i change the other color schemes later)

If you want to try it:

- Goto: http://byvejr.danmaach.dk/weather2_tablet/index.php?p=16
- Choose color and style: Green
- Go to: http://byvejr.danmaach.dk/weather2_tablet

Things to sort out:

- Page open in full screen
- Page update every minut og so

More to come, now I´ll test the next days  :grin: :grin: :grin:

Thanks for all your help so far, and if you come up with better programming (so it fits better into your template), just let me know.

Thanks again, you are eminent :-)

ohh, just added a screenshot :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on August 01, 2014, 03:09:09 PM
Hi

I´m trying to print out the ISS status, Reception status and battery voltage, but i have looked anywhere, and I can´t seem to find the tags.
I have been looking in testtag.txt and so on.

So my question is, are there somewhere where I haven´t been looking properly ;-)

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 01, 2014, 03:15:00 PM
Hi

I´m trying to print out the ISS status, Reception status and battery voltage, but i have looked anywhere, and I can´t seem to find the tags.
I have been looking in testtag.txt and so on.

So my question is, are there somewhere where I haven´t been looking properly ;-)
These tags are not included in the default tag-files. But if your weatherprogram and weatherstation support them, you can add them to the tag-files yourself.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on August 01, 2014, 03:28:21 PM
Hi

I´m trying to print out the ISS status, Reception status and battery voltage, but i have looked anywhere, and I can´t seem to find the tags.
I have been looking in testtag.txt and so on.

So my question is, are there somewhere where I haven´t been looking properly ;-)
These tags are not included in the default tag-files. But if your weatherprogram and weatherstation support them, you can add them to the tag-files yourself.

Wim

I´m using WD, so if I find the tag name, I´ll just make new inserts in testtags.txt, copy testtags.txt to webfiles folder in WD nd then let WD uploas as usual?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 01, 2014, 03:31:21 PM
Hi

I´m trying to print out the ISS status, Reception status and battery voltage, but i have looked anywhere, and I can´t seem to find the tags.
I have been looking in testtag.txt and so on.

So my question is, are there somewhere where I haven´t been looking properly ;-)
These tags are not included in the default tag-files. But if your weatherprogram and weatherstation support them, you can add them to the tag-files yourself.

Wim

I´m using WD, so if I find the tag name, I´ll just make new inserts in testtags.txt, copy testtags.txt to webfiles folder in WD nd then let WD uploas as usual?
That would certainly work. Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on August 01, 2014, 03:35:51 PM
Thanks Wim :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on August 01, 2014, 04:34:53 PM
Wim

worked nearly perfect, but reception shows odd, maybe you can help me here ;-)

Printet, it looks like this: ISS status: Ok - Battery voltage: 4,2 - Reception: 30128 64 0 1427 7

You can see it here, at the bottom of the page: http://byvejr.danmaach.dk/weather2_tablet/

Thanks in advance

Solved: used wrong tag....  :oops:
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Josiah on August 01, 2014, 04:48:29 PM
erikmm,
If you look in the Communications reference provided by Davis, (Here's a Link: http://www.davisnet.com/support/weather/downloads/software_dllsdk.asp (http://www.davisnet.com/support/weather/downloads/software_dllsdk.asp))

on page 11 it states:

Quote
"RXCHECK"
It sends the Console Diagnostics report. The following values are sent on one line as a text string: total packets received, total packets missed, number of resynchronizations, the largest number of packets received in a row., and the number of CRC errors detected.
All values are recorded since midnight, or since the diagnostics are cleared manually.
Example:
>"RXCHECK"<LF>
<<LF><CR>”OK”<LF><CR>" 21629 15 0 3204 128"<LF><CR>
It shows we received 21,629 packets, missed 15 packets, there were no resynchronizations, the maximum number of packets received in a row without an error was 3204, and there were 128 CRC errors detected.

It also describes how to Calculate ISS reception on page 51.

Hope this helps.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on August 01, 2014, 04:50:40 PM
erikmm,
If you look in the Communications reference provided by Davis, (Here's a Link: http://www.davisnet.com/support/weather/downloads/software_dllsdk.asp (http://www.davisnet.com/support/weather/downloads/software_dllsdk.asp))

on page 11 it states:

Quote
"RXCHECK"
It sends the Console Diagnostics report. The following values are sent on one line as a text string: total packets received, total packets missed, number of resynchronizations, the largest number of packets received in a row., and the number of CRC errors detected.
All values are recorded since midnight, or since the diagnostics are cleared manually.
Example:
>"RXCHECK"<LF>
<<LF><CR>”OK”<LF><CR>" 21629 15 0 3204 128"<LF><CR>
It shows we received 21,629 packets, missed 15 packets, there were no resynchronizations, the maximum number of packets received in a row without an error was 3204, and there were 128 CRC errors detected.

It also describes how to Calculate ISS reception on page 51.

Hope this helps.

Oh yes, that helped, and also helped if I used the right tag, now it shows 100% ;-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: djroby19 on August 02, 2014, 03:55:08 AM
Hello Wim wanted to congratulate you for the scripts created
I logged into my site the report script here http://www.pomeziameteo.altervista.org/index.php/grafici-meteo/storico-dati-meteo

Then I was inserting the script wuforecast
I created the file in Italian but I can not make it work even if you set (IT)
you can see it here
http://pomeziameteo.altervista.org/wuforecast/myWUforecast.php
Thank you very much  :grin:
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 02, 2014, 04:21:02 AM
Hello Wim wanted to congratulate you for the scripts created
I logged into my site the report script here http://www.pomeziameteo.altervista.org/index.php/grafici-meteo/storico-dati-meteo

Then I was inserting the script wuforecast
I created the file in Italian but I can not make it work even if you set (IT)
you can see it here
http://pomeziameteo.altervista.org/wuforecast/myWUforecast.php
Thank you very much  :grin:
@djroby19
I added the Italian language.
1. unzip the attached script
2. make a copy/backup of the current wuforecast/wuforecast3.php
3. replace wuforecast/wuforecast3.php with the unzipped one
@ALL
What is needed for a new language are the translations in the wuforecast/lang/ folder.
AND
the winddirections in the new language.
Without the winddirections a new language will not become operational even if you translated all texts!
Code: [Select]
$windCodes['it']        = array ('it','N','E','S','O','Nord', 'Est', 'Sud',  'Ovest');     
#$windCodes['??']       = array ('??','N','E','S','W','North','East','South','West');      // change to your new language
You can add those directions yourself in wuforecast3.php or send me the correct descriptions.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: djroby19 on August 02, 2014, 04:27:34 AM
It works perfectly once I insert it into my site page
here http://www.pomeziameteo.altervista.org/  =D&gt;
What do you think?
Can I ask you if you have 2 scripts one for air quality
and one for UV?  \:D/

Thanks again Wim for their support and apologize if I'm allowed to ask two scripts ..
I wanted your opinion on my site ...
I'm opening another host and surely I will use your template .....
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on August 08, 2014, 10:28:55 PM
Wim, 

I recently lost Internet access for several days. My WD was continuing to collect data during this time.  I cannot get the clientraw.txt file to update on the server. WD is showing the files uploading normally.
Any suggestions?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 09, 2014, 02:18:24 AM
Wim, 

I recently lost Internet access for several days. My WD was continuing to collect data during this time.  I cannot get the clientraw.txt file to update on the server. WD is showing the files uploading normally.
Any suggestions?
as far as I know there are two (2) ftp processes which have to run in the WeatherDisplay PC. One for the clientraw realtime files. And one for all the other files. They both have a log where you could see what the problem is. I just use WD for uploading its data and are not familiar with its further settings. Maybe you should ask for assistance in another thread or another forum, as it has nothing to do with the template. It is a WD problem so you will find more knowledgable help at other places.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on August 09, 2014, 01:00:40 PM
Wim, 
I checked this morning and testtags and clientraw are both showing the latest information. My home page is not updating however. It appears to be an Ajax issue if what I'm seeing is correct.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 10, 2014, 03:50:33 AM
Wim, 
I checked this morning and testtags and clientraw are both showing the latest information. My home page is not updating however. It appears to be an Ajax issue if what I'm seeing is correct.
I think we are seeing different things then.
When I look into your uploaded files:
quadcities/uploadWD/customclientraw.txt =>  dated 2014,08,04,09,58,38  UTC
quadcities/uploadWD/yowindow.xml  => dated 08/04/14 04:58 AM
quadcities/uploadWD/clientraw.txt   dated 8/4/2014
I can not look into a php file  directly, but the template code checks that date also, message:
<!-- uploaded file older than cached file  -->
Using the config program the contents of testtags.php are dated 20140804045500

So all uploaded files to your website => quadcities => uploadWD are dated August 4, around 4:55AM

This is not an Ajax issue either. When a page is loaded, the first information shown  is the PHP retrieved information. After so many minutes the ajax routines retrieve an update.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on August 10, 2014, 11:42:21 AM
That's the confusing part.  When I go into the uploadWD folder via FTP, the files are up to date.  So how can I fix this?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 10, 2014, 12:01:26 PM
That's the confusing part.  When I go into the uploadWD folder via FTP, the files are up to date.  So how can I fix this?
I have no idea.
Every browser I tested reads an old file, does not matter .txt or .xml
All scripts on your site read get these old files also.
All files in http://www.lightningweather.com/quadcities/uploadWD/ are from August 4 or older.

This means that you are looking at other files probably on another location.

WeatherDisplay is NOT uploading to http://lightningweather.com/quadcities/uploadWD  since August 4, 4:55AM.

The files you are looking at,  have the same filename so they must be on another location.
There is always only 1 file with a certain name. So as an example: there is only one
http://lightningweather.com/quadcities/uploadWD/dailydatalog.txt which is from August 4.

Wim



Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on August 11, 2014, 06:36:59 PM
Wim
Figured it out.  My hosting updated their servers. In the process they changed the FTP server address. Although my files were uploading like they should,  since I wasn't using the proper FTP server address,  it wasn't updating the site.
Once I got everything changed, the FTP uploader on WD started working properly.
They didn't make me aware of the updates prior to and the updates took place while my Internet was down.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on August 12, 2014, 06:11:53 PM
Hi Wim,
I have just noticed that instead of having clear it says sun for both night and day. Now I did fix this in the language translation, so not sure why it has decided not to work.  www.mad-weather.com
This is still the older modified version and not the later version 3 as although that works fine, the wind speed is 10mph more than it should be.
Maybe I didn't notice it when you modified it that this happened. Just looks odd that it says sunny at night!
I did update the api version to 1.9.
Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 13, 2014, 06:22:26 AM
. . . shortened . . .
Can I ask you if you have 2 scripts one for air quality
and one for UV?  \:D/
. . . shortened . . .
My UV forecast script is also usable outside the Leuven-template and available at:
http://www.weerstation-leuven.be/demouv/demo.php (http://www.weerstation-leuven.be/demouv/demo.php)

All scripts available and the Leuven-template information can be found at:
http://www.weerstation-leuven.be/ (http://www.weerstation-leuven.be/)

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 13, 2014, 06:53:47 AM
Hi Wim,
I have just noticed that instead of having clear it says sun for both night and day. Now I did fix this in the language translation, so not sure why it has decided not to work.  www.mad-weather.com
Hello Rosalind,
The "problem" is that YrNo MetNo delivers not the word "clear" but the word "sun" for both nighttime as daytime. One has to adapt those descriptions in the script itself. As i did in the v3 version.

If you did this in the language files, the last word at the end of the last file read is used.
Quote
This is still the older modified version and not the later version 3 as although that works fine, the wind speed is 10mph more than it should be.
Could you please be more specific and or find the xml with the differences?
When i test it with your coordinates the windspeed in api 1.8 and 1.9 are the same, as are the results of the old script version and v3.
Quote
Maybe I didn't notice it when you modified it that this happened. Just looks odd that it says sunny at night!
I did update the api version to 1.9.
Be aware that not only the version number changed. Also the number (15 => over 40)  of icons and the descriptive texts (all capitals to normal texts).
Quote
Rosalind
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on August 13, 2014, 07:44:34 AM
Hi Wim,
www.mad-weather.com/metno3.php is version 3 but the wind speeds are showing much higher than on www.mad-weather.com
The version on the home page is the version to override the night time issue. I added in the corrections to the SUN|clear into the saratoga lang file and that worked, for some reason it has stopped working.
I also looked at Henkkas YrNo forecast, similar wind speeds to version 3 but that has an issue with being 6 hours out on the default setting but is OK on a search.
There is always something. Maybe I have to live with the different wind speeds.
Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 13, 2014, 09:09:21 AM
Hi Wim,
www.mad-weather.com/metno3.php is version 3 but the wind speeds are showing much higher than on www.mad-weather.com
The version on the home page is the version to override the night time issue. I added in the corrections to the SUN|clear into the saratoga lang file and that worked, for some reason it has stopped working.
I also looked at Henkkas YrNo forecast, similar wind speeds to version 3 but that has an issue with being 6 hours out on the default setting but is OK on a search.
There is always something. Maybe I have to live with the different wind speeds.
Rosalind
Hello Rosalind,
Just to make sure I did the folowing tests:
api 1.8 - 1.9
Code: [Select]
http://api.met.no/weatherapi/locationforecast/1.9/?lat=32.7350&lon=-17.1940
http://api.met.no/weatherapi/locationforecast/1.8/?lat=32.7350&lon=-17.1940
Identical results for the windpeeds and other weather values. Differences are only in the descriptive texts/icons en temperature description.

convert windspeed functionsRan both wsmetNoSA as v3 with both xml's which gave identical results for windspeed in m/s - km/h as mph.  Checked with http://www.csgnetwork.com/windspeedconv.html (http://www.csgnetwork.com/windspeedconv.html) and the conversions are correct. So for example 6.4 m/s from the xml results in 6 m/s - 14 mph or 23 km/h.

Conclusion: I have only one explanation why your information  on your startpage displays lower than the xml forecast supplies.

Your startpage shows  the same amount as the xml windspeed (which is in m/s) but with mph as unit.
So the xml says 5.1 m/s which you display as 5mph on your startpage.
3.7 m/s becomes 4 mph and so on.

There are no differences  between api 1.8 and 1.9 in weather-values.  There is only an error in the windspeed conversion in this specific version of the old script you are using. And for that error I have to say "sorry". I hope you will switch to the up-to-date version 3 scripts soon.

Wim

====

Here the results from the tests:
          aft wed-ev wed-ni

your page
temp   24     23        21
wind  5mph   4mph   8mph

v3 scripts
temp   24     23         21
wind  11mph  8mph   17mph

api xml both 1.8 and 1.9
        24.4    22.7     21.4
wind  5.1m/s 3.7m/s   7.6m/s

wind converter calculate
in mph 11.40  8.27   17.00
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on August 14, 2014, 05:55:23 AM
Hi Wim,
Thanks for the time and testing. I had checked the kmh but not the m/s on the homepage. I've now updated to V3.
The only small issue is that you have only used the small icon set, I changed those to the previous ones used in V2, but although I can make them bigger for the main icons it would be better to be able to use the larger icons and then make them a bit smaller. But that then makes the icons on the graph too big and there is no way of resizing those. Would it possible to have the graphs use a separate set as previously?
Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 14, 2014, 06:23:25 AM
Hi Wim,
Thanks for the time and testing. I had checked the kmh but not the m/s on the homepage. I've now updated to V3.
The only small issue is that you have only used the small icon set, I changed those to the previous ones used in V2, but although I can make them bigger for the main icons it would be better to be able to use the larger icons and then make them a bit smaller. But that then makes the icons on the graph too big and there is no way of resizing those. Would it possible to have the graphs use a separate set as previously?
Rosalind
There are two sets of icons for the conditions (KDE and YrNo).
There are two sizes used in the script. One for the tables (larger) and one for the graphs (smaller).
In the download there is only one size for each set which is used for both tables and graphs.
Because I did not locate any 1.9 "metno-style" fonts other than 38px.

There are also two different sets for the wind-arrows, blue and white ones. Both are in the download.

You can supply your own icons in any size you want.

In metnoSettings.php line 101-112 one defines the folders where the icons are kept and the extension of the icons. So if you simply duplicate the img/yrno_icons folder with a name yrno_icons_small and change the setting from
Code: [Select]
$iconsMetnoSmall= $iconsMetno;  to
Code: [Select]
$iconsMetnoSmall= $iconsDir.'yrno_icons_small/';  all graphs would use one set and you could change the "large" set.

Be aware that there are double the number of icons compared to api 1.8  So if you want to use older sets you have to create a few for yourself.

IMPORTANT: The javascript-graphs can not resize an icon. So leave the size of the small icons as is. In the other outputs the size is specified in the html so you can use any icon, larger or smaller as it is resized by the browser.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: youngros on August 14, 2014, 07:45:40 AM
Perfect, thanks Wim.
I will keep an eye on which of the icons I may have to reproduce. Snow is not obviously going to be an issue!
I like the idea of having all forecast using the same icons, continuity.

Rosalind
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 14, 2014, 08:03:30 AM
Perfect, thanks Wim.
. . . shortened . . .
I like the idea of having all forecast using the same icons, continuity.
Rosalind
That is why I use for all scripts and the template  as a default iconset the KDE icons. They are clear, without any extra space. And one should see in any of the forecasts the same icon as in the current conditions.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on August 18, 2014, 08:07:00 AM
Hi Wim

Have been looking every where for the KDE Weather icon pack (used as default in your template)

I need the icons to be 64x64 (Those in the template is 32x32 and 128x128)

Could you be kind and point me in the right direction

Thanks in advance
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 18, 2014, 08:13:16 AM
Hi Wim

Have been looking every where for the KDE Weather icon pack (used as default in your template)

I need the icons to be 64x64 (Those in the template is 32x32 and 128x128)

Could you be kind and point me in the right direction

Thanks in advance
They are 128x128 by default. I used my mac to make them smaller.
Copied all icons to a new folder. I selected them all, double clicked so they are all opened in the mac preview app. There you can select to resize them all in one go.

This is the original download location but some are missing as there are home-made extra icons in the template scripts.
http://kde-look.org/content/show.php?content=39988

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on August 18, 2014, 08:27:32 AM
Quote
They are 128x128 by default. I used my mac to make them smaller.
Copied all icons to a new folder. I selected them all, double clicked so they are all opened in the mac preview app. There you can select to resize them all in one go.

This is the original download location but some are missing as there are home-made extra icons in the template scripts.
http://kde-look.org/content/show.php?content=39988

Succes, Wim

Ok, thanks Wim - I´ll down size them, thanks :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on August 18, 2014, 03:28:33 PM
Wim

More or less now built my iPad (Tablet) version on your template, using settings and files.
Could you give me your opninon, first time built on css and php from scratch...

It´s going to hang in the living room or kitchen - using it as console with some extra features.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on August 19, 2014, 09:14:46 AM
Wim

More or less now built my iPad (Tablet) version on your template, using settings and files.
Could you give me your opninon, first time built on css and php from scratch...

It´s going to hang in the living room or kitchen - using it as console with some extra features.
VERY nice to say the least.
If there will be more time on my side I will do a similare thing.  Hope to get in in the next release of the template.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on August 26, 2014, 06:25:10 PM
I am switching my website over to shermanctweather.org.  I copied all the files over and did some adjustments and have everything working but my wxsim forecast icons.  Everything else is fine (I think.)
The new site is www.shermanctweather.org
The old site is www.shermanctweather.com/zz_index.php
Thanks.

Edit: this morning seems to be working.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 06, 2014, 11:30:54 AM
Wim

More or less now built my iPad (Tablet) version on your template, using settings and files.
Could you give me your opninon, first time built on css and php from scratch...

It´s going to hang in the living room or kitchen - using it as console with some extra features.
As told before, nice idea.
To support you and others I modified the index.php a bit. Attached you will find the last (2.5a version) but now with an extra parameter you can use in the calling of a page.
Example, this is the normal URL for Meteobridge test site startpage: http://www.wiri.be/weather2/index.php?p=10 (http://www.wiri.be/weather2/index.php?p=10)
This is the result if you add &ipad to the call of the page: http://www.wiri.be/weather2/index.php?p=10&ipad (http://www.wiri.be/weather2/index.php?p=10&ipad)
You see that now  all headers, footers and  menu are gone.
When using Safari on an iPad you can put the "shortcut" on the "desktop" using the "airdrop" icon and then choosing "Add to home screen". Off course all these "names" are different for every language. This is from a Dutch iPad set to English to get these names.

There are no special scripts for iPad pages yet. You create your own.
1. You make a special page with only the information on it which is needed, put that in the menu with show='yes' so that the page always appear in the menu. If you do not want that you should set it to show='wsDebug' while than it is only shown in the menu when adding &debug to the url
2. for testing you can use your normal laptop/desktop computer with the "normal" menu and so on until satisfied and all tests with and without  &iPad are OK.
3. You than use the iPad to make the shortcut on the Home screen.
4. As final toch you set the show setting in the menu to show='ipad'. That will make sure that normal visitors of your site will not see ipad page (without menus and so on) on their regular visits.

To install: Make a copy of the current index.php (2.5x 2014-03-28) and replace it with the unzip of the attached one.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on September 06, 2014, 03:34:45 PM
Wim, you constantly surprises me, indeed Very good work
I am actually trying to work with living graphics, something similar to The new WU iPad app.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: meteo-saint-brevin on September 09, 2014, 04:09:24 PM
Hi Wim,

Since this morning, yr.no seems not working here.
I have a divide by zero error.
http://www.meteo-saint-brevin.fr/metno/printFull.php

I was thinking this issue would be corrected at the evening forecast update, but not.
Not all sites seems to be concerned by this issue.

Your demo link seems to have the error too :
http://www.weerstation-leuven.be/wsMetNoSA/printDemo.php?lang=en

Your help would be appreciated. Best regards,
Marcel


Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on September 09, 2014, 05:52:09 PM
The solution is here: http://www.weather-watch.com/smf/index.php/topic,61546.0.html
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: meteo-saint-brevin on September 10, 2014, 03:05:09 AM
Thank you Erik,
I will check that this evening.
Marcel
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: meteo-saint-brevin on September 10, 2014, 03:00:26 PM
Everything seems to be running fine.
http://www.meteo-saint-brevin.fr/previsions1.htm (http://www.meteo-saint-brevin.fr/previsions1.htm)

A big THANK YOU to Wim  =D&gt;  and best regards.
I will try your others scripts too.
Marcel
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on September 11, 2014, 12:11:11 AM
Wim,
Just wondering what the status is of your Leuven Template 3.0
When do you think you will be beta testing it?
I would be willing to be a US beta tester for you when you are ready to do so
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 11, 2014, 03:46:30 AM
Wim,
Just wondering what the status is of your Leuven Template 3.0
When do you think you will be beta testing it?
I would be willing to be a US beta tester for you when you are ready to do so
In the past months I asked about ten users what should be done for release 3.0.
There was no interest apart from scripts like "Davis Console" a.s.o. Gradually improving the current scripts, that was all the users wanted. Most Leuven-scripts are reworked already and available for Saratoga- and Leuven-template and can be used in ones "home-made" website also. 

An "important" extension in the 2.x release was the easy adaptable start-page. You can select form 20 different components, put them in your sequence  to combine into a non-standard start-page.
The number of users of the template? Nearly 100 who use it as their main website.
How many use the adaptable start-page?  Less than 10?

I also have counters on my own websites to count which pages are read by visitors to the website. 90% of the visits go the extensive start-page, 3% to the WXSIM forecast (mostly directly), another 3% go either directly or from a link on the start-page to another forecast page, 2% to the rain-radar. Even after 4 months some of the pages are not visited at all. This summer there was some extra interest in the UV page so I reworked it to be used on the start-page also.

So for the moment there is no wish-list or to-do list anymore.
Only the 2.5b release as I am doing this week. And that one is for new users only, as there is no need to upgrade the template if you are already on 2.4 or 2.5

Wim



Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: erikmm on September 11, 2014, 06:26:23 AM
Wim,
Just wondering what the status is of your Leuven Template 3.0
When do you think you will be beta testing it?
I would be willing to be a US beta tester for you when you are ready to do so
In the past months I asked about ten users what should be done for release 3.0.
There was no interest apart from scripts like "Davis Console" a.s.o. Gradually improving the current scripts, that was all the users wanted. Most Leuven-scripts are reworked already and available for Saratoga- and Leuven-template and can be used in ones "home-made" website also. 

Sounds like a big applause to you, and sounds like people think you made an exelent job, since that is the "only" thing they ask for, a Davis Console page ;-)

For me, it is more about fine tune it all (if there are something to fine tune)

One thing I would like, is the YR.no script, could be shown like your HWA forecast script, that is one thing I would like to use on my index page, and maybe the ability to change weather icons more user "friendly" but you haven´t asked me what to want ;-) just kidding Wim

Oh, and you are always welcome, to ask for my opinion/test for new/modified/ideas...
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on September 17, 2014, 10:15:46 AM
Wim,
How can I adjust the heatcolorword on the dashboard.  This morning it was 46F and said it was cold which 46F isn't really cold in this section of the country.
Thanks,
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 17, 2014, 10:42:09 AM
Wim,
How can I adjust the heatcolorword on the dashboard.  This morning it was 46F and said it was cold which 46F isn't really cold in this section of the country.
Thanks,
Tom
script: weather2/wsFunctions.php
function: wsFeelslikeTemp
This function uses the actual temp, windchill and heatindex to do the calculations.

Coming from a moderate climate I did not make it customizable. Better do that in a next release.

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on September 17, 2014, 12:29:46 PM
Thanks, Wim.
Looking at this code it seems that it should read cool till the windchill gets to 30.2F.

Also while your looking at that is there a way when the temperature goes below freezing that rain info can turn into snow info.

Thanks, TOm
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on September 18, 2014, 11:39:22 AM
I would like to add my banner to the template as I have it placed like it is at http://rathdrumweather.us (http://rathdrumweather.us)
but on /weather2

What is the easiest way to do this?  I want it on all pages.   I tried adding it in the CSS but it didn't work.  I will try it again

Dennis
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 18, 2014, 11:42:00 AM
I would like to add my banner to the template as I have it placed at http://rathdrumweather.us (http://rathdrumweather.us)

What is the easiest way to do this?  I want it on all pages.   I tried adding it in the CSS but it didn't work.  I will try it again

Dennis
I am unsure if this is what you are referring to?
http://wiki.leuven-template.eu/doku.php?id=faq:header (http://wiki.leuven-template.eu/doku.php?id=faq:header)
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on September 18, 2014, 12:13:03 PM
Yes it is Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on September 18, 2014, 03:33:54 PM
I did get it to work in the CSS but I want the banner above the warnings area.  I will keep researching and playing with the PHP
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 19, 2014, 11:13:10 AM
I did get it to work in the CSS but I want the banner above the warnings area.  I will keep researching and playing with the PHP
Attached you will find a warning_banner.txt file.
The warning file on top of the page can be used for anything and can contain html.

So if you
1. unzip and plce this file in weather2/

2. change the setting for the "yellow maintenance box" from
$SITE['warningTxt']      = false;            // probably  false
$SITE['warnTxt']      = './warning.txt';
to
$SITE['warningTxt']      = true;
$SITE['warnTxt']      = './warning_banner.txt';

There should be a large box with a far too big picture, but you can take it as a starting point.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on September 19, 2014, 02:33:22 PM
Thank you my friend.  A true gentleman as always

Dennis
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on September 19, 2014, 05:08:58 PM
I got it pretty well the way I envisioned - http://rathdrumweather.us/weather2   \:D/

Thank You!
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on September 21, 2014, 11:25:32 AM
I have been adding new pages mostly in an iFrame - the problem I am having is that I would like the iFrame to be solid so that the background image does not mask what is in the frame. 
For instance my school closure page - http://rathdrumweather.us/weather2/index.php?p=401&wp=MB (http://rathdrumweather.us/weather2/index.php?p=401&wp=MB) is hard to read.  I could change the background but just want the frame easy to read.  Also if I use a solid color such as pastel the bottom half of the page is brown, I guess something in the CSS. 

Thanks - Dennis
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 21, 2014, 11:37:00 AM
I have been adding new pages mostly in an iFrame - the problem I am having is that I would like the iFrame to be solid so that the background image does not mask what is in the frame. 
For instance my school closure page - http://rathdrumweather.us/weather2/index.php?p=401&wp=MB (http://rathdrumweather.us/weather2/index.php?p=401&wp=MB) is hard to read.  I could change the background but just want the frame easy to read.  Also if I use a solid color such as pastel the bottom half of the page is brown, I guess something in the CSS. 

Thanks - Dennis
Hello Denis,
No CSS but a missing </div>
You can see also that the footer is located under the main part of the page NEXT to the side-area with the menu. It should be below the side-area.

There is a wsNewPage.php in the weather2/inc/ folder you could use as a starting point and it is in the menu system at:
http://rathdrumweather.us/weather2/index.php?p=900&wp=MB
You could use that script as a starting point (after making a copy).

As I can not inspect your script (it is PHP) could you please send me a zipped version?

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on September 21, 2014, 11:44:53 AM
Thanks Wim - the new page template is what I am using.  I will send you the script. 

Dennis
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 21, 2014, 11:51:27 AM
Thanks Wim - the new page template is what I am using.  I will send you the script. 

Dennis
For the next pages you are developing, use this 2.6 version of wsNewPage.php
Then I can look into the php code also.
Wim

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on September 21, 2014, 11:54:48 AM
Will do - thanks  =D&gt;
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on September 21, 2014, 12:30:26 PM
Wim,
I don't know if you can or not,  but Ken True has a few lines so a script can be Viewed by anyone using the "?sce=view" on each page. I'll look it up and forward it to you
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on September 21, 2014, 01:03:38 PM
Wim,
I don't know if you can or not,  but Ken True has a few lines so a script can be Viewed by anyone using the "?sce=view" on each page. I'll look it up and forward it to you
Thanks, but nearly all scripts in v2.6 have those lines. Only the settings /key files are excluded.  I need it to give better support. Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on October 02, 2014, 11:24:51 AM
I have the template working pretty well to my satisfaction.  Only issue is with the Local Radar under Precipitation Radars - WU Radar Station OTX always shows Radar Down for Maintenance.
I know that KOTX (OTX) is working as I also use  GRLevel3

http://rathdrumweather.us/weather2

Dennis
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 02, 2014, 03:10:07 PM
I have the template working pretty well to my satisfaction.  Only issue is with the Local Radar under Precipitation Radars - WU Radar Station OTX always shows Radar Down for Maintenance.
I know that KOTX (OTX) is working as I also use  GRLevel3

http://rathdrumweather.us/weather2

Dennis
In general: go to http://www.wunderground.com/weather-radar/united-states/ (http://www.wunderground.com/weather-radar/united-states/) and try to find your area. Right-click on the correct radar image and open the image in a new tab. You can then copy the string for that radar to the script.  As there are different sources for the radars there are also different strings.

I did find the string for OTX and put it in the script.
1. make a copy of weather2/inc/rain3Sources.php
2. unzip the attachment
3. replace the current script with the new one
4. check the settings in the script for the first radar.

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on October 02, 2014, 03:11:34 PM
Thanks once again Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PeT on October 10, 2014, 03:53:08 AM
I am trying to use config program for meteohub mhConfig.php but I get Internal Server Error (http://saajuu.net/weather2/). What could be the reason?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 10, 2014, 04:12:25 AM
I am trying to use config program for meteohub mhConfig.php but I get Internal Server Error (http://saajuu.net/weather2/). What could be the reason?
500 Internal Server Error  => google => lot of possibillities.
But the permissins settings are always the cause.

Some webhosting companies NEED 777  some other do NOT ALLOW 777.

So try 755 for the folder and it contents.
If still the error: try 755 for the folder and 644 for the contents.

===
http://saajuu.net/weather2/startHere.php  works OK so it is not a general problem.
===
The gauges folder is missing (or not the correct permission) an essential javascript.
Therefor the header is not containing the gauges.
Referenced in weather2/gauges/gaugeframe.php
<script src="./scripts/ddimgtooltip.min.js"></script>
It should be in the download. So maybe an upload error when installing?

Succes, Wim

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: PeT on October 15, 2014, 08:02:03 AM
New  installation / 755 for the folder and 644 for the contents and now it is working.

Now I am trying to use WMR200/Meteohub/Rasbperry. I do not understand why the weather station is offline. UploadMH / client.. files are updated and there is also meteohub-upload.test file.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 15, 2014, 08:19:34 AM
New  installation / 755 for the folder and 644 for the contents and now it is working.

Now I am trying to use WMR200/Meteohub/Rasbperry. I do not understand why the weather station is offline.
This message simply means as with all gauges that the realtime data is not current.
Consult the WikI http://wiki.leuven-template.eu/doku.php?id=uploadmh (http://wiki.leuven-template.eu/doku.php?id=uploadmh) where is written that the file realtimeTags.txt is used for the gauges.
But http://saajuu.net/weather2/uploadMH/realtimeTags.txt (http://saajuu.net/weather2/uploadMH/realtimeTags.txt) is the original one with date/time form 22 september.
Quote
UploadMH / client.. files are updated and there is also meteohub-upload.test file.
It seems  indeed you are uploading clientraw files for use with WD-Live http://saajuu.net/weather2/uploadMH/clientraw.txt (http://saajuu.net/weather2/uploadMH/clientraw.txt)  but they  look a little empty to me. And you do not have WD-live enabled so I can not test it.

Your status page http://saajuu.net/weather2/index.php?p=83&lang=en (http://saajuu.net/weather2/index.php?p=83&lang=en)  shows all data files in http://saajuu.net/weather2/uploadMH are not yet uploaded. Only the files from the download are there.

Did you already instructed Meteohub to upload the neede file by following the WiKi ?
http://wiki.leuven-template.eu/doku.php?id=uploadmh4

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on October 22, 2014, 11:35:44 PM
Wim,


I have been trying to add a badge to the menu showing updated pages and new pages.
The "New" or "Update" badges would look like the attached menu image from another site.
I have adjusted the wsMenuData.xml file to the following:



   <item    nr      = "52-1"
                show    = "wuPage"
                caption = "WU forecast"
           link    = "wuforecast/startLeuven.php"
           css     = "wuforecast/wuforecast.css"
           img="/img/update_icon.gif" align="right"
        />


I attempted to use   
Code: [Select]
img src="/img/update_icon.gif" align="right" and ended up with errors.
I am intending to use the same image on the main dropdown to show that there is an updated page within that dropdown.


Can you point me in the right direction to show the badges? I'm missing something and not sure what it is.  ](*,)


Regards,


Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on October 23, 2014, 04:54:32 AM
Wim,


I have been trying to add a badge to the menu showing updated pages and new pages.
The "New" or "Update" badges would look like the attached menu image from another site.
I have adjusted the wsMenuData.xml file to the following:



   <item    nr      = "52-1"
                show    = "wuPage"
                caption = "WU forecast"
           link    = "wuforecast/startLeuven.php"
           css     = "wuforecast/wuforecast.css"
           img="/img/update_icon.gif" align="right"
        />


I attempted to use   
Code: [Select]
img src="/img/update_icon.gif" align="right" and ended up with errors.
I am intending to use the same image on the main dropdown to show that there is an updated page within that dropdown.


Can you point me in the right direction to show the badges? I'm missing something and not sure what it is.  ](*,)


Regards,


Jonny J
Good morning Jonny J,

This is a totally new request, for me at least. There was no code for this in the current scripts.

Attached the folder with:
2 images, they go to weather2/img/ folder (in your case the quadcities/img/ folder)
2 replacements for the menu CSS, probably you have to reload the page to reload the css
1 replacement script:   weather2/wsMenuLoad.php
1 example for changes to the menu xml.
 
Please make a backup of the CSS and script before uploading the new ones.

In your changes above there are two xml entries. The image name and the alignment.
I implemented for now only the img part. The image is always at the right of the menu name.

You can specify two "shorthand" image-specifications, these use default images:
  img  = "new"
or
  img  = "updated"

You can also use your own image by setting the full path to an image, relative to the weather2/ folder
  img  = "img/menu_updated.gif"

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on October 23, 2014, 05:38:46 AM
Wim,
I very much appreciate the hard work. I was not expecting results already, let alone re-working the files. I wasn't expecting them to be as complex. I was hoping it was alot simpler. As usual you come through!
Thanks for your hard work!
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on October 23, 2014, 07:10:47 PM
Wim,
I put the gif images in the /img folder. The files come back with a 404 (not found) error. If I go and open the images individually via the website, the images appear. But on the menu they are missing with a spot showing where the icon is.
I have adjusted the permissions, with no change. I went into the wsMenuLoad.php file and made sure the link was OK, then followed the xml file you included. The images still don't appear.
I used the 'inspect element' in Google Chrome  and the gif images show as html files, not gif images.


Update: I got the images working. I went into the wsMenuLoad.php and changed the following:


Code: [Select]
if (isset($menuItem['img']) ){
        $img    = trim((string) $menuItem['img']);
        if ($img  == "updated") {$img= 'img/menu_updated.gif';}
        elseif ($img  == "new") {$img= 'img/menu_new.gif;}
        $img = ' <img src ="'.$img.'" alt ="">';

to:


Code: [Select]
if (isset($menuItem['img']) ){
        $img    = trim((string) $menuItem['img']);
        if ($img  == "updated") {$img= "img/menu_updated.gif";}
        elseif ($img  == "new") {$img= "img/menu_new.gif";}
        $img = ' <img src ="'.$img.'" align="right">';


Note the images now quoted. Now they are working. I also added "align = right" in. that way the images come up on the right side of the links.
Thanks again for setting this up. Much appreciated.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on November 07, 2014, 07:53:36 PM
Wim,
This evening I got this error which has shut down the site:
Quote
Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Space required after the Public Identifier in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

Warning: SimpleXMLElement::__construct(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

Warning: SimpleXMLElement::__construct(): ^ in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : SystemLiteral " or ' expected in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

Warning: SimpleXMLElement::__construct(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

Warning: SimpleXMLElement::__construct(): ^ in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

Warning: SimpleXMLElement::__construct(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

Warning: SimpleXMLElement::__construct(): ^ in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/shermqdj/public_html/weather3/wsMetarXml.php:87 Stack trace: #0 /home/shermqdj/public_html/weather3/wsMetarXml.php(87): SimpleXMLElement->__construct('<!DOCTYPE HTML ...') #1 /home/shermqdj/public_html/weather3/wsDataGet.php(147): include_once('/home/shermqdj/...') #2 /home/shermqdj/public_html/weather3/index.php(258): include_once('/home/shermqdj/...') #3 {main} thrown in /home/shermqdj/public_html/weather3/wsMetarXml.php on line 87

I'm not sure what is wrong.  Never got this before and didn't change anything.
Tom

EDIT:
I did find this:
Quote
Experimental ADDS is Down for Maintenance
Friday, Nov. 7th 3:00 pm MST
to
Monday, Nov. 10th 12:00 pm MST

Is there a way to get my site back running?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on November 07, 2014, 08:09:32 PM
I am seeing the same error on my site.  http://rathdrumweather .us/weather2 (http://rathdrumweather .us/weather2)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on November 07, 2014, 09:05:32 PM
I'm getting the same error. It's the Metarxml.php causing the error.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on November 07, 2014, 09:06:08 PM
Showing the URI is missing
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ed2kayak on November 07, 2014, 09:55:27 PM
I commented out the lines that had errors, as a temporary fix.
Make a backup of file first, just try one change to see how it goes.


weatherbee- yes ADDS is down for maintenance. I think there is a back server, http://aviationweather.gov/dataserver. Will wait for Wim to check
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on November 07, 2014, 10:04:56 PM
Kind of hard when you have a page that looks like this image I have attached
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on November 07, 2014, 10:22:44 PM
For now comment out line 87 and the site will work again.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on November 07, 2014, 10:52:53 PM
For now comment out line 87 and the site will work again.

I had to comment out lines 94 through 101 to get working again
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 08, 2014, 02:12:44 AM
For now comment out line 87 and the site will work again.

I had to comment out lines 94 through 101 to get working again

It is early morning here, sorry for the other parts of the world. No time to read all these post yet also.

Cause of the problems:
The metar data server seems not operational, no time yet to check.

Solution:
Change the source for the current conditions:  => Go to weather2/wsSettings.php

Scan for lines
Code: [Select]
#---------------------------------------------------------------------------
# from which source do we get the current conditions. Select one, comment out the other
#------------------------------------------------------------------------- #####
#$SITE['curCondFrom'] = 'wd'; // if you are using WeatherDisplay AND have set WD correctly
$SITE['curCondFrom'] = 'yahoo'; // if you use Yahoo also for the forecast on the startpage no other forecast
#$SITE['curCondFrom'] = 'metar'; // default, mostly best choice

If you are already using WD or Yahoo you should be  OK

1. Remove the comment mark # on the first position from the line with Yahoo

2. Add on  line metar a #   on the first position.

3. Save and the website will probably running again

Although in a lot of cases with the wrong current conditions.

Check now the yahoo settings in, if nothing is there insert 973505  for now

$SITE['yaPlaceID']   = '973505';           // ##### 973505 = Leuven

On your leisure you have to find the correct place ID for your city
#   if you use yahoo to supply the current weather conditions you HAVE to set the other settings correctly
#   https://weather.yahoo.com find your city and copy the number, check for Leuven and you find 973505

===

Try to find another supplier of metar today.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 08, 2014, 04:45:27 AM
New metar source in attached script.
1. make a copy / backup of weather2/wsMetarXml.php
2. Unzip attached script
3. replace new with old on your webserver.

If you switched to yahoo you can now go back to metar if you prefer.

others:
All data is cached and so if the cache is valid you will still get the xml errors:
To get rid of the cached data use &force=metar to your website addres for ONE time only
www.yourwebsite.com/weather2/index.php?p=10&force=metar

===
  ](*,) My humble excuses for the errors.
The script failed so terrible because I did not correctly count the length of the 404 error message.
So next time when the metars are unavailable the "unknown metar error" will be displayed as current condition.

I will modify this script the coming days to switch between the two different sites when the first choice is unavailable.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on November 08, 2014, 06:40:32 AM
New metar source in attached script.
1. make a copy / backup of weather2/wsMetarXml.php
2. Unzip attached script
3. replace new with old on your webserver.

If you switched to yahoo you can now go back to metar if you prefer.

Wim,

Thanks for the quick fix. I know you will do your best to have an updated file soon.

The new problem I am seeing, (not sure about the others), is the NOAA Forecast script. When I go to either NOAA Forecast page, I get this error:

Warning: include(noaafct/startLeuven.php): failed to open stream: No such file or directory in /home2/lightn69/public_html/quadcities/index.php on line 328

Warning: include(noaafct/startLeuven.php): failed to open stream: No such file or directory in /home2/lightn69/public_html/quadcities/index.php on line 328

Warning: include(): Failed opening 'noaafct/startLeuven.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/lightn69/public_html/quadcities/index.php on line 328

I haven't removed anything. I am thinking the NWS has updated their forecasting parameters and have caused our info to change again. I am about to go to work. If you cannot get to it, I will further look into it later today.


NOTE:  The WU Forecast is unchanged. So I know for a fact it's not a permissions issue. the majority of my permissions are set at 755. This error came as the Metarxml.php file went bad.


Regards,

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 08, 2014, 07:21:15 AM

Thanks for the quick fix. I know you will do your best to have an updated file soon.
Sorry but he posted script is not a quick fix. It is fixed.  I will add extra functionality so in the futere an alternative  site will be checked also when the main site is not available.
Quote
The new problem I am seeing, (not sure about the others), is the NOAA Forecast script. When I go to either NOAA Forecast page, I get this error:

Warning: include(noaafct/startLeuven.php): failed to open stream: No such file or directory in /home2/lightn69/public_html/quadcities/index.php on line 328
. . . shortend   same messages   . . .
I haven't removed anything. I am thinking the NWS has updated their forecasting parameters and have caused our info to change again. I am about to go to work. If you cannot get to it, I will further look into it later today.
NOTE:  The WU Forecast is unchanged. So I know for a fact it's not a permissions issue. the majority of my permissions are set at 755. This error came as the Metarxml.php file went bad.
Regards,

Jonny J.
Every noaafct script i tested on other sites works.
http://www.weerstation-leuven.be/northam/index.php?p=50-1
and one can see the scripts also:
http://www.weerstation-leuven.be/northam/noaafct/startLeuven.php?sce=view

The message at your site says that  the noaafct script is not where it should be "No such file"
or
is inaccesible because of permissions.

At your site the folder itself is missing.
http://lightningweather.com/quadcities/noaafct/  => results in a 404 error so is not found

The contents can not be found then also:
http://lightningweather.com/quadcities/noaafct/noaa3.css
http://lightningweather.com/quadcities/noaafct/startLeuven.php?sce=view

Did you move or renamed a folder by accident?

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on November 08, 2014, 08:38:09 AM
Wim,
Thanks for the fix.  Everything is working fine.
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on November 08, 2014, 04:26:12 PM

The message at your site says that  the noaafct script is not where it should be "No such file"
or
is inaccesible because of permissions.

At your site the folder itself is missing.
http://lightningweather.com/quadcities/noaafct/  => results in a 404 error so is not found

The contents can not be found then also:
http://lightningweather.com/quadcities/noaafct/noaa3.css
http://lightningweather.com/quadcities/noaafct/startLeuven.php?sce=view

Did you move or renamed a folder by accident?

Wim

Wim,

Thank you. I didn't have any problems with the NOAA Forecast until last night.

I didn't have that file added to the server. I have it done now. Thank you for pointing me in that direction.

One thing I noticed on both the "One Page" and the Extensive Forecast pages, at the bottom of the actual forecast (above the credits for the script), I have the following message.

 Forecast from NOAA-NWS for 3%20Miles%20ESE%20Davenport%20IA

I looked through all of the files for that. I was unable to locate this line to make adjustments to it. Which file has this in it?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 09, 2014, 02:46:23 AM
. . . shortened . .
Wim,

 . .
One thing I noticed on both the "One Page" and the Extensive Forecast pages, at the bottom of the actual forecast (above the credits for the script), I have the following message.

 Forecast from NOAA-NWS for 3%20Miles%20ESE%20Davenport%20IA

I looked through all of the files for that. I was unable to locate this line to make adjustments to it. Which file has this in it?
3 Miles ESE Davenport IA - 41.54- -90.55.  NOAA uses only 2 decimals for lat/lon
This means that the settings for your weatherstation are   latitude: 41.54  longitude -90.55 which is 3 miles ESE of Davenport IA. And with these lat/lon settings the forecast is retrieved.

Sometimes people are using latitude longitude settings which are way off their real location, after they moved for example. Then the forecast is not valid, but it took some time in the past to find the reason for their "strange" forecasts.

So the location for the forecast data is at the bottom, just to check the data when it looks not valid for the location name at the top of the forecast which is Davenport, Iowa.

If you do not like that location description at the bottom, you can easilly move the location.  Just for this script you have to find the lat / lon 3 miles WNW of where you realy are.
You have to play a little bit with your latitude longitude.

Then you adapt the calling script weather2/noaafct/startLeuven.php lines 24-25 from
$myLatitude      = $SITE['latitude'];
$myLongitude      = $SITE['longitude'];
to
$myLatitude      = 'the new value';
$myLongitude      = 'and the new value here';


and then your forecast text is in the middle of Davenport.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on November 09, 2014, 10:11:15 AM
Wim - I have the same issue but I don't find the script - weather2/noaafct/startLeuven.php

http://rathdrumweather.us/weather2 (http://rathdrumweather.us/weather2)

Dennis
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on November 09, 2014, 12:13:06 PM
Wim - I have the same issue but I don't find the script - weather2/noaafct/startLeuven.php

http://rathdrumweather.us/weather2 (http://rathdrumweather.us/weather2)

Dennis


KK7X,

If you have started updating from 2.x to 2.6, you need to go back to the 2.6 downloaded folder to locate it. Make the necessary adjustments in the NOAAsettings folder before uploading.
I over looked it myself.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: KK7X on November 09, 2014, 12:30:36 PM
Thanks Wim  =D&gt;
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ed2kayak on November 16, 2014, 08:52:32 AM
Wim,

Two questions.

Best way to add a refresh button to the mobile page.

Second, I need to add translations for greenhouse.

From the wiki it says to we need the correct description so we add a language line to weather2/lang/wsLanguage-en-local.txt
langlookup|Pool|Today max temp|


I can't find Pool in the wsLanguage-en-local.txt  only wsLanguage-en.txt

Thanks

Ed
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 16, 2014, 09:06:29 AM
Wim,
Two questions.

Best way to add a refresh button to the mobile page.
I will think about that.
1. But which person is looking at his phone for a long time? The iPad users get the PC site as default, other tablet users can go to the iPad site when there tablet is big enough. And that choice is saved for a next visit.

So only the "small" phone users use the mobile site, I think.

2. On the mobile page: When clicking on the depressed button the displayed page is refreshed. Just try it with the contact page. Some text in one field, press contact again, and the screen is cleared.
Quote
Second, I need to add translations for greenhouse.

From the wiki it says to we need the correct description so we add a language line to weather2/lang/wsLanguage-en-local.txt
langlookup|Pool|Today max temp|


I can't find Pool in the wsLanguage-en-local.txt  only wsLanguage-en.txt
You should always ADD  additions and improvements  to your local language file. Therefore when there is a new release you will not loose your changes.

Quote
Thanks
Ed
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ed2kayak on November 16, 2014, 10:36:51 AM
Touching  current button on mobile page - does refresh data. No need for another button. I didn't notice that before.

I'll add translations local language file.

Thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 16, 2014, 11:27:24 AM
@all

Check updates
There are always updates in the download area so take some time to check:
http://leuven-template.eu/download.php?lang=en (http://leuven-template.eu/download.php?lang=en)

Extensions
There are also nice new pages which will be included in future releases
http://leuven-template.eu/wsTemplate_2_add-ons.zip
You can see them working at
http://www.wiri.be/weather2/?lang=en (http://www.wiri.be/weather2/?lang=en)
Third menu item "Demo extra pages"

Leuven pages on other websites
It is relative easy to use pages from the Leuven-template on other websites.
http://www.wiri.be/saratoga/?lang=en (http://www.wiri.be/saratoga/?lang=en)  => menu "Demo iFrame"
The soil-page and the Sun/moon almanac from the Leuven demo site are used here in an iframe.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 18, 2014, 10:28:40 AM
New "Issues / problems" page on Leuven Template support site.

Today the link to the "thunder" image in the sidearea failed for central-european users of the Leuven-template. Just to make those new links and other small adjustments  available faster in the future, I added an extra page on the support site.

All outstanding issues will be documented there including links to posts on the forums.

http://leuven-template.eu/problems.php?lang=en (http://leuven-template.eu/problems.php?lang=en)

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: MesquiteWx on November 20, 2014, 11:25:35 PM
Hello, so I have gotten around to tackling this project again. First time I tried I hosed something and it threw errors around like crazy. Scraped it and started over paying extra close details to the instructions. This time it installed correctly. Thinking back it may have been pulling a cached version of the incorrect file paths. Regardless it is working now but, I have one minor issue. It is a little hot, see the link to see what I am talking about.

http://www.mesquiteweather.net/wsWxsimSA/start.php

-Thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on November 21, 2014, 01:09:40 AM
Wim,

I have my Wunderground Almanac set up on WD to allow records from the official reporting station. I was wondering if you have come across anyone wanting to display official record highs/lows?  If so, do you have a link or know how I can go about setting one up?
My plan is to have a page for that with a notification on the home page that can be clicked on to access the records like we do with Weather Alerts. 
This would most likely be workable with Public Information Statements. Maybe I can figure out some way to put those together in a tab or something and have one page.  Any Idea's as to how to go about it?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 21, 2014, 03:04:53 AM
Hello, so I have gotten around to tackling this project again. First time I tried I hosed something and it threw errors around like crazy. Scraped it and started over paying extra close details to the instructions. This time it installed correctly. Thinking back it may have been pulling a cached version of the incorrect file paths. Regardless it is working now but, I have one minor issue. It is a little hot, see the link to see what I am talking about.

http://www.mesquiteweather.net/wsWxsimSA/start.php

-Thanks
The conversion of UOM (C <=> F and all other units) is automatic for lastret.txt / latest.csv as these files contains the unit used in the file.

plaintext.txt contains no hint to what units are used. So there is a setting for that  in wsWxsimSA/wsWxsimsettings.php line approx. 108-110
Code: [Select]
# uom  = unit of measurement = units for temp baro etc.
$uoms = array ('C', 'mm','km/h', 'hPa','cm','km'); // #####  IMPORTANT  #####
#$uoms = array ('F','in','mph','mb','in','mi');
if you remove the comment mark # on line 110 the imperial units will be used.

The icons are generated using the plaintext file, and according to the settings now, they are converted from C => F but they already are in F. They end up far to high.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 21, 2014, 03:17:35 AM
Wim,

I have my Wunderground Almanac set up on WD to allow records from the official reporting station. I was wondering if you have come across anyone wanting to display official record highs/lows?  If so, do you have a link or know how I can go about setting one up?
My plan is to have a page for that with a notification on the home page that can be clicked on to access the records like we do with Weather Alerts. 
This would most likely be workable with Public Information Statements. Maybe I can figure out some way to put those together in a tab or something and have one page.  Any Idea's as to how to go about it?
As always with those bl**dy foreigners, they do not understand what one is telling them.
Is this what you mean with "records": http://wxcalgary.com/weather2-6/index.php (http://wxcalgary.com/weather2-6/index.php)
The part below temperature?

That "record this day" and "normal" can come from EC data or from the WU almanac data. The EC data is free, the WU data needs the "free for now" api key. But those extremes are only available for temp. So I have no idea what you mean with "official record highs/lows?   -   page that can be clicked on to access the records like we do with Weather Alerts"

I am including that part around the thermometer for an upcoming maintenace release.
I am not aware of more data-extremes  available to all weather-programs.And I have to write general solutions which can be used by all weather-programs.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on November 21, 2014, 07:05:43 AM
Quote
As always with those bl**dy foreigners, they do not understand what one is telling them.Is this what you mean with "records": http://wxcalgary.com/weather2-6/index.php (http://wxcalgary.com/weather2-6/index.php)The part below temperature?


I was wondering if you would understand where I was going with this...my apologies for not clearly presenting this.
#-o
Yes, however, it would say "Official Record High (Low)" instead of "Station High (Low)". It could also be listed as a "Recently Issued Record Report", or "Recent Record Event". It would link to a separate page with the records officially from the NWS office.  I presume most "All" Weather Offices across the globe have Record Highs/Lows.

Having the "Station Record High (Low)" would link to the stations records for that particular date...(as long as there is atleast 2 years of data recorded).
I can see what I can come up with on my end as well.


I have included a couple of images from the NWS Quad Cities office here in Davenport, Iowa. The first is the landing page at www.weather.gov/dvn (http://weather.gov/dvn) (not sure if you will be able to get to this site or not).
:?
The second is the records page (Text only) from the NWS office in the Quad Cities. Anyone can get to this page by clicking on the "Record Event" link on the main page.


Again, I can see what I can do from my end at making a page that links to the Text Data from the NWS Office, without leaving my/our sites. This way everyone can access this information right from their local weather office when there is an official record and be able to share it with their viewers.
:idea:
Quote
That "record this day" and "normal" can come from EC data or from the WU almanac data. The EC data is free, the WU data needs the "free for now" api key. But those extremes are only available for temp. So I have no idea what you mean with "official record highs/lows?   -   page that can be clicked on to access the records like we do with Weather Alerts"



With the WU Almanac on WD grabbing the info already, an API Key should not be needed.

If I'm also thinking correctly, it's also possible to design this like Curly's alerts script and have the official records be automatic. May have to run a cron job to work it, but I think it's do-able. :!: 

Quote
I am including that part around the thermometer for an upcoming maintenace release.I am not aware of more data-extremes  available to all weather-programs.And I have to write general solutions which can be used by all weather-programs.



I like the way the page looks. It gives it some extra color and makes it look more authentic.
=D&gt; Looks good! Can't wait for the update! I would be willing to be a US Beta Tester for you if you need one. \:D/


Regards,


Jonny J.
8)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: MesquiteWx on November 21, 2014, 06:15:56 PM
Hello, so I have gotten around to tackling this project again. First time I tried I hosed something and it threw errors around like crazy. Scraped it and started over paying extra close details to the instructions. This time it installed correctly. Thinking back it may have been pulling a cached version of the incorrect file paths. Regardless it is working now but, I have one minor issue. It is a little hot, see the link to see what I am talking about.

http://www.mesquiteweather.net/wsWxsimSA/start.php

-Thanks
The conversion of UOM (C <=> F and all other units) is automatic for lastret.txt / latest.csv as these files contains the unit used in the file.

plaintext.txt contains no hint to what units are used. So there is a setting for that  in wsWxsimSA/wsWxsimsettings.php line approx. 108-110
Code: [Select]
# uom  = unit of measurement = units for temp baro etc.
$uoms = array ('C', 'mm','km/h', 'hPa','cm','km'); // #####  IMPORTANT  #####
#$uoms = array ('F','in','mph','mb','in','mi');
if you remove the comment mark # on line 110 the imperial units will be used.


Ah perfect! That is exactly what I was looking for. I knew there had to be a setting somewhere I was over looking and there was. Just wasn't looking in the right place and far enough down. So now I got it running. http://www.mesquiteweather.net/wsWxsimSA/start.php I have not started to put it in my template. http://www.mesquiteweather.net/wxsimforecast.php and I have a couple of small minor issues that need tweaking.

First is where do I set the width of the graph? It is perfect on the start.php but when I put it in the template it isn't wide enough.

Second, it doesn't appear it rendering the CSS completely as there may be some conflicts in classes. Is that normal or is there something I am overlooking?

Lastly, is it possible to output the time in 12hr instead of 24hr time? Is there some code I can change or is this done in WxSim itself?

-Thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 22, 2014, 03:00:44 AM
Ah perfect! That is exactly what I was looking for. I knew there had to be a setting somewhere I was over looking and there was. Just wasn't looking in the right place and far enough down. So now I got it running. http://www.mesquiteweather.net/wsWxsimSA/start.php I have not started to put it in my template. http://www.mesquiteweather.net/wxsimforecast.php and I have a couple of small minor issues that need tweaking.
The wxsimforecast.php can also be given another name wxsimforecast_test.php for the time being so that you can test it in the 'real" environment.
Quote
First is where do I set the width of the graph? It is perfect on the start.php but when I put it in the template it isn't wide enough.
As this is not a "plain' saratoga template with vertical menus, the calculation for the width of the graph is of by 105px.
Modify line 102 in  wsWxsimSA/wsWxsimsettings.php which reads now
 $widthGraphs    = ($mainWidth - 5).'px;';
to
$widthGraphs    = ($mainWidth +100).'px;';
Quote
Second, it doesn't appear it rendering the CSS completelyas there may be some conflicts in classes. Is that normal or is there something I am overlooking?
I do not see it, where do i have to look at?
Quote
Lastly, is it possible to output the time in 12hr instead of 24hr time? Is there some code I can change or is this done in WxSim itself?
-Thanks
The wxsimforecast.php /  wxsimforecast_test.php script loads a start script as does the stand-alone version.
In that start script there are settings for:

$SITE['dateLongFormat']   = 'l d F Y';   // Thursday 3 january 2013
$SITE['hourOnlyFormat']   = 'H';  // Euro format 'H'  (hh=00..23);  us format 'h a'   05 pm   
change the time format to
$SITE['hourOnlyFormat']   = 'h a';
and the time will follow am/pm conventions

Succes, Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: MesquiteWx on November 22, 2014, 10:55:46 AM
Quote
Second, it doesn't appear it rendering the CSS completelyas there may be some conflicts in classes. Is that normal or is there something I am overlooking?
I do not see it, where do i have to look at?

Thanks! I was able to tweak those things with your help.

About the CSS. If you look at this page which is the standalone. http://www.mesquiteweather.net/wsWxsimSA/start.php

You'll notice it uses the CSS for the script. Once I include it in my page though if you look at the link above compared to this link in my template it is completely different. I.E. the tabs for one and also the footer is broken. The grey at the bottom isn't suppose to look like that. If you look at another page you'll see what I am referring too but, mostly it doesn't following the CSS included with the script. It is inheriting the overall templates CSS which is strange if they don't use the same classes. http://www.mesquiteweather.net/wxsimforecast.php

I got the time changed from 24hr to 12hr. It works on the 3hr and 48hr now fine. On the graph though it is still in 24hr time. Is there someplace else I would need to edit to change it to 12hr time in the graphs?

-Thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 22, 2014, 11:03:01 AM
. . . shortened  . .
About the CSS. If you look at this page which is the standalone. http://www.mesquiteweather.net/wsWxsimSA/start.php

You'll notice it uses the CSS for the script. Once I include it in my page though if you look at the link above compared to this link in my template it is completely different.
. . . shortened . .
-Thanks
The start.php uses the setting on line 7
$colorClass            = 'pastel';      // pastel green blue beige orange
The startSaratoga.php has on line 7
$colorClass            = 'beige';

Does that explains it?
Or are there more differences,

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: MesquiteWx on November 22, 2014, 11:25:58 AM
. . . shortened  . .
About the CSS. If you look at this page which is the standalone. http://www.mesquiteweather.net/wsWxsimSA/start.php

You'll notice it uses the CSS for the script. Once I include it in my page though if you look at the link above compared to this link in my template it is completely different.
. . . shortened . .
-Thanks
The start.php uses the setting on line 7
$colorClass            = 'pastel';      // pastel green blue beige orange
The startSaratoga.php has on line 7
$colorClass            = 'beige';

Does that explains it?
Or are there more differences,

Wim

Not exactly, I see where that is set for which color class to use. The problem is it is not using the color class when I put it in my template.

This http://www.mesquiteweather.net/wsWxsimSA/start.php

Does not look like this http://www.mesquiteweather.net/wxsimforecast.php

If you look closely at the two pages. You see the forecasts have a blue background and the tabs are blue. When it is in my template the tabs are not colored and the forecast backgrounds are grey. It is inheriting the template CSS and not the script CSS even though this is in the head of the wxsimforecast.php page as included which should pull the CSS that is included in the script.

Code: [Select]
<link rel="stylesheet" type="text/css" href="styleWsWxsim.css" media="screen" title="screen" />
<script type="text/javascript">
var docready=[],$=function(){return{ready:function(fn){docready.push(fn)}}};
</script>

Hope that makes more sense.

-Thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 22, 2014, 11:57:49 AM
. . . shortened . . .
You'll notice it uses the CSS for the script. Once I include it in my page though if you look at the link above compared to this link in my template it is completely different. I.E. the tabs for one and also the footer is broken. The grey at the bottom isn't suppose to look like that. If you look at another page you'll see what I am referring too but, mostly it doesn't following the CSS included with the script. It is inheriting the overall templates CSS which is strange if they don't use the same classes. http://www.mesquiteweather.net/wxsimforecast.php

I got the time changed from 24hr to 12hr. It works on the 3hr and 48hr now fine. On the graph though it is still in 24hr time. Is there someplace else I would need to edit to change it to 12hr time in the graphs?

-Thanks
The stand-alone page has ONE css
Code: [Select]
<link rel="stylesheet" type="text/css" href="styleWsWxsim.css" media="screen" title="screen" />
and is using the " blue" part as they generate their own body tags and so on.

Your integrated template run uses as last CSS exactly the same stylesheet.
Code: [Select]
<!-- end of top -->
<link rel="stylesheet" type="text/css" href="styleWsWxsim.css" media="screen" title="screen" />
as last stylesheet after menu.
That should generate an error as it should be  href="wsWxsimSA/styleWsWxsim.css" but i see you copied that stylesheet to the root.

All non-wxsim settings come from yourown CSS- specifications.
Both the stand-alone and your integrated script use the settings from the wxsim css for the wxsim specifics, tabs a.s.o..

Again, I test
stand-alone => http://www.weerstation-leuven.be/wsWxsimSA/start.php?lang=en => OK
Setting for background colors and so on from the stylesheet.
Works exactly the same at your place.

Saratoga => http://www.wiri.be/saratoga/wxsimforecast.php => OK
Settings from the stylesheet and the saratoga stylesheet.

and also in the Leuven-Template => OK

But i can not look into your environment as it is not one of those three.  So if the stylsheet results  are not what you expect, please check the small styleWsWxsim.css. All other settings come from the other stylesheets.

===

I will check the  scripts tomorrow if and how the times below the graphs can be  changed.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: MesquiteWx on November 22, 2014, 12:22:23 PM
Again, I test
stand-alone => http://www.weerstation-leuven.be/wsWxsimSA/start.php?lang=en => OK
Setting for background colors and so on from the stylesheet.
Works exactly the same at your place.

Saratoga => http://www.wiri.be/saratoga/wxsimforecast.php => OK
Settings from the stylesheet and the saratoga stylesheet.

Look at the tabs above the forecast and graphs on the two links you posted above and on the two I posted. You'll notice the tabs are completely different. It is not using the tab class in the script stylesheet. For some reason the template stylesheet is overriding it. It does it on your two links and on mine as well.

I got the forecast background sorted. When you insert it into a template it won't inherit the color classes from the script as it doesn't know which color class to use. When you use it in standalone it does but not in a template. I.E.

When you put it in a template. The script isn't going to know to use this class.

Code: [Select]
.blue  {color:  black; background-color: #F1F8FE;}
.blue li.tabberactive a {background-color: #B7D0E8;}
.blue .table-top {background-color: #96C6F5;}
.blue .row-dark {background-color: #B7D0E8;}

When it is stand-alone it does. So if you want blue you will have to edit the script CSS and edit.

Code: [Select]
.row-dark {
background-color: #B7D0E8;
}

With the associated row dark from the color class choices.

I think the alternative way around this would be to have separate style sheets for templates versus a global one.

-Thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on November 22, 2014, 12:38:32 PM
I use the script myself in a standard Saratoga template.
http://www.wiri.be/saratoga/wxsimforecast.php
That one is using 
Code: [Select]
<link rel="stylesheet" type="text/css" href="weather-screen-blue-narrow.css" media="screen" title="screen" /> in the header part. All standard Saratoga.
The script inserts the wxsim.css
Code: [Select]
<link rel="stylesheet" type="text/css" href="wsWxsimSA/styleWsWxsim.css" media="screen" title="screen" />
after the top part.
You can check the css files in the html of the page.

This wxsim script as used is attached. Identical as to the download.

When I change the Saratoga template to green just now,  the wxsim adapts automatically to that.

So it works as it should at Leuven - Saratoga and stand-alone.
I can not see the php you are using so i can not be of much assistance with this.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: MesquiteWx on November 22, 2014, 01:01:27 PM
Let me see if I can explain this a little better. Referring to the screenshots. Look at the red boxes. The tabs and the forecast background are not selecting from the scripts CSS when in a template regardless what is in the head of the wxsimforecast.php. I have it linking to the included scripts CSS in the head of the scripts CSS and it is overriden by the templates CSS.

Standalone

(http://imagizer.imageshack.us/v2/640x480q90/540/Zld1Y9.png) (https://imageshack.com/i/f0Zld1Y9p)

Saratoga Template - These should be green tabs with bold black text and the forecast background should be green as it shows in the standalone.

(http://imagizer.imageshack.us/v2/640x480q90/673/99IjpX.png) (https://imageshack.com/i/ip99IjpXp)

As you can see, the forecast background doesn't not use the scripts CSS, also the tabs are not styled from the scripts CSS. It is being overrided by the templates CSS.

If you also notice, the forecast background is pulling a grey color when used in the template. In standalone it uses the color you set in the sets. The reason it doesn't use the correct color in the template is in the scripts CSS it has this.

Code: [Select]
.row-dark {
background-color: #B7D0E8;
}

That is overriding the color settings for the forecast background. Now you use green. If you go into your CSS and change the above Hex color to this #B1CBA0 then your forecast background will be the same as the standalone. Otherwise it will be grey because the script doesn't know which color scheme to use outside of the standalone page because it isn't dynamic. In turn the template CSS is overriding the tabs as well because it doesn't know which color scheme to use.

I hope that makes sense. Pay close attention to the tabs and forecast background which I posted above and look at the links closely.

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 01, 2014, 10:53:49 AM
As of today the Leuven-Template release 2.6e now fully supports

As these weatherprograms are not widely supported by templates of any kind, I trust this will benefit another group of weatherstation owners.

Wim

Support / download at: http://leuven-template.eu/index.php (http://leuven-template.eu/index.php)
WiKi at: http://wiki.leuven-template.eu/doku.php?id=start (http://wiki.leuven-template.eu/doku.php?id=start)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: txweather.org on December 01, 2014, 11:47:58 AM
Wim,

Awesome work thanks!
Any chance you will have an Air Quality page for EN (USA)?

Thanks!
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 02, 2014, 04:22:34 AM
Wim,

Awesome work thanks!
Any chance you will have an Air Quality page for EN (USA)?

Thanks!
I can only develop such a page if there is a source of data (xml or json) available.  And as I am not living over there my ideas where to find it, is nill.

Wim

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: txweather.org on December 02, 2014, 08:17:40 AM
Wim,

Thanks. I manage to migrate the current AQI page made for the sratoga template to your template.
http://www.txweather.org/index.php?p=05&lang=en#data-area

Still working some details but so far so good!

Thanks!
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 05, 2014, 09:05:22 AM
Wim,

Awesome work thanks!
Any chance you will have an Air Quality page for EN (USA)?

Thanks!
Demo of the Leuven-Template USA AQHI scripts:
On startpage as dashboard items: http://www.weerstation-leuven.be/northam/index.php?p=10
As separate page, menu "Regional Air Quality": http://www.weerstation-leuven.be/northam/index.php?p=15

Attached the first "beta' versions of the scripts.

As long as you live nearby a AQ forecast area (set the distance to 50 miles)  the textual data will be loaded based on the latitude / longitude of the weather station.

The   maps should be done in the old fashioned way: displaying them and copying the url to the script.
There will be maps based on the latitude - longitude but according to the airnow site it is still beta.

Please try these scripts and all comments are welcome.

Succes, Wim

edited 2014-12-06 to remove typo in readme.txt, new zip attached
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: txweather.org on December 05, 2014, 09:27:35 AM
Awesome work Wim!

Will test it tonight when I get off work.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: txweather.org on December 05, 2014, 10:06:41 AM
Wim,

All set here!

http://www.txweather.org/index.php?p=05&lang=en#data-area

Good job!
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on December 08, 2014, 10:10:45 PM
Somehow I created a problem with my WXSIM forecast.  On graphs it's ok and using the tabs 48 hour details and forecast by three hour interval the temps are fine but using the tab overview the temps are wrong. 
The page is here: http://www.shermanctweather.org
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 09, 2014, 02:46:18 AM
Somehow I created a problem with my WXSIM forecast.  On graphs it's ok and using the tabs 48 hour details and forecast by three hour interval the temps are fine but using the tab overview the temps are wrong. 
The page is here: http://www.shermanctweather.org
This morning the data with the Henkka 3in1 WXSIM scripts on pages
http://www.shermanctweather.org/weather3/index.php?p=12&lang=en
http://www.shermanctweather.org/weather3/index.php?p=55&lang=en
look OK to me.
===
But the problem you describe is caused with the Leuven-wxsim scripts when the settings for the plaintext.txt are incorrect. Probably they are still in metric.

Line 100 in   weather?/wsWxsim/wsWxsimsettings.php should be changed to contain the imperial units.
It is documented on the lines below.
The lastret.txt and latest.csv contain data about the units used. plaintext.txt does not.
The output units are automatically set.   The leuven-template switches the units displayed dynamically based on the visitors preferences. That is why these input unit settings should be set,  so the scripts know what to recalculate.


Wim




Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on December 09, 2014, 06:49:08 AM
Line 100 was set to
Code: [Select]
$uoms = array ('F', 'in','mph', 'inHg','in','mi'); // #####  IMPORTANT  #####
I only get the bad temps on the overview tab so for now I've taken it out.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 09, 2014, 06:51:24 AM
Line 100 was set to
Code: [Select]
$uoms = array ('F', 'in','mph', 'inHg','in','mi'); // #####  IMPORTANT  #####
I only get the bad temps on the overview tab so for now I've taken it out.
The overview tab is made form the plaintext.txt
The other tabs from either lastret.txt or latest.csv

Plaintext has no units in the file so it is incorrecrt because they are default set to metric
The other two files have the units in the file, that is why they are correct.

There is an separate chapter in the WiKi, just for wxsim:
http://wiki.leuven-template.eu/doku.php?id=wxsim (http://wiki.leuven-template.eu/doku.php?id=wxsim)

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on December 09, 2014, 07:33:55 AM
It seems to be working now but I'm not sure why.  Just started to work.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 09, 2014, 07:37:39 AM
It seems to be working now but I'm not sure why.  Just started to work.
There is always the waiting time for the cached data.
http://wiki.leuven-template.eu/doku.php?id=wxsim => big orange box
ATTENTION: All forecast-scripts from the Leuven-Template process the forecast data in two steps.
1. convert data to an intermediate" computer readable array => cache
2. read the cache and display the data for the visitor.

So when you change settings you either have to remove the cache file or wait for a fresh upload with wxsim or wait for the cached data to become to 'old' for the other forecasts.

Wim

 
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 09, 2014, 07:52:16 AM
Demo of the Leuven-Template USA AQHI scripts:
On startpage as dashboard items: http://www.weerstation-leuven.be/northam/index.php?p=10 (http://www.weerstation-leuven.be/northam/index.php?p=10)
As separate page, menu "Regional Air Quality": http://www.weerstation-leuven.be/northam/index.php?p=15 (http://www.weerstation-leuven.be/northam/index.php?p=15)

Attached the first "beta' versions of the scripts.

As long as you live nearby a AQ forecast area (set the distance to 50 miles)  the textual data will be loaded based on the latitude / longitude of the weather station.

The   maps should be done in the old fashioned way: displaying them and copying the url to the script.
There will be maps based on the latitude - longitude but according to the airnow site it is still beta.

Please try these scripts and all comments are welcome.

Succes, Wim

edited 2014-12-06 to remove typo in readme.txt, new zip attached

Another Successful script Wim, Excellent job!

Lightning Weather is now showing AQI and AQ Forecasts.

Thank You Sir!

Regards,

Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on December 09, 2014, 08:07:04 AM
Quote
you either have to remove the cache file or wait for a fresh upload with wxsim

That was the reason.  I ran a new forecast.  Thanks for the help. 

Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 18, 2014, 04:14:12 PM
Wim,
Maybe you can shed some light on this,  on the main (home) page the NWS forecast has an error in undefined variable 'echo' on line 101.
The forecast loads normally otherwise. Any suggestions or ideas?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 18, 2014, 04:33:26 PM
Wim,
Maybe you can shed some light on this,  on the main (home) page the NWS forecast has an error in undefined variable 'echo' on line 101.
The forecast loads normally otherwise. Any suggestions or ideas?
http://lightningweather.com/quadcities/noaafct/noaaSettings.php?sce=view
line 101 is in errror, I will investigate tomorrow as it is night-time for CET

Change the line 101 from:
$echo    .=  '<!-- module '.$string.' -->'.PHP_EOL;
by removing the . before the = to
$echo    =  '<!-- module '.$string.' -->'.PHP_EOL;

It is wise to run the production site with debug switched off.
Change  line 6 (approximitly) in  weather2/index.php from
$wsDebug      = true;      // ##### make comment after testing
by adding a # on the first position to
#$wsDebug      = true;      // ##### make comment after testing

See also
http://wiki.leuven-template.eu/doku.php?id=how_to_install7#set_debug_mode_off

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 18, 2014, 07:44:29 PM
http://lightningweather.com/quadcities/noaafct/noaaSettings.php?sce=view (http://lightningweather.com/quadcities/noaafct/noaaSettings.php?sce=view)
line 101 is in errror, I will investigate tomorrow as it is night-time for CET

Change the line 101 from:
$echo    .=  '<!-- module '.$string.' -->'.PHP_EOL;
by removing the . before the = to
$echo    =  '<!-- module '.$string.' -->'.PHP_EOL;



Wim,

I fixed line 101, Then noticed the "echo" was after the string. Note below...
if ($pageFile <> $pageName) {
   $string.= $pageFile .' loaded instead';
   
}
$echo = '<!-- module '.$string.' -->'.PHP_EOL;
#-------------------------------------------------------------------------------
#
I cut the echo and moved the } below the echo line...

if ($pageFile <> $pageName) {
   $string.= $pageFile .' loaded instead';
    $echo = '<!-- module '.$string.' -->'.PHP_EOL;
}
#-------------------------------------------------------------------------------
After I fixed that, I got another error on Line 177: Same thing...
#  Language array construct
$echo .= '<!-- Creating lang translate array -->'.PHP_EOL;
$ownTranslate   = true;
$wsnoaafctLOOKUP= array();            // array with FROM and TO languages
$missingTrans   = array();            // array with strings with missing translation requests
$myLangfile      = $wsnoaalang.'noaalanguage-'.$myLang.'.txt';

Took the '.' out of the string, then searched further to see if there were anymore...

Line 208...

      }  // eo is langlookup
   }  // eo for each lang record
   $echo .= '<!-- loaded: '.$loaded.' - skipped: '.$skipped.' - invalid: '.$invalid.' - used: '.$nLanglookup.' entries of file '.$myLangfile.' -->'.PHP_EOL;
} // eo file exist

I got all of them corrected and now the error is gone. Thanks for pointing me in the right direction.
I also wanted to advise you of the other lines that needed to be corrected.

Regards,

Jonny J.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 19, 2014, 02:41:50 AM
. . .shortened . . .
Wim,
. . .
I got all of them corrected and now the error is gone. Thanks for pointing me in the right direction.
I also wanted to advise you of the other lines that needed to be corrected.

Regards,

Jonny J.
Good morning,
You are running a mixed 2.6 and 2.5 version scripts website. So small things like this can happen.

The full 2.6 or full 2.5 version do not show this behavior, but you solved it for your site, good work.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on December 22, 2014, 09:35:17 PM
Hi Wim,

I am slowly re-adding pages to my site, but have a question regarding the menu. Is there a way to have pages that are listed on the wsMenuData.xml, but do not show on the menu be real pages via a link?  This would allow me to expand my site back to what I had prior to changing. Hope that makes sense.

Thanks,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 22, 2014, 09:44:36 PM
Hi Wim,

I am slowly re-adding pages to my site, but have a question regarding the menu. Is there a way to have pages that are listed on the wsMenuData.xml, but do not show on the menu be real pages via a link?  This would allow me to expand my site back to what I had prior to changing. Hope that makes sense.

Thanks,

John

What sections are you looking to link to John?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on December 23, 2014, 08:55:39 AM
Hi,

As an example, if you look at my SPC Day 1 (http://salineweather.com/weather2/index.php?p=104&lang=en#data-area) page, the links at the top of the page and the pics on the right side are real links, but I do not need these links to be shown in the menu.

Again I hope that makes sense.

Thanks for the help,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 23, 2014, 09:25:42 AM
Hi,

As an example, if you look at my SPC Day 1 (http://salineweather.com/weather2/index.php?p=104&lang=en#data-area) page, the links at the top of the page and the pics on the right side are real links, but I do not need these links to be shown in the menu.

Again I hope that makes sense.

Thanks for the help,

John
I try to rephrase:

1. You want to show pages as a normal page
=>http://salineweather.com/weather2/index.php?p=45&lang=en#data-area

2. without having a menu choice for that page

3. and it should be choosen when clicking on a link on another page?

===
Quote
Is there a way to have pages that are listed on the wsMenuData.xml

If so, why should they be in the wsMenuData.xml?

===
Already a few pages are using some solution to load multiple pages:
1. example a page with a menu in the top
http://www.weerstation-wilsele.be/index.php?p=99

2. a page with multipleparts behind a tab
http://www.weerstation-wilsele.be/index.php?p=14

3. or they use an extra fly-out level in the menu have a smaller menu.
http://weatherfrog80.bplaced.net/weather2/index.php
test menu "Monthly Weather Statistics"

===
So solution 1 would be to modify your page nr 104 to accept an extra get param in which you tell page 104 to load a different image.
In the menu => page 104
In page 104, when there is no &day=?  default load day 1 picture
If &day=? is specified first check if the day value is valid and then load the picture for that day.

When you add &type either the default pictre or something different is loaded.
I myself would place everything for 1 day after tabs so also preload the large text under "Discussion".

===
I hope this is what you want to accomplish, so let me know if you want something different or need some assistence,

Wim

 
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on December 23, 2014, 11:04:13 AM
Hi Wim,

My apologies for not making myself clear on what I am looking for. Here is an excellent example (http://salineweather.com/weather2/index.php?p=125&lang=en#data-area) of what I am wanting. This page shows all of the places where radiosondes are released twice a day in the U.S. and parts of Canada. Each dot on the map would be a page that when clicked on, would open the corresponding sounding page, BUT they are not listed in the menu. Currently there aren't any pages I have made up yet.

I am attaching my old menu file so that maybe it would help. None of the dots/page links are listed in the menu, yet are real pages.

Thanks for the help,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 23, 2014, 12:12:59 PM
Hi Wim,

My apologies for not making myself clear on what I am looking for. Here is an excellent example (http://salineweather.com/weather2/index.php?p=125&lang=en#data-area) of what I am wanting. This page shows all of the places where radiosondes are released twice a day in the U.S. and parts of Canada. Each dot on the map would be a page that when clicked on, would open the corresponding sounding page, BUT they are not listed in the menu. Currently there aren't any pages I have made up yet.

I am attaching my old menu file so that maybe it would help. None of the dots/page links are listed in the menu, yet are real pages.

Thanks for the help,

John
It is clear what you want, but I think translation problem Saratoga <=> Leuven.

Leuven style: http://salineweather.com/weather2/index.php?p=125 
=> displays a map with "links"
When I click on "cylw" you now execute a link in the code which reads
Saratoga style: href="http://sacrey.info/soundings/wxcylw.php"

that should be something like
Leuven style: 'weather2/index.php?p=125&area=cylw  so same page to handle the soundings and the param added which action should be taken.

In the start of the script which handles the map (p=125) you should include a
Code: [Select]
if (isset ($_GET['area']) ) {    //  it is a demo so for now we forget  to check the value,
    switch $_GET['area']{   
        case 'cylw':
       // here we do something, read a file display it and so on
       break;
       case 'other1':
       // here we do something, read a file display it and so on
       break;
// and so on.

   }

}  // eo is set param
else {
//   current code to display the map
}
Probably all the cases are the same so a function or a array lookup would be more efficient, but I have no idea what you want to display. And as the old website is not available anymore, I can not look there either.

I have the source of the map part. So what I need now is one or two of those pages you displayed in the past. I can then make a first prototype for you to work on. It is evening here now, but if you mail / post the few extra examples, I can work on it in your night-time (tomorrow-morning for me).

I propose you make a folder in weather2/ to put into all sounding scripts and data files into. and not to use the weather2/inc folder for that.

Wim



Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on December 23, 2014, 02:13:23 PM
Hi Wim,

Attached is one of the old pages you are asking for. I also made a soundings directory under /weather2. Within that directory is an index.php file I copied from the /inc directory and a new wxlzk.php that is listed in the menubar. If you are able to make a prototype for this somewhat PHP illiterate individual to follow, you will have my profound thanks, Sir.

Also, I am in no hurry here, Wim, so please spend time with your family and friends during the Holiday season.

Thank you again for the help,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 24, 2014, 09:18:25 AM
Hi Wim,

Attached is one of the old pages you are asking for. I also made a soundings directory under /weather2. Within that directory is an index.php file I copied from the /inc directory and a new wxlzk.php that is listed in the menubar. If you are able to make a prototype for this somewhat PHP illiterate individual to follow, you will have my profound thanks, Sir.

Also, I am in no hurry here, Wim, so please spend time with your family and friends during the Holiday season.

Thank you again for the help,

John
Attached you will find a Leuven-template version of the soundings script.

Demo of the script at: http://www.weerstation-leuven.be/northam/index.php?p=125 (http://www.weerstation-leuven.be/northam/index.php?p=125)

I have no idea what the description/name is for all area's in the US. So I left that out. Need some help with that.
I want to use the list with area-code  versus area name also for the validity-checking  of an manualy entered area code on the browser address line. So that checking is not there yet.

Also not yet available: decent credits which I find necassary and the current "Images/Information courtesy of the SPC." is a little meager. Maybe you can write that as my-english is not sufficient for that.

I included the help info from the NOAA site as I had no access to your help script. I think users who will use this script should set the page width to at least 1100px.

Hope this is a nice christmas-script for the other NorthAmerican users of the template also,

@all happy christmas

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on December 24, 2014, 10:21:46 AM
Hi Wim,

Thank you very much, Sir. That is perfect!!!!  I sincerely hope you didn't stay up all night writing that. I will put this to good use, if not today, then in the next couple of days. A healthy donation will be made to the cause because of this.

I agree with you on the minimum width setting. Mine is set at 1100px.  The map I used is a copy of the one used at the College of DuPage (http://weather.cod.edu/analysis/). Their map was far easier to read than the one at the SPC (http://www.spc.noaa.gov/exper/soundings/), plus I could label the sites for identification.

On the help script, I had originally made the exact same thing like you have here, but I had downloaded all of the images and made my own pages.

On a credit write up, the basic information comes in from the various sites as a radiosonde sounding like this (http://climate.cod.edu/data/raob/KLZK/skewt/KLZK.skewt.20141224.12.gif). It is then processed through a program called NSHARP. This program was written and designed by Rich Thompson and John Hart at the SPC to help specifically analyze parameters of the atmosphere for the forecasting of severe weather. NSHARP processes the information and produces the images we see here.

Wim, I sincerely hope you and your family and friends have a Merry Christmas.

Sincerely,

John Sacrey
Benton, AR

Edit: Has been implemented. Only change was I made the background behind the images white.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 29, 2014, 10:50:43 PM
I agree with you on the minimum width setting. Mine is set at 1100px.  The map I used is a copy of the one used at the College of DuPage (http://weather.cod.edu/analysis/). Their map was far easier to read than the one at the SPC (http://www.spc.noaa.gov/exper/soundings/), plus I could label the sites for identification.

On the help script, I had originally made the exact same thing like you have here, but I had downloaded all of the images and made my own pages.

On a credit write up, the basic information comes in from the various sites as a radiosonde sounding like this (http://climate.cod.edu/data/raob/KLZK/skewt/KLZK.skewt.20141224.12.gif). It is then processed through a program called NSHARP. This program was written and designed by Rich Thompson and John Hart at the SPC to help specifically analyze parameters of the atmosphere for the forecasting of severe weather. NSHARP processes the information and produces the images we see here.

John,

I have been trying to work something like that into my site. You have it done.
Would you be willing to share the php files and how you set it up?

Regards,

Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 30, 2014, 02:34:17 AM
. . . shortened ...
John,

I have been trying to work something like that into my site. You have it done.
Would you be willing to share the php files and how you set it up?

Regards,

Jonny J
Can you please tell me : what is the problem with the script as attached to my post?
http://www.wxforum.net/index.php?topic=18819.msg237439#msg237439
It is fully operational at John's and other sites.

Implementation consist of
1. unzipping the script and
2. uploading to weather2/  or weather2/inc/
3. adding a menu entry to call the script.

The "package" consist of
1 script (is in the zip)
and
1  image which is loaded from John's site.

Possible improvements:
1. You could copy that image to your own site and modify line 93 in the script.
2. Check John's or Leuven site and if you see any improvement, use &sce=view and copy the script from the browser

There is realy not much more to tell or to do with this sounding script.
When there are no remarks for improving in the coming weeks/months the script will be included in the normal release.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 30, 2014, 02:38:11 AM
Wim,
My apologies for the misunderstanding, I was asking John if I could get the file for his SPC Page.
I intend to implement the soundings page too.

Regards,
Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 30, 2014, 02:59:08 AM
That would be p-104 through p-107. The severe pages.
I may also look at a few others he has I've been wanting to add/build
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 30, 2014, 03:02:25 AM
That would be p-104 through p-107. The severe pages.
I may also look at a few others he has I've been wanting to add/build
If there are others who want to use and if John agrees, I could make it a one page script?
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 30, 2014, 03:03:57 AM
I was thinking the same. Make it a tabbed page. That's why I was asking John's permission for the script
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on December 30, 2014, 08:25:48 AM
Hi Folks,

I certainly have no problem sharing. I'll attach those in a zip to a reply when I get home from work this evening. Please let me know what others you may want.  I'm still slowly adding pages to my site. One will be the SPC Storm Reporting script. I may have to get Wim to look at it and see what needs to be modified make it work correctly. The page that shows today's reports works fine, it is when you want to change the date, it errors out.

Another page will be the SPC's Annual Fatal Tornado page. That will be an <iframe> insertion.

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 30, 2014, 08:45:46 AM
Hi Folks,

I certainly have no problem sharing. I'll attach those in a zip to a reply when I get home from work this evening. Please let me know what others you may want.  I'm still slowly adding pages to my site. One will be the SPC Storm Reporting script. I may have to get Wim to look at it and see what needs to be modified make it work correctly. The page that shows today's reports works fine, it is when you want to change the date, it errors out.

Another page will be the SPC's Annual Fatal Tornado page. That will be an <iframe> insertion.

John

John,

First of all, the SPC Storm reports page looks good except the map appears too big for the area it's in. Try resizing the map image.

I was looking on your site, and saw actually, a bunch of pages that I've been fighting to get to work on mine.
- River levels, I'm right on the Mississippi River to your North in Davenport, IA. My script isn't working right (script comes back in 4 square images...wierd).
- the winter pages. I have been trying to get the road conditions page for ia511.org working as I was able to obtain the files from them. However they're all .xml files and no clear instructions.
The winter snow and freezing rain pages as well as the windchill and snow depth charts would also be helpful.

I'm off to work right now.  I'll PM u later on the others. That would be great if you can share those.
Much appreciated.

Regards,
Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on December 30, 2014, 10:07:22 AM
The SpaceWeather script has changed as NOAA has redone their website for that part.
There are multiple discussions and links. For the Leuven-Template the update is available sinde 2014-December-13 on the support/problems page at:  http://leuven-template.eu/problems.php?lang=en

But by reworking the script I decided to take some time to do a total rewrite of Mike Challis script.

So another update is in Beta as of today. The demo can be found at:
my own site: http://www.weerstation-wilsele.be/index.php?p=66
and at http://www.weerstation-leuven.be/weather2/index.php?p=66&lang=en

The page will now adapt itself to the wide of the page as can be seen by using   &ipad on the link:
http://www.weerstation-leuven.be/weather2/index.php?p=66&lang=en&ipad

The available area will be filled and resizing the width of the browser window will resize the contents also.
Clicking on an image will display a larger version of the image in the same window (in modern browsers).

If you want to test the script:  it is still "beta" so rename your current space folder before uploading the attached one.

All data and texts are in English, so there will be no translation support for other languages, yet.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on December 30, 2014, 10:10:08 AM
I'll give that a go tonight after work Wim. Much appreciated.

Regards,
Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on December 30, 2014, 07:31:09 PM
Hi Folks,

Attached is a .zip file with 14 files and 1 folder that contains 4 additional files. All of the SPC scripts are there, as is the riverpage, the 3 day snow and freezing rain scripts, the snowcover script, 2 rss scripts that were written by Ken True for getting the watch and mesoscale information from the SPC.

On the SPC report script, the map you currently see on my site is a brand new experimental one that just started at the SPC. The SPC.php script is the original script I was using. It is the one that will show today's reports, but if you try to change the date, it errors out. This is the script Wim or anyone else more knowledgeable in PHP than me can most likely solve to work correctly in the template.

On the 3 day snow and freezing rain scripts, these maps are produced 2 times a day. At 00UTC and 12UTC. I haven't made the 12UTC pages yet.

The folder containing the 4 .js scripts are used in the SPC script pages to display the UTC time. I copied that directly from the SPC when I originally created those pages.

JonnyJ,

On the Iowa road conditions page, I would use the static conditions page in an <iframe></iframe> for simplicity.  Just a thought.  I had done the same thing here, until the Highway Dept. removed it and made folks use the interactive Google map version they have now.

I hope I haven't forgotten anything, (most likely have, I bet). Anyone may use these to their hearts content. I offer them without any  warranty or guarantee they will work on your site.

I will help where I can.

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on January 02, 2015, 07:53:09 AM

I hope I haven't forgotten anything, (most likely have, I bet). Anyone may use these to their hearts content. I offer them without any  warranty or guarantee they will work on your site.


John,

I got the files in a folder labeled spc for the snow/severe pages. How did you get them to implement in your site?  These have no settings to flow with the site pages.
I am going to make some adjustments to see if I can get them to flow, Just wondering what you did.

Regards,

Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 02, 2015, 10:50:24 AM
Hi Folks,

Attached is a .zip file with 14 files and 1 folder that contains 4 additional files. All of the SPC scripts are there, as is the riverpage, the 3 day snow and freezing rain scripts, the snowcover script, 2 rss scripts that were written by Ken True for getting the watch and mesoscale information from the SPC.

. . .  shortened . . .

I hope I haven't forgotten anything, (most likely have, I bet). Anyone may use these to their hearts content. I offer them without any  warranty or guarantee they will work on your site.

I will help where I can.
John
No you did not forget anyything.  And I worked only on the SPC scripts. The other ones are for @jonnyj771

Demo: http://www.weerstation-leuven.be/northam/index.php?p=126
Menu: only 1 menu entry is needed as discussed before.-
Default:  First time the menu is choosen,  the day scripts are opened.
I thought these were the most interesting.
But that can be changed when you implement it.

Submenu: this time,  the selection for one of the scripts, is not implemented using tabs because that would load far to much unneeded information.
So this time there are buttons on top to switch to the other info items.

What data is available: Daily outlook + weather reports + public outlook + watches + mesoscale discussions
I did not include the SPC soundings (http://www.weerstation-leuven.be/northam/index.php?p=125) into the same submenu as this info are far more technical than the  5 in this post. For the soundings a separate main-menu-entry is a better implementation, I think.

Implementation:
1. unzip the attachement
2. Copy the ws_spc folder to the weather2/ (or whatever main) folder
3. Add the menu entry.

Warning: This is Beta stuff.
I am not confident that all links used in the original scripts point to the most recent data. And as I do not live in your area it is failry difficult to check.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on January 02, 2015, 11:12:55 AM
I'll take a look when I get home from work Wim. 
I was able to get the scripts implemented. I believe though, the Mesoscale Discussion and watch pages are giving faults due to no activity from the SPC. I'll have to look at another setting to put in for no activity,or see about making the links go dead and make them unlink. I'm going to also see about tabbing the snow/freezing rain pages so they are not clicked on linking to a blank page with errors.

Thanks for working on it. It's much appreciated.

Regards,
Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on January 02, 2015, 09:12:29 PM
Hi Wim,

Everything works just fine, Sir!!!!  Thank you for making this. I've gotta sit down and find my PHP book and read. Just gotta find which box its in.

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: mickopla on January 06, 2015, 06:10:14 PM
Anyone else having issues with the EWN forecasts page loading? It doesn't load my region just a list of countries and regions with no forecasts. Cheers

Mike

http://www.waterfordcityweather.com/weather2/index.php?p=13&lang=en
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 07, 2015, 02:16:36 AM
Anyone else having issues with the EWN forecasts page loading? It doesn't load my region just a list of countries and regions with no forecasts. Cheers

Mike

http://www.waterfordcityweather.com/weather2/index.php?p=13&lang=en
I think you solved this problem already? I tested using FF Chrome and Safari and the page was displayed correctly.
If the problem persist on your PC/Mac , it could be an old version in the browser cache. Clear the cache and test again,
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: mickopla on January 07, 2015, 10:39:52 AM
Anyone else having issues with the EWN forecasts page loading? It doesn't load my region just a list of countries and regions with no forecasts. Cheers

Mike

http://www.waterfordcityweather.com/weather2/index.php?p=13&lang=en
I think you solved this problem already? I tested using FF Chrome and Safari and the page was displayed correctly.
If the problem persist on your PC/Mac , it could be an old version in the browser cache. Clear the cache and test again,
Wim

Yes all seems ok again  :-)
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on January 08, 2015, 07:48:18 AM
Hi Wim,

When you get a chance, would you please look at my homepage? It seems to have lost its mind.  Everything worked correctly yesterday, and I haven't changed or uploaded a thing since yesterday, either.

Thanks,

John

P.S. - I would check it, but I'm at work.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 08, 2015, 08:25:52 AM
Hi Wim,

When you get a chance, would you please look at my homepage? It seems to have lost its mind.  Everything worked correctly yesterday, and I haven't changed or uploaded a thing since yesterday, either.

Thanks,

John

P.S. - I would check it, but I'm at work.
The error occurs while the feels like temp contains an invalid string. It is normaly one line, I put extra linebreaks to clarify things:
Code: [Select]
ajaxVars['ajaxheatcolorword']=
'
<span style="border: solid 1px; color: white; background-color: #806AF9;">
&nbsp;Real Freakin' Cold&nbsp;</span>
';

The ' in the string  &nbsp;Real Freakin' Cold&nbsp;  is used as is normal to end the value for the ajaxheatcolorword.
So the characters  Cold&nbsp;</span>  can not be executed and generate all kind of errors.

I do not know where these words come from. The weather2/wsFunctions.php script should generate these words or they could be translated using the language file. I scanned my files here at home but did not find thise words yet. They are also not in  your language files.

Running http://salineweather.com/weather2/index.php?p=61&wp=CU&lang=fr  remains the error => not in the language file.
Running: http://salineweather.com/weather2/index.php?p=61&wp=CU&wp=mh  returns Ok data as there are no low temps in that upload.

I checked your uploads, they contain no errors.

Conclusion => "Some :twisted: changed my scripts. Never trust   :evil:  :twisted: when it is very cold, they like the heat"

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on January 08, 2015, 08:33:01 AM
Hi Wim,

I now know what it is. I had changed the heat color wording to something I had on my prior website, not thinking about the language issues.  I'll take care of that when I get home.  ](*,) ](*,) ](*,)

Thank you for looking into it Sir,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 08, 2015, 08:38:19 AM
Hi Wim,

I now know what it is. I had changed the heat color wording to something I had on my prior website, not thinking about the language issues.  I'll take care of that when I get home.  ](*,) ](*,) ](*,)

Thank you for looking into it Sir,

John
You can change any wording you like to any other wording.
My_english can be corrected that way but also all other words and sentences.
NEVER change it in a script. you would loose your changes the moment you upgrade a script to a new release.
Use the language files for that. Use weather2/lang/wsLanguage-en-local.txt which you can copy to a new release.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ugo71 on January 29, 2015, 05:06:40 PM
Ciao Wim i installed your template with Wview software but i have a problem with the update date is wrong, it appears the date 01-01-1970 what can I do to solve the problem?
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 30, 2015, 03:36:41 AM
Ciao Vim i installed your template with Wview software but i have a problem with the update date is wrong, it appears the date 01-01-1970 what can I do to solve the problem?
First: my name is Wim  not the name of the product you clean toilets with.

1. I did sent you an email at 24 januari 2015 at your email address from your site as the contact page is not working.
2. I enclosed a new version of the script to cope with the date-format you are using which was at that moment new to  me.

Attached you find the zip agian,

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ugo71 on January 30, 2015, 05:11:24 PM
Then apologize for the name i had been unaware of the error. I replaced the file todaytagswview.php and i replaced the two lines in the file wssettingsweather.php but nothing has changed the date and always wrong.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: lignumaqua on January 30, 2015, 10:12:40 PM
Just wanted to say Hi. I'm a new user of your most excellent script and all is working very well.  Thanks for all the work you've put into this. :-)

I'm running two weather stations, a Vantage Pro2 connected through Meteohub, and an Ambient Weather IP station which runs via it's own IP hardware directly to WeatherUnderground, and then through some custom PHP of my own and back into Meteohub as a second station (primarily to provide Solar and UV data). The data on the website is a combination of data from the two stations. I also pipe the data into WeatherCat locally on my Mac.

Along with all the usual customizations, I added a new page showing the current data for the water level in a local lake. I thought this might be interesting. See here: http://www.lignumaqua.com/weather2/index.php?p=70&lang=en#data-area (http://www.lignumaqua.com/weather2/index.php?p=70&lang=en#data-area).
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on January 31, 2015, 03:07:29 PM
Then apologize for the name i had been unaware of the error. I replaced the file todaytagswview.php and i replaced the two lines in the file wssettingsweather.php but nothing has changed the date and always wrong.
The date format you are using is dd/mm/yy
You should set the line 393 in wsSettingsWeather.php from
Code: [Select]
        $SITE['tags_ymd']       = array (3,1,2);  // mm/ddy/yy - US styleto
Code: [Select]
        $SITE['tags_ymd']       = array (3,2,1);  // Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: ugo71 on January 31, 2015, 05:12:49 PM
Thanks Wim now all works well
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: tstorm on February 01, 2015, 08:09:27 AM
I have the nws-alerts setup using a cron job running every 5 minutes.  The cache files are getting updated as it should with currently 8 counties under a winter weather advisory.  When I look at the top of my web pages there's only 4 counties showing up.  I've looked at this on multiple computer and the same results.  I have even cleared the cache on my main computer.  Any ideas on what's going on?

http://www.harpersferry-weather.com/weather2/

Thanks,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on February 01, 2015, 08:14:42 AM
I have the nws-alerts setup using a cron job running every 5 minutes.  The cache files are getting updated as it should with currently 8 counties under a winter weather advisory.  When I look at the top of my web pages there's only 4 counties showing up.  I've looked at this on multiple computer and the same results.  I have even cleared the cache on my main computer.  Any ideas on what's going on?

http://www.harpersferry-weather.com/weather2/

Thanks,

John
You can check the latest output of nws-alerts at
http://www.harpersferry-weather.com/weather2/nws-alerts/alertlog/

There you see that the latest correct run was yesterday as that is the laterst log entry.
http://www.harpersferry-weather.com/weather2/nws-alerts/alertlog/NWSalertLog20150131.txt

So what is the contents of the cronjob?

Please post  the job / url

Thanks Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: tstorm on February 01, 2015, 08:30:37 AM
Attached is the cron job.  I'm using windows scheduler.You can see the cache files at http://www.harpersferry-weather.com/weather2/nws-alerts/cache/.  I made a copy of the 3 php files and named them .txt files
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on February 01, 2015, 08:47:47 AM
Attached is the cron job.  I'm using windows scheduler.You can see the cache files at http://www.harpersferry-weather.com/weather2/nws-alerts/cache/.
change the line wich reads
Code: [Select]
URL = "http://www.harpersferry-weather.com/weather2/nws-alerts/nws-alerts.php"to
Code: [Select]
URL = "http://www.harpersferry-weather.com/weather2/index.php?mu=1"
The template scripts can only be executed from within  the template environment.
In the nws config file the cache folder is set to ./cache/ by using the $SITE['cacheDir'] which translates as
./ or nothing =  same level in the folder struncture
cache/ = folder with the name cache

As long as the scripts are executed from weather2/ the correct cache folder weather2/cache/ is used.
All scripts executed FROM the weather2/ folder write AND read their cached- contents from weather2/cache/

If you execute a script such as weather2/nws-alerts/nws-alerts.php  the executing folder is not weather2/ but weather2/nws-alerts/
So the cache is used at weather2/nws-alerts/cache/ and all warnings are stored there.

When the template is run thereafter all scripts start at weather2/ to look for their data  and the old data in the weather2/cache/ folder is used.

You can try what happens by simply using this link which I advise for the cronjob:
 http://www.harpersferry-weather.com/weather2/index.php?mu=1 (http://www.harpersferry-weather.com/weather2/index.php?mu=1)
The ?mu=1 tells the scripts to load the warnings regardless of settings and the data will be stored in the correct cache and log folders.

I am just writing some docs, checking all scripts and writing an extra script to make life easier on this point.  But that will be for end-today or tomorrow.

Just change your cronjob and it should run.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: tstorm on February 01, 2015, 09:23:59 AM
Thanks Wim.  The change in the cron job worked.

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on February 09, 2015, 11:23:53 AM
Somehow I messed up my NOAA forecast page.  Not sure what I did but I can't figure it out.
http://www.shermanctweather.org/weather3/index.php?p=50-1&lang=en

Thanks,
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on February 09, 2015, 11:48:32 AM
Somehow I messed up my NOAA forecast page.  Not sure what I did but I can't figure it out.
http://www.shermanctweather.org/weather3/index.php?p=50-1&lang=en
Thanks,
Tom
The current URL to retrieve the noaa forecast data is:
http://forecast.weather.gov/MapClick.php?lat=41.58&lon=-73.47&FcstType=dwml
That one will not return any xml but redirects to a normal html forecast page.

Adding some extra numbers to the latitude longitude in the URL returns the expected xml
http://forecast.weather.gov/MapClick.php?lat=41.5847&lon=-73.4754&FcstType=dwml

So check your wsSettings.php for the correrct latitude longitude settings.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on February 09, 2015, 11:55:18 AM
Thanks Wim.  As usual you are right.  It is working now.

Thank you again.
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jonnyj771 on February 15, 2015, 03:16:18 AM
Wim,


Being that I live in a location where snow is a factor in our daily lives and I do keep record via WD, I was looking through the settings and a few other scripts to set the main page up to show how much snow has fallen (that I record via WD) in my area.  Is there a way to change the settings to show snow instead of the rain during this time of year?


I have not been as active in keeping this updated as I should. I will be going through over the next week or so and making sure all of my scripts are up to date.  I don't believe that would be a factor in the above question though.


On another note, WU has begun updating their Regional Radars to this setup where you can click on a radar site from the map.  I am looking myself into making this change and attempt to implement it into my page. You can see the link to the regional radar   here (http://www.wunderground.com/weather-radar/united-states-regional/ia/des-moines)
I hope the link works in your area; I cannot however comfirm that it will.

Regards,

Jonny J
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on February 15, 2015, 11:30:31 AM
Fourmilab site not operational

Links for earth - moon and day/night result in very long response times.

As a temporary solution comment the selection in wsStartPage.php
Code: [Select]
$dashboard[] = 'earth'; // fournilab's 24 earth day night picture
Example of a problem link:
http://www.fourmilab.ch/cgi-bin/Earth?img=learth.evif&amp;imgsize=320&amp;dynimg=y&amp;opt=-p&amp;lat=&amp;lon=&amp;alt=&amp;tle=&amp;date=0&amp;utc=&amp;jd=

It is alreadfy a few hours since the site was operational. If it persist I will adapt the almanc script also.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: kyomar on February 18, 2015, 04:42:29 AM
Hi, I am suddenly getting this error message:
Quote
Notice: Undefined index: forecast in /..../...../public_html/wsmetno3/metnoGenerateHtml.php on line 136
No valid input found. All data is in the past.
Notice: Undefined variable: tableIcons in /...../....../public_html/wsmetno3/weatherDay.php on line 121
.

There seems to be a problem with yrno. Has anybody noticed the same and what would be the solution?

Thanks a lot.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on February 18, 2015, 04:44:26 AM
Hi, I am suddenly getting this error message:
Quote
Notice: Undefined index: forecast in /..../...../public_html/wsmetno3/metnoGenerateHtml.php on line 136
No valid input found. All data is in the past.
Notice: Undefined variable: tableIcons in /...../....../public_html/wsmetno3/weatherDay.php on line 121
.

There seems to be a problem with yrno. Has anybody noticed the same and what would be the solution?

Thanks a lot.
It would certainly help if you supplied the URL of your site. Then we can take a look  and find out why that is happening.
Wim

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: kyomar on February 18, 2015, 05:09:16 AM
Thank you Wim for your fast reply - very appreciated. The link is: http://www.koyuki-hakuba.com/weather-hakuba.html. I have noticed that on your sample pages there are some errors as well. That's why I assumed it's a yrno/metno problem.
Thank you,
Markus
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on February 18, 2015, 05:25:52 AM
Thank you Wim for your fast reply - very appreciated. The link is: http://www.koyuki-hakuba.com/weather-hakuba.html.
This is the real URL/link to your script: http://www.koyuki-hakuba.com/wsmetno3/weatherDay.php?
It did not find the data last time, we have to wait until the cache gets too old.
Code: [Select]
Weatherforecast (./cache/metnoCreateArr-en-366982-1378619-ckmhmmhpa) cache times:
        cache time   = 2015-02-18T17:30:21+09:00 from unix time 1424248221
        current time = 2015-02-18T19:23:38+09:00 from unix time 1424255018
        difference   = 6797 (seconds)
        diff allowed = 7200 (seconds)
Weatherforecast is loaded from cache
Quote

I have noticed that on your sample pages there are some errors as well. That's why I assumed it's a yrno/metno problem.
Again, if you see an error please supply the URL of the page with the errors.
These are the METNO forecast pages and i do not see any errors.
http://www.weerstation-leuven.be/wsmetno3/demo.php?full&lang=en
Quote

Thank you,
Markus
I will try to find out what is happening.
The URL used to retrieve the information returns correct data for your place
http://api.met.no/weatherapi/locationforecast/1.9/?lat=36.6982&lon=137.8619

So maybe it was a temporary glitch in the MetNo database.

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on February 18, 2015, 05:44:45 AM
Thank you Wim for your fast reply - very appreciated. The link is: http://www.koyuki-hakuba.com/weather-hakuba.html. I have noticed that on your sample pages there are some errors as well. That's why I assumed it's a yrno/metno problem.
Thank you,
Markus
All seems well now, the cache expired and the data was retrieved correctly.

One explanation for this  empty forecast "happening" is  ?maybe? the following.:
You put two iframes on the same page http://www.koyuki-hakuba.com/weather-hakuba.html
http://www.koyuki-hakuba.com/wsmetno3/weatherDay.php?
and
http://www.koyuki-hakuba.com/wsmetno3/weatherGraph.php?
Both these iFrames execute the same script. They are executed at the same moment and find both that the data is old.
So the try both at the same moment to access the metno base with exactly the same request.
Maybe that messed thing up.

You can easily modfy one of your scripts to display both the icons and the grapph. Then there is only one call which will improve the response time of your page also.
EDIT:
Change line 39 in weatherGraph.php to display the icons also:
Code: [Select]
$iconGraph = true;
If you want the times to appear below the icons move lines 116-118
Code: [Select]
if ($times) {
        echo $wsUpdateTimes;
}
to below current line 125, so it will look this way:
Code: [Select]
if ($iconGraph) {
        $style  = 'style="'.$width.$styleborder.$margin.'"';
        echo '<div id="iconGraph" '.$style.'>';
                echo $tableIcons.PHP_EOL;
        echo '</div>';
}
if ($times) {
        echo $wsUpdateTimes;
}


Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: kyomar on February 18, 2015, 07:04:20 AM
Awesome, thank you so much Wim. I have changed everything as you described - I love this script! The other errors I found here: http://www.weerstation-leuven.be/wsMetNoSA/printDemo.php?lang=en (http://www.weerstation-leuven.be/wsMetNoSA/printDemo.php?lang=en).
Have a nice day,
Markus
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on February 18, 2015, 07:12:00 AM
Awesome, thank you so much Wim. I have changed everything as you described - I love this script! The other errors I found here: http://www.weerstation-leuven.be/wsMetNoSA/printDemo.php?lang=en
Have a nice day,
Markus
And the explanation lines are important on that page:
Quote
This is the previous version of the script, not good enough for version 1.9 of the YrNo / MetNo API
Please visit www.weerstation-leuven.be
tab "Leuven PHP scripts for use on your own website:" to find the recent versions of all scripts
The demo / download of the 1.9 version with a lot of improvements for the MetNo API can be found at:
www.weerstation-leuven.be/wsmetno3/demo.php

Explanations for errors you are encountering can be found at:
http://www.weather-watch.com/smf/index.php/topic,61546.msg489736.html "
There are (should be) no links to this page., only a user of the old version could have saved that URL. And for those users  I left that page as is, and included the explanations where to look for a new version.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: mickopla on March 05, 2015, 05:21:21 PM
Hi Wim

I have been running the script a few months now without errors but as of today i'm getting the following error
Parse error: syntax error, unexpected T_STRING in /var/www/vhosts/jackinsonphotography.com/waterfordcityweather.com/testtags2.php on line 414

I changed nothing so can't understand why i'm getting this error. My website address is www.waterfordcityweather.com/weather2/index.php. Can you help?

Mike
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on March 06, 2015, 12:33:52 PM
Hi Wim

I have been running the script a few months now without errors but as of today i'm getting the following error
Parse error: syntax error, unexpected T_STRING in /var/www/vhosts/jackinsonphotography.com/waterfordcityweather.com/testtags2.php on line 414

I changed nothing so can't understand why i'm getting this error. My website address is www.waterfordcityweather.com/weather2/index.php. Can you help?

Mike
I am abroad without decent internet until monday march 9.
Please post a copy of your testags2.php as testtags.php.txt

Probably there is an inavalid string online 414 inserted by a new? Version of WD.
Something has to be changed but I can only help if I can see your copy of testags.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: mickopla on March 06, 2015, 01:44:23 PM
Hi Wim

I did update to the latest beta version of WD so this must be the cause. Find attached a copy of my testtags.php file

Cheers

Mike
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on March 08, 2015, 08:47:00 AM
Hi Wim

I did update to the latest beta version of WD so this must be the cause. Find attached a copy of my testtags.php file

Cheers

Mike
http://www.weather-watch.com/smf/index.php/topic,62862.msg502257/topicseen.html#msg502257

Please check this post. The problem is the incorrect translation of some soil tags. Should be solved in the latest beta version. I will check this when i am home on monday.
Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: mickopla on March 08, 2015, 03:36:57 PM
thanks Wim

Updated to latest beta and the site is working again.

By the way could you add me to the list of users?

Cheers

Mick
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on March 08, 2015, 04:22:09 PM
thanks Wim

Updated to latest beta and the site is working again.

By the way could you add me to the list of users?

Cheers

Mick
Tomorrow I will be back home (missing some sleep) but I will be more than happy to add you to the list of users.

And I am glad the problem is solved.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on March 09, 2015, 07:36:35 AM
Hi Wim,

Hope you a good time abroad, Sir.  Have had an issue come up, and I have no idea why.  Please check here (http://salineweather.com/weather2/index.php?p=55&lang=en#data-area).  The only thing that changed was the on the weather computer side to daylight savings time, that's it.

Thanks,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: jmcmurry on March 09, 2015, 07:42:08 AM
John,

Did you remember to change WxSim to DST?

- Jim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on March 09, 2015, 07:55:40 AM
Hi Jim,

Yes, I did change those settings. I thought that was the issue, but this is like the 6th forecast that has been run with the DST boxes checked. That's what has me confused.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on March 09, 2015, 07:58:01 AM
Hi Wim,

Hope you a good time abroad, Sir.  Have had an issue come up, and I have no idea why.  Please check here (http://salineweather.com/weather2/index.php?p=55&lang=en#data-area).  The only thing that changed was the on the weather computer side to daylight savings time, that's it.

Thanks,

John
The csv file contains errors in the data fields, below the first part of a few lines.
Code: [Select]
Year ,Month ,Day ,Time ,WX Type 1 ,
 2015  , 3  , 9  , 22.417  ,DNS.OVCST  ,HEAVY RAIN ,
 2015  , 3  , 9  , 22.917  ,DNS.OVCST  ,HEAVY RAIN ,
 2015  , 3  , 10  , 23.417  ,DNS.OVCST  ,LIGHT FOG ,
 2015  , 3  , 10  , 23.917  ,DNS.OVCST  ,CHNC. DRZL ,
 2015  , 3  , 10  , 0.417  ,DNS.OVCST  ,CHNC. DRZL ,
So the dates go from
March 9  10:55 pm  (coded as 22.917)
to
March 10 11:25 pm  (23.417)
March 10 11:55 pm  (23.917)
to
March 10 00:25 am (0.417)

The scripts solve numerous situations like this, so I will have to look why your situation now is different compared to last years data files.

===
lastret.txt  has the same type of date errors:
Code: [Select]
11:25p DNS.OVCS HEAVY RAI  46.6  44.0 
11:55p DNS.OVCS HEAVY RAI  46.3  43.5
                                                                                                     
Mar 10 ---------------------------------------------------------------------------------------       
                                          Tuesday                                                                                                                                                     
12:25a DNS.OVCS LIGHT FOG  46.3  43.4   
12:55a DNS.OVCS CHNC. DRZ  46.3  43.3
 1:25a DNS.OVCS CHNC. DRZ  46.3  43.2   

===

I copied your files and will take a look.

===
REMEMBER: when changing settings in wxsim scripts ALWAYS wait for a new upload to see the difference as the calculated script data-files are cached. Or remove the cache files.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on March 09, 2015, 09:06:20 AM
Hi Wim,

Hope you a good time abroad, Sir.  Have had an issue come up, and I have no idea why.  Please check here (http://salineweather.com/weather2/index.php?p=55&lang=en#data-area).  The only thing that changed was the on the weather computer side to daylight savings time, that's it.

Thanks,

John
I enclose a version which should cope with latest.csv and these date-errors:
1. make a backup copy of weather2/wsWxsim/wsWxsimGetFile.php
2. unzip attachement
3. replace script wsWxsimGetFile.php

Be aware that the new script only works after the cache invalidates when a new upload becomes available.

Tested with your current version of latest.csv. The incomplete lastret.txt works also.

QUESTION:
Do you use the latest version of wxsim or an old version, maybe year old?   If you use an old version,  you could try to upgrade as this could remove date-errors also.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Maumelle Weather on March 09, 2015, 09:41:23 AM
Hi Wim,

Thanks for looking into this.  Very strange. It is the new version of WxSim I downloaded from Tom's site. I had installed 3 new SSD hard drives about 3 weeks ago and have not had any issues.  I'll tried the file when I get home from work.

Thank you again,

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on March 09, 2015, 11:00:17 AM
Hi Wim,

Thanks for looking into this.  Very strange. It is the new version of WxSim I downloaded from Tom's site. I had installed 3 new SSD hard drives about 3 weeks ago and have not had any issues.  I'll tried the file when I get home from work.

Thank you again,

John
Indeed very strange but even worse then I thought as this could point to a new error in wxsim.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on March 09, 2015, 11:53:36 AM
I'm using the latest Wxsim programs but I'm not having any problems with my graphs.
Tom
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe-SOLVED
Post by: Maumelle Weather on March 09, 2015, 08:21:24 PM
Hi Wim,

Thank you, Sir!!!!  That took care of the issue.

John
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: weatherbee on March 11, 2015, 08:26:55 PM
Wim,
I was wondering if a we could choose to use the WxSim forecast for UV page instead?
Tom
Edit: I was able to pull the UV Forecast page from my WxSim Forecast.  It accounts better for cloudy and rainy days.
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Breezy on April 01, 2015, 12:07:45 PM
Hello, Wim,

I've been having an issue with the WxSim graphs. It might have something to do with the WxSim updates that I did last month. http://indiantrailweather.com/weather2/index.php?p=55&lang=en#data-area

Could you please take a look at this when you have a moment? Thanks much.

Cheers,

Jeff

Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 01, 2015, 12:24:42 PM
Hello, Wim,

I've been having an issue with the WxSim graphs. It might have something to do with the WxSim updates that I did last month. http://indiantrailweather.com/weather2/index.php?p=55&lang=en#data-area
Could you please take a look at this when you have a moment? Thanks much.
Cheers,
Jeff
Hello jeff,
This is a known error in WXSIM. Check your latest.csv, every day at 23:00 (11:00 PM) the date advances 1 day already. So the times of 23:00 => 23:59 are 1 day ahead of the correct date/time.  Here the leftmost part of the lines in error in your http://indiantrailweather.com/latest.csv  file. This happens every day.
Code: [Select]
2015  , 4  , 1  , 22  ,FAIR       , , 23  ,
 2015  , 4  , 1  , 22.5  ,FAIR-P.C.  , , 22.5  ,
 2015  , 4  , 2  , 23  ,FAIR-P.C.  , , 22.3  ,
 2015  , 4  , 2  , 23.5  ,P.CLOUDY   , , 22.3  ,
 2015  , 4  , 2  , 0  ,P.CLOUDY   , , 22.5  ,
 2015  , 4  , 2  , 0.5  ,P.CLOUDY   , , 23.1  ,
 2015  , 4  , 2  , 1  ,P.-M.CLDY  , , 23.6  ,
I changed the generation script to cope with it, please check this post:
http://www.wxforum.net/index.php?topic=18819.msg244819#msg244819

Be aware that when you cahnge the script you have to wait for a fresh upload as the intermediate data is cached.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Breezy on April 01, 2015, 12:46:08 PM
Hello Wim,

Looking at the earlier post it appears that perhaps this started occurring when DST started in the "states" on March 8th. Tom also had WxSim updates at about the same time. I'll apply your fix. Do you think that this will be an issue when DST goes back to EST in November?

Thanks much ...

Cheers,

Jeff

UPDATE: Corrections uploaded and all OK ... Thanks much ...
 
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: assenzuid on April 09, 2015, 04:32:13 PM
Hi Wim,

My WU forecast script generates an error. (When selected language is Dutch or Deutsch)
http://www.assenzuidwest.nl/weather2/index.php?p=52-1&wp=MB&lang=nl

Notice: Undefined index: Oost in /assenzuidwest.nl/public_html/weather2/wuforecast/wuweather3.php on line 260
Notice: Undefined offset: -1 in /assenzuidwest.nl/public_html/weather2/wuforecast/wuforecast3.php on line 325

Line 325 is:

$graphsData   = '';
for ($graphLines = 0; $graphLines < $end; $graphLines++){
   $graphsData   .= 'tsv['.$graphLines.'] ="';
   $graphsData   .= $arrTimeGraph[$graphLines].'|';
   $graphsData   .= $arrTempGraph[$graphLines].'|';
   if (!isset ($arrHumGraph[$graphLines]) ){
      $graphsData   .=  $arrHumGraph[$graphLines-1].'|';
   } else {
      $graphsData   .= $arrHumGraph[$graphLines].'|';
   }
   if (!isset ($arrWindGraph[$graphLines]) ){
      $graphsData   .= $arrWindGraph[$graphLines-1].'|';
   } else {
      $graphsData   .=  $arrWindGraph[$graphLines].'|';
   }
   if (!isset ($arrWdirGraph[$graphLines]) ){
      $graphsData   .= $arrWdirGraph[$graphLines-1].'|';
   } else {
      $graphsData   .= $arrWdirGraph[$graphLines].'|';
   }
   if (!isset ($arrRainGraph[$graphLines]) ){
      $graphsData   .= '|';
   } else {
      $graphsData   .= $arrRainGraph[$graphLines].'|';
   }
   $graphsData   .= $arrIconGraph[$graphLines].'|";'.PHP_EOL;         
}

Kind regards,
Weather Station Assen Zuid-West
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: assenzuid on April 10, 2015, 03:31:02 AM
For some reason it's working now without any issues....


Hi Wim,

My WU forecast script generates an error. (When selected language is Dutch or Deutsch)
http://www.assenzuidwest.nl/weather2/index.php?p=52-1&wp=MB&lang=nl

Notice: Undefined index: Oost in /assenzuidwest.nl/public_html/weather2/wuforecast/wuweather3.php on line 260
Notice: Undefined offset: -1 in /assenzuidwest.nl/public_html/weather2/wuforecast/wuforecast3.php on line 325

Line 325 is:

$graphsData   = '';
for ($graphLines = 0; $graphLines < $end; $graphLines++){
   $graphsData   .= 'tsv['.$graphLines.'] ="';
   $graphsData   .= $arrTimeGraph[$graphLines].'|';
   $graphsData   .= $arrTempGraph[$graphLines].'|';
   if (!isset ($arrHumGraph[$graphLines]) ){
      $graphsData   .=  $arrHumGraph[$graphLines-1].'|';
   } else {
      $graphsData   .= $arrHumGraph[$graphLines].'|';
   }
   if (!isset ($arrWindGraph[$graphLines]) ){
      $graphsData   .= $arrWindGraph[$graphLines-1].'|';
   } else {
      $graphsData   .=  $arrWindGraph[$graphLines].'|';
   }
   if (!isset ($arrWdirGraph[$graphLines]) ){
      $graphsData   .= $arrWdirGraph[$graphLines-1].'|';
   } else {
      $graphsData   .= $arrWdirGraph[$graphLines].'|';
   }
   if (!isset ($arrRainGraph[$graphLines]) ){
      $graphsData   .= '|';
   } else {
      $graphsData   .= $arrRainGraph[$graphLines].'|';
   }
   $graphsData   .= $arrIconGraph[$graphLines].'|";'.PHP_EOL;         
}

Kind regards,
Weather Station Assen Zuid-West
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 10, 2015, 04:12:57 AM
For some reason it's working now without any issues....

Hi Wim,

My WU forecast script generates an error. (When selected language is Dutch or Deutsch)
http://www.assenzuidwest.nl/weather2/index.php?p=52-1&wp=MB&lang=nl

Notice: Undefined index: Oost in /assenzuidwest.nl/public_html/weather2/wuforecast/wuweather3.php on line 260
Notice: Undefined offset: -1 in /assenzuidwest.nl/public_html/weather2/wuforecast/wuforecast3.php on line 325

. . . shortened . . .
 
Kind regards,
Weather Station Assen Zuid-West
The notice (not an error) is in wuweather3.php on line 260 which signals a no entry Undefined index: for the winddirection Oost

I need to get the xml file from WU myself to see what the problem is, as the offending array in statement 260 correctly contains the entry Oost
Code: [Select]
     {  $returnArray['forecast'][$i]['windDirEn'] = $winddirstoenglish[$string];} 
There is no wind from the Oost at the moment. So I have to wait and see.  It can be an extra space before or after the word Oost.

But all retrieved data, especialy those datasets retrieved for forecasts are not entirely troublefree (WU for German switched form Süden to Süd a few weeks ago). It is therefor better to run your production website with debugging switched off. Then only important messages which invalidates the output will be displayed.
When you see a problem you can for that page or moment switch debugging on with an extra parameter in the browser
http://www.assenzuidwest.nl/weather2/index.php?p=52-1&wp=MB&lang=nl&debug

Important: When running a production environment always change line 6 in weather2/index.php from
Code: [Select]
$wsDebug = true; // ##### make comment after testingto a comment by adding a # as the first position
Code: [Select]
#$wsDebug = true; // ##### make comment after testing
The WiKi (http://wiki.leuven-template.eu/doku.php?id=how_to_install7#set_debug_mode_off) also explains that with leaving debug on, a lot of extra (normaly unnneeded) information is sent from the server to the browser.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Météo Québec on April 17, 2015, 11:01:12 PM
Hi folks,

i would like to know if this is the right script for Leuven Template?

I have an issue regarding the record all time from my station and i thing it might not be the right script for it


<tr><td style="font-weight: bold; "><?php echo langtransstr('Rcrd since'); ?><br />
            <sup> Jan 2014</sup></td>

                <td style="border: 1px solid; border-radius:5px; border-color: #FF0000; background-color: #F3E5E5"><?php echo wsNumber($ws['myRecordDayMaxTemp']).$uomTemp;?><br/><?php echo $ws['maxtempyearfromdata'];?></td>


                <td style="border: 1px solid; border-radius:5px; border-color: #0000FF; background-color: #D0E2FF"><?php echo wsNumber($ws['myRecordDayMinTemp']).$uomTemp;?><br/><?php echo $ws['mintempyearfromdata'];?></td>

                </tr>

Thank you for helping me!

Steven
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: wvdkuil on April 18, 2015, 04:34:06 AM
Hi folks,

i would like to know if this is the right script for Leuven Template?

I have an issue regarding the record all time from my station and i thing it might not be the right script for it


<tr><td style="font-weight: bold; "><?php echo langtransstr('Rcrd since'); ?><br />
            <sup> Jan 2014</sup></td>

                <td style="border: 1px solid; border-radius:5px; border-color: #FF0000; background-color: #F3E5E5"><?php echo wsNumber($ws['myRecordDayMaxTemp']).$uomTemp;?><br/><?php echo $ws['maxtempyearfromdata'];?></td>


                <td style="border: 1px solid; border-radius:5px; border-color: #0000FF; background-color: #D0E2FF"><?php echo wsNumber($ws['myRecordDayMinTemp']).$uomTemp;?><br/><?php echo $ws['mintempyearfromdata'];?></td>

                </tr>

Thank you for helping me!

Steven
Good morning Steven,
It is fairly difficult to help if there is no link to your website. If i click the small gobe on the left of your post (beneath the avatar) it does not lead to your weather-website (http://www.meteoinfostalphonse.ca/) but gives an "account suspended" message.

As I understand this and other posts at the WW forum yesterday correctly:
1. you want to add extra fields to your mainpage ?
2. you want those fields to appear in the "dashboard" (with the thermometer and so on)?
3. these  fields are not in the standard set of fields as uploaded by testags for the Leuven-Template ?
4. these fields are static fields, so NOT changing evry few seconds such as wind-direction ?

To not further confuse between saratoga and leuven files, i will refer to the leuven testtags as testags2 !

Solution for the current 2.6 release:
1. add those fields to testtags2.txt
Code: [Select]
$ws['wsUptime']         = '%windowsuptime%';
#$ws['myRecordDayMaxTemp'] = '%maxtempfortodayfromyourdata%';
#$ws['myRecordDayMinTemp'] = '%mintempfortodayfromyourdata%';
#$ws['tempMaxRecordTime']     = '%yearmaxtempfortodayfromyourdata%';
#$ws['tempMin RecordTime']     = '%yearmintempfortodayfromyourdata%';
#    and so on adding all fields needed
2. Place the changed testtags2.txt in the C:\wdisplay\webfiles folder.
Be aware that it is a PHP file so a typo can result in total stop of the website. That is why I added a # as a first position at the added fields. They are handled as comments first.
3. When the new yuploaded testtags2.php at your site looks OK, remove the # in the testtags2.txt and
4. put it again in C:\wdisplay\webfiles

Now the real tricky part: you have to add code to the dashboard such as you posted above. An example of the results with such additional info can be seen at: http://wxcalgary.com/weather2-6/index.php
As this and your site are in Canada, the "normal" times are loaded from your EC forecast data, not available outside Canada.

There are numerous adapted dashboard scripts floating around. So if you see one your like, you should use the contact page and ask the site owner.

I atttached one of the different dashboard scripts which maybe is what you are looking for, the changed code is  in between the "< ! -- today yesterday min max values -- >" comment marks.
1. Make a copy/backup of your current wsAjaxDashboard.php
2. Unzip and replace with this version.

Wim
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: Météo Québec on April 20, 2015, 06:29:54 PM
Hi folks,

i would like to add ''Other Quebec Cities Current Conditions'' on my site of current conditions page. Doe anyont have the script?

Thanks
Title: Re: Weather Template and scripts form Leuven/Belgium/Europe
Post by: assenzuid on April 26, 2015, 04:32:02 PM
Thanks Wim for the clear explanation again.

For some reason it's working now without any issues....

Hi Wim,

My WU forecast script generates an error. (When selected language is Dutch or Deutsch)
http://www.assenzuidwest.nl/weather2/index.php?p=52-1&wp=MB&lang=nl

Notice: Undefined index: Oost in /assenzuidwest.nl/public_html/weather2/wuforecast/wuweather3.php on line 260
Notice: Undefined offset: -1 in /assenzuidwest.nl/public_html/weather2/wuforecast/wuforecast3.php on line 325

. . . shortened . . .
 
Kind regards,
Weather Station Assen Zuid-West
The notice (not an error) is in wuweather3.php on line 260 which signals a no entry Undefined index: for the winddirection Oost

I need to get the xml file from WU myself to see what the problem is, as the offending array in statement 260 correctly contains the entry Oost
Code: [Select]
     {  $returnArray['forecast'][$i]['windDirEn'] = $winddirstoenglish[$string];} 
There is no wind from the Oost at the moment. So I have to wait and see.  It can be an extra space before or after the word Oost.

But all retrieved data, especialy those datasets retrieved for forecasts are not entirely troublefree (WU for German switched form Süden to Süd a few weeks ago). It is therefor better to run your production website with debugging switched off. Then only important messages which invalidates the output will be displayed.
When you see a problem you can for that page or moment switch debugging on with an extra parameter in the browser
http://www.assenzuidwest.nl/weather2/index.php?p=52-1&wp=MB&lang=nl&debug

Important: When running a production environment always change line 6 in weather2/index.php from
Code: [Select]
$wsDebug = true; // ##### make comment after testingto a comment by adding a # as the first position
Code: [Select]
#$wsDebug = true; // ##### make comment after testing
The WiKi (http://wiki.leuven-template.eu/doku.php?id=how_to_install7#set_debug_mode_off) also explains that with leaving debug on, a lot of extra (normaly unnneeded) information is sent from the server to the browser.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on June 03, 2015, 11:49:04 PM
Hello Wim...On 2.6 template,re the background transparency...the background where the data are shown,id like it to be less transparent.Can you tell me where to go please ?

Ive seach on the wiki but didnt find it

I use weather related images and sometime,data are hard to read  ;)

thanks
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 04, 2015, 02:17:02 AM
Hello Wim...On 2.6 template,re the background transparency...the background where the data are shown,id like it to be less transparent.Can you tell me where to go please ?

Ive seach on the wiki but didnt find it

I use weather related images and sometime,data are hard to read  ;)

thanks
In the CSS for every combination of colors and images, I call them "moods" => styleMood20.css
The transparency is set in the RGB string, last value
Code: [Select]
.ws_clouds #pagina  {border-color: #B4D3ED; background-color: rgba(205,218,224, 0.6);}So for mood clouds the tranparency is 0.6

There is a small test program to havel all possible "moods" on one page  in the weather2/ folder => testMood.php

Succes, Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on June 04, 2015, 07:42:24 PM
thanks  ;)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 06, 2015, 01:17:57 PM
Release 2.7 is available at the supportsite http://support.leuven-template.eu/ (http://support.leuven-template.eu/)
You will find the links to the downloads, the issues page and the WiKi for both the now current release 2.7 as the previous release 2.6

List of some of the changes:
And to facilitate support there are numerous extra ways for me as developer to check the internals and to help during install.
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on June 17, 2015, 02:23:54 AM
Wim,

 Maybe I am missing something, but I cannot seem to get the "Curly alerts" pages to work properly. I have adjusted the permissions from 755 to 705 to 775 (Web Host does not allow 777). My issue is the details/summary of the event(s) comes back to a 404 error when you click on the link to the page.  I am able to get into the details page, but not further from there.

I am tweaking as I go along. as I find new problems, I will pass them along. For the most part, excellent update!
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 17, 2015, 02:46:46 AM
Wim,

 Maybe I am missing something, but I cannot seem to get the "Curly alerts" pages to work properly. I have adjusted the permissions from 755 to 705 to 775 (Web Host does not allow 777). My issue is the details/summary of the event(s) comes back to a 404 error when you click on the link to the page.  I am able to get into the details page, but not further from there.

I am tweaking as I go along. as I find new problems, I will pass them along. For the most part, excellent update!
At the demo site I switched the NWS-alerts from Curly "on" by using the setting
Code: [Select]
$SITE['useCurly'] = true; // ##### default = use template/noaa script. If set to true curly's script is used. Needs inside script seup!
The messages appear and clicking on the none button switches to the details page http://weather-template.nl/weather27_america/index.php?p=57  (http://weather-template.nl/weather27_america/index.php?p=57)

At your site the buttons lead to http://lightningweather.com/quadcities/wsnws-details.php&a=IAZ065#WA1 (http://lightningweather.com/quadcities/wsnws-details.php&a=IAZ065#WA1)

That is a reference to a Saratoga page, not to a Leuven one. So it seems that the scripts from the original download are replaced with another copy?

Please let me know what is happening as I can not replicate the same errors on  another test-system.
Furthermore you set a password on your settings,which is normal for a production environment.  But it also inhibits the display of your scripts to check them.

Wim

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: el-rain on June 17, 2015, 04:31:53 AM
Hello Wim,
first, thank you for this great template!!

I started to setup 2.7a and have some problem with the Records/today and Normals/today on the start page. As far as I understand they coming from  WU and contain data of next Airport, here EDDG. But the value reported here seems to be incorrect, even if that is what WU deliver, checked this by calling WU API URL.
Is there any setting I can change to use data from my own weather station via WU or weather software for this?

Names seems strange to me as well as Records/today seems to be all time high/low value.
What is the "Normals/today" standing for??

Current test page is
http://wetter2.dg7yeo.de/weather27/

Thank you for helping me!
El
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on June 17, 2015, 07:18:06 AM

The messages appear and clicking on the none button switches to the details page http://weather-template.nl/weather27_america/index.php?p=57  (http://weather-template.nl/weather27_america/index.php?p=57)

At your site the buttons lead to http://lightningweather.com/quadcities/wsnws-details.php&a=IAZ065#WA1 (http://lightningweather.com/quadcities/wsnws-details.php&a=IAZ065#WA1)

That is a reference to a Saratoga page, not to a Leuven one. So it seems that the scripts from the original download are replaced with another copy?

Please let me know what is happening as I can not replicate the same errors on  another test-system.
Furthermore you set a password on your settings,which is normal for a production environment.  But it also inhibits the display of your scripts to check them.

Wim


I haven't changed any scripts. These have all come from the 2.7 script. I probably could use the same script from the 2.6 template as the settings for this have not changed, and that was a stable script.

When you click on the link for the actual warning it takes you to a blank page with warning text saying it does not exist.  It confuses me to as it's the same setup as I have had since implementing it back in the 2.5 package.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 17, 2015, 07:35:43 AM
@person(s) unknown: Please request your own WU key to test your own programs. Our key is for the benefit of all people testing the Leuven-Template.

Every new release I obtain a fresh WU-key for the users testing the Leuven-Template. Such a key gives all users together a maximum of 500 calls to obtain WU forecast data. For a normal forecast 1 or 2 calls , caching for 2 hours, about 20 max per day per user,  only if everybody is testing 24/7 the WU-forecast.  Far more then ever needed for this testing environment.

The WiKi says: http://wiki.leuven-template.eu/doku.php?id=en:forecast_settings
Quote
If you want to use the one page WU forecast you have to Visit http://www.wunderground.com/weather/api/ to request a free key and modify with your key the $SITE['wuKey'] setting.
Also the comments in the wsUserSewttings.php tells the same:
Code: [Select]
$SITE['wuKey'] = 'ef6aea4f006e5dda'; // ##### set to your (free) Wunderground API key to retreive weatherinfo in xml
As far as I know I did not say: Use the test-key to develop your own WU programs retrieving data in JSON format.

At least 1 person is doing that without even caching the data.

Today there were already at 05:30 EDT more than 700 calls and more than 3 calls / minute.  So in less then 6 hours 700 calls!
WU checks the usage for 24-hour periods based on U.S. Eastern Time.

The result is that one of the coming days WU will block all use of the key  for the remainder of the day.

So please at ALL persons testing the template: get your FREE key at the WU website, as explained in the WiKi.  Use that key for your site.

If one of the coming days the current test-key stops working => do not post about it.  I can not help you with this.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 17, 2015, 07:48:50 AM
Hello Wim,
first, thank you for this great template!!

I started to setup 2.7a and have some problem with the Records/today and Normals/today on the start page. As far as I understand they coming from  WU and contain data of next Airport, here EDDG. But the value reported here seems to be incorrect, even if that is what WU deliver, checked this by calling WU API URL.
Is there any setting I can change to use data from my own weather station via WU or weather software for this?

Names seems strange to me as well as Records/today seems to be all time high/low value.
What is the "Normals/today" standing for??

Current test page is
http://wetter2.dg7yeo.de/weather27/

Thank you for helping me!
El
Feel free to change all you want, it is your site. You never have to ask for that.

Normals today are the normal (average) temperature  High /Low for today as calculated by WU.
Records/today are the Highest and Lowest temperature for today ever measured by WU.
The documentation for the almanac data comes from http://www.wunderground.com/weather/api/d/docs?d=data/almanac (http://www.wunderground.com/weather/api/d/docs?d=data/almanac)

Last year is the min/max of today => one year ago.
That is calculated using the WU data for your station, when you were a member 1 year ago.

The other values should be the same as on your history page http://wetter2.dg7yeo.de/weather27/index.php?p=61-1&lang=de#data-area (http://wetter2.dg7yeo.de/weather27/index.php?p=61-1&lang=de#data-area) as they come directly form your weather-stations data.

BUT remeber the CACHE: As all data obtained from external sources is cached, the "normals/records" data is valid after
1. you set the WUID correct in your settings
and
2. the old data in the has cache become invalid after midnight

So to check your own API call and the scripts, remove the almanac file from the cache.

Wim



Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: el-rain on June 17, 2015, 04:47:17 PM
Thank you for reply,
checked already what is coming from the WU API by calling the API url directly in my browser and it respond with the results from EDDG and the data shown on page. Even deleting the cache files didn't help, tried already. So technically all seems working as it should.

Now after think a bit on this I believe the error is in front of the screen.
So it show the records measured for the current date (i.e. 17. June) in past xx Years.


Thank you
El


Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: cirdan52 on June 19, 2015, 10:18:59 AM
On version 2.7a in wsUserSettings.php line 251 if you set this to false you and display the precipitation radar on the menu you get:  Undefined index: img_rain in weather27/usa/rain_radar_america.php on line 102 which causes the regional radar not to display. The comment on line 249 in wsUserSettings.php says the small radar will only display if there is a warning but it always is displayed
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 19, 2015, 11:04:50 AM
On version 2.7a in wsUserSettings.php line 251 if you set this to false you and display the precipitation radar on the menu you get:  Undefined index: img_rain in weather27/usa/rain_radar_america.php on line 102 which causes the regional radar not to display. The comment on line 249 in wsUserSettings.php says the small radar will only display if there is a warning but it always is displayed
Thanks for bringing this error to my attention.
There was not enough testing with USA users during the Beta. But there seems to be never enough time for testing.
The attached script replaces the current one in weather27/inc/
The problems page at http://support.leuven-template.eu/problems27.php?lang=en (http://support.leuven-template.eu/problems27.php?lang=en) is also updated.
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: cirdan52 on June 19, 2015, 12:48:50 PM
Thanks Wlm, does this also correct the display small radar in the side if there is a warning ?
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 20, 2015, 03:41:49 AM
Thanks Wlm, does this also correct the display small radar in the side if there is a warning ?
I tested (takes some time to find rain/thunder warnings) for all 3 scripts.
What is it exactly what you want:
NOW for NOAA and EC (EU after update):
 If switched off in the settings:  a warning will override the user setting and display the small map to click on.

Do you want to remove that override?

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: cirdan52 on June 20, 2015, 04:25:29 AM
That's ok, I just wanted to know if it works as you intended
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on June 20, 2015, 04:13:55 PM
Wim,

Still having an issue with the Curly Alerts as it is giving me a 404 error when I click on a warning link.
I get this error:
The requested URL /quadcities/wsnws-details.php&a=IAZ065 was not found on this server.

It's looking in the wrong folder and I don't know how to fix that error. I have made adjustments to the Curly Script to look in the "usa/nws-alerts" folder, however when you type in "mu=1" when in the address bar to force an update, it reverts to the above link.
I am obviously looking in the wrong place to fix this. Can you point me in a better direction?

Regards,

Jonny J.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 21, 2015, 05:28:36 AM
Wim,

Still having an issue with the Curly Alerts as it is giving me a 404 error when I click on a warning link.
I get this error:
The requested URL /quadcities/wsnws-details.php&a=IAZ065 was not found on this server.

It's looking in the wrong folder and I don't know how to fix that error. I have made adjustments to the Curly Script to look in the "usa/nws-alerts" folder, however when you type in "mu=1" when in the address bar to force an update, it reverts to the above link.
I am obviously looking in the wrong place to fix this. Can you point me in a better direction?

Regards,

Jonny J.
1. you are not running the NWS-alerts / Curly scripts form the download but from a older release.
This gives numerous conflicts between the environment scripts of template 2.7a which take care of adapting the "Saratoga/stand-alone" naming of scripts in your version.

Example:
 The main script wsnws-alerts.php on your site is from release 2.5x 2014-04-22
=> current one in the download 3.00 2015-02-01

You manualy adapted some other scripts, but are pointing to the wrong files (userSettings is only a small part of all settings).

=== Are there errors in the download?
The standard scripts in the download are functioning and any changes in the scripts are UNNEEDED and dangerous.
You only have to specify your own warning areas. To prove this I copied two entries of your list $myZC to the testsite.
  "Cedar, IA|IAZ065|IAC031",
  "Clinton, IA|IAZ066|IAC045",

and they are displayd correctly,  displaying  at this  moment (2015-06-21 11:00 CET)  two orange warnings
http://weather-template.nl/weather27_america/index.php?p=10&lang=en (http://weather-template.nl/weather27_america/index.php?p=10&lang=en)

A did the same with the next beta, exactly the same output.

Also adding multiple other entries to $myZC still loads the warnings but also displays the message
Code: [Select]
ws-alerts: Please consult the readme here as checking more than four warning/county codes can delay the loading of your pages. You should use a cron job to get the data.
=== Solution
1. Use a fresh copy of the weather27/usa/nws-alerts/
2. and replace your version at lightningweather.com/quadcities/usa/nws-alerts/
3. do not change anything and test.  All links should be operational.
If not, do not change anything as i have to look into it what is wrong.

4. replace the test $myZC entries with your own entries and test again.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on June 21, 2015, 01:05:17 PM
1. you are not running the NWS-alerts / Curly scripts form the download but from a older release.
This gives numerous conflicts between the environment scripts of template 2.7a which take care of adapting the "Saratoga/stand-alone" naming of scripts in your version.

Example:
 The main script wsnws-alerts.php on your site is from release 2.5x 2014-04-22
=> current one in the download 3.00 2015-02-01

You manualy adapted some other scripts, but are pointing to the wrong files (userSettings is only a small part of all settings).

=== Are there errors in the download?
The standard scripts in the download are functioning and any changes in the scripts are UNNEEDED and dangerous.
You only have to specify your own warning areas. To prove this I copied two entries of your list $myZC to the testsite.
  "Cedar, IA|IAZ065|IAC031",
  "Clinton, IA|IAZ066|IAC045",

and they are displayd correctly,  displaying  at this  moment (2015-06-21 11:00 CET)  two orange warnings
http://weather-template.nl/weather27_america/index.php?p=10&lang=en (http://weather-template.nl/weather27_america/index.php?p=10&lang=en)

A did the same with the next beta, exactly the same output.

Also adding multiple other entries to $myZC still loads the warnings but also displays the message
Code: [Select]
ws-alerts: Please consult the readme here as checking more than four warning/county codes can delay the loading of your pages. You should use a cron job to get the data.
=== Solution
1. Use a fresh copy of the weather27/usa/nws-alerts/
2. and replace your version at lightningweather.com/quadcities/usa/nws-alerts/
3. do not change anything and test.  All links should be operational.
If not, do not change anything as i have to look into it what is wrong.

4. replace the test $myZC entries with your own entries and test again.

Wim


Wim,

Did as suggested. I pulled the folder directly from the zip file and replaced the one that was uploaded. No current warnings for selected counties. I am going to replace with a couple of counties that have current flood warnings. However, when you click on the county (even with no warning) this error pops up... The requested URL /quadcities/&a=IAZ065 was not found on this server.

Note: added 2 counties with flood warnings. Still receiving the same error. made no other changes to the folder. I have only 3 counties on the list as active currently so there will be no need for a cron job (even though I have one set up).

Regards,

Jonny J
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 21, 2015, 01:49:06 PM

. . . shortened . . .

Wim,

Did as suggested. I pulled the folder directly from the zip file and replaced the one that was uploaded. No current warnings for selected counties. I am going to replace with a couple of counties that have current flood warnings. However, when you click on the county (even with no warning) this error pops up... The requested URL /quadcities/&a=IAZ065 was not found on this server.

Note: added 2 counties with flood warnings. Still receiving the same error. made no other changes to the folder. I have only 3 counties on the list as active currently so there will be no need for a cron job (even though I have one set up).

Regards,

Jonny J
At least the warnings are displayed, they have the correct color now and they they still want to goto the details page.

Error:
Code: [Select]
The requested URL [b]/quadcities/&a=IAZ065 [/b] was not found on this server.
Reason fot this error: There is no page name before &a=IAZ065

At least 1 reason for this omission: There is no details page left in your menu file to go to, the line for the details page is  removed:

Code: [Select]
<item nr="57" show="warningsNWS" caption="NWS Advisories" link="usa/nws-alerts/wsnws-details.php"/>
===
I again changed a testsite with the exact lines from your  $myZC array.
I get the same errors as you
and the links work on the standard site.
http://weather-template.nl/weather27x/ (http://weather-template.nl/weather27x/)

Succes, Wim


Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on June 21, 2015, 06:30:05 PM
At least the warnings are displayed, they have the correct color now and they they still want to goto the details page.

Error:
Code: [Select]
The requested URL [b]/quadcities/&a=IAZ065 [/b] was not found on this server.
Reason fot this error: There is no page name before &a=IAZ065

At least 1 reason for this omission: There is no details page left in your menu file to go to, the line for the details page is  removed:

Code: [Select]
<item nr="57" show="warningsNWS" caption="NWS Advisories" link="usa/nws-alerts/wsnws-details.php"/>
===
I again changed a testsite with the exact lines from your  $myZC array.
I get the same errors as you
and the links work on the standard site.
http://weather-template.nl/weather27x/ (http://weather-template.nl/weather27x/)

Succes, Wim


Wim

Wim,

Not sure what I did differently to make it error out like it did...but it's working now.
Thanks for the assistance.

Regards,

Jonny J
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: cirdan52 on June 21, 2015, 07:13:29 PM
In version 2.6g you had a line to exclude your ip address from being included in the site visits which isn't in version 2.7a. I have a cron job  running which is showing up in the user visits.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 22, 2015, 02:30:25 AM
In version 2.6g you had a line to exclude your ip address from being included in the site visits which isn't in version 2.7a. I have a cron job  running which is showing up in the user visits.
1. Active visitors p=87:
cron-jobs were always counted in the number of active visitors and displayed with the WhoIsOnline menu choice.
Only registred bots and spiders can be excluded using spiders.txt.  All this is helpfull when checking performance problems.

2. Pages visited p=88 (optional)
cron-jobs can be excluded
or the whole page and counting can be switched off as you did.

The $SITE['yourIP'] setting was only used for P=88.  This ip-addres can also be set in line 39 in wsFooter.php but you are not using this page.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: el-rain on July 03, 2015, 07:52:36 AM
Today I had a strange issue with the high/low values on start page.

I modified them already a bit in wsAjaxDashboard_v3.php to use last_year_highT in the description of the last 3 lines. Today I saw that there was shown 01-01 and 01-01-1970 instead of 03-07 or 03-07-2014  as well the timestamp in the max value was 01:01.

When I use last_year_lowT  instead of last_year_highT all was fine. I then tried with manual values instead of $ws['last_year_lowT'] and saw 2 items
a) the date have only 13 char (2014070317300) for both high and low, I expected 14, but as the seconds seems only reported 0 when it is a full minute I add the missing 0 in my manual test it works as it should
b) when I change the hour value to 15 or below it works, for 16 and above I get this wrong message.

I believe the cause is that the second value is shown only with 1 char instread of 2. I tried to find where the last_year_highT, last_year_lowT are build but wasn't successfull. Is the first time I see this, when I checked this past days it was working as expected. So looks like this depends on the value in last_year_highT, last_year_lowT if this errors appear.

deleting cache didn't help to fix this.

data from wu_almanac_C:
Code: [Select]
a:11:{s:5:"today";s:8:"20150703";s:11:"normal_high";s:2:"20";s:11:"record_high";s:2:"35";s:16:"record_high_year";s:4:"2010";s:10:"normal_low";s:2:"11";s:10:"record_low";s:1:"7";s:15:"record_low_year";s:4:"2014";s:13:"last_year_low";d:11.300000000000001;s:14:"last_year_lowT";s:13:"2014070305300";s:14:"last_year_high";d:28.100000000000001;s:15:"last_year_highT";s:13:"2014070317300";}


Part from wsAjaxDashboard_v3.php
Code: [Select]
<tr>    <td class="dashTempsDesc">&nbsp;'.string_date($ws['last_year_highT'],$SITE['timeFormat']).':</td>
<td class="dashTempsHigh">'.wsNumber($ws['last_year_high'],$decTemp).$uomTemp;
        if (isset($ws['last_year_highT']) ) {echo '&nbsp;<small>('.string_date($ws['last_year_highT'],$SITE['timeOnlyFormat']).')</small>';}
        echo '</td>
<td class="dashTempsLow">'.wsNumber($ws['last_year_low'],$decTemp).$uomTemp;
        if (isset($ws['last_year_lowT']) ) {echo '&nbsp;<small>('.string_date($ws['last_year_lowT'],$SITE['timeOnlyFormat']).')</small>';}
        echo '</td>
</tr>';

wetter.dg7yeo.de
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: KapitainOne on July 10, 2015, 05:20:16 PM
Noticed the Canada Air Quality Index page is not displaying!

http://www.sanfordweather.com/weather2/index.php?p=15&lang=en

Don't recall changing anything.

Ideas as to where to look?

I should mention that I'm running the 2.7 version and have applied the one update to the AQI recommended on the "Issues" page.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on July 11, 2015, 05:40:59 AM
Noticed the Canada Air Quality Index page is not displaying!

http://www.sanfordweather.com/weather2/index.php?p=15&lang=en

Don't recall changing anything.

Ideas as to where to look?

I should mention that I'm running the 2.7 version and have applied the one update to the AQI recommended on the "Issues" page.

Thanks for bringing this error to my attention.
It is caused by a small change in the page layout by EC. The links to the detail-pages can only be "harvested bij scraping" the html page.

I adapted the script and put a new version on-line. 
Also added  &force=aqhi  to the possible URL-parameters so that you do not manualy have to remove the cached list. This list is only reread after 16 hours, a liitle bit too long to wait for.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: KapitainOne on July 11, 2015, 11:57:13 AM
Unfortunately the problem still exists

http://www.sanfordweather.com/weather2/index.php?p=15&lang=en&force=aqhi%20#data-area

Did they change something again?
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on July 11, 2015, 02:38:58 PM
Unfortunately the problem still exists

http://www.sanfordweather.com/weather2/index.php?p=15&lang=en&force=aqhi%20#data-area

Did they change something again?
I checked and double-checked, but it seems you have an earlier version without the force=aqhi
So To be sure i added a time stamp in thew script and set a fresh copy on the download site.

Could you please download again, unzip again and upload again and see if the problem is gone when using &force=aqhi ?
Just to test if there is some hickup in the download process?

I attached the zip as it should be the same as the one coming from the download site, just in case a fresh download does not work again,

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: KapitainOne on July 11, 2015, 03:07:52 PM
OK it now seems to be working, but I downloaded the file from both places and uploaded with no luck!
 
I then downloaded the recently uploaded file to make sure I had not messed up and it was the same.

It finally started working after I removed any ec*.* files from the cache/ directory.

I'm gonna put it down to human error on my part.

Thanks Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: cirdan52 on July 14, 2015, 04:03:43 PM
Thanks Wlm, does this also correct the display small radar in the side if there is a warning ?
I tested (takes some time to find rain/thunder warnings) for all 3 scripts.
What is it exactly what you want:
NOW for NOAA and EC (EU after update):
 If switched off in the settings:  a warning will override the user setting and display the small map to click on.

Do you want to remove that override?

Wim

Wlm, I've been watching and have had numerous warnings etc over the last month and the override is not working.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on July 14, 2015, 04:09:35 PM
Thanks Wlm, does this also correct the display small radar in the side if there is a warning ?
I tested (takes some time to find rain/thunder warnings) for all 3 scripts.
What is it exactly what you want:
NOW for NOAA and EC (EU after update):
 If switched off in the settings:  a warning will override the user setting and display the small map to click on.

Do you want to remove that override?

Wim

Wlm, I've been watching and have had numerous warnings etc over the last month and the override is not working.
I think that we are talking about different scripts. I am talking about the template scripts. You are using Curly scripts.
I will check tomorrow (in  daytime ) if I can find some way to implement it for other scripts also.
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: cirdan52 on July 15, 2015, 10:14:07 AM
I clicked in the html5 and css validator at the bottom of the home page and it's showing a bunch of errors which I have no clue about. I did read here on the forum that the css validator may have changed.  Is this something to worry about?
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on July 15, 2015, 12:09:07 PM
I clicked in the html5 and css validator at the bottom of the home page and it's showing a bunch of errors which I have no clue about. I did read here on the forum that the css validator may have changed.  Is this something to worry about?
Those errors are generated because we are using the new multi-nws icons.

Could you please :
1. make a backup/copy of weather27/usa/noaafct/noaaPlainGenerateHtml.php
2. unzip attachement
3 and replace the old script with the unzipped one?

Test after invalidating the cached files by:
a. either removing the noaa files form the cache/ folder or
b. with  http://bluerock.weather.cirdan52.com/index.php?p=50-2&lang=en&force=noaafct

If you thereafter click the html check link in the footer,  those errors should be gone.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: cirdan52 on July 15, 2015, 12:23:49 PM
I clicked in the html5 and css validator at the bottom of the home page and it's showing a bunch of errors which I have no clue about. I did read here on the forum that the css validator may have changed.  Is this something to worry about?
Those errors are generated because we are using the new multi-nws icons.

Could you please :
1. make a backup/copy of weather27/usa/noaafct/noaaPlainGenerateHtml.php
2. unzip attachement
3 and replace the old script with the unzipped one?

Test after invalidating the cached files by:
a. either removing the noaa files form the cache/ folder or
b. with  http://bluerock.weather.cirdan52.com/index.php?p=50-2&lang=en&force=noaafct

If you thereafter click the html check link in the footer,  those errors should be gone.

Wim

Thanks Wim, that cured the html5 check but the css errors persist
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on July 15, 2015, 03:57:56 PM
. . . shortened . . .
Thanks Wim, that cured the html5 check but the css errors persist
If someone has the time and want to spend the effort, be my guest.

Next 2.8 release is at Dec 2015.

CSS: Some parts  inserted dynamically by javascript, there are multiple CSS adaptions for different 'old' browsers.
No way I have the time to find them in between releases.

HTML errors, on the other hand,  are always on top of the to-do list as they can also being caused by programming errors.

Wim

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: bsweather on July 27, 2015, 03:31:24 PM
The 2.7 release is available at http://support.leuven-template.eu/ (http://support.leuven-template.eu/)

There you will find the links to
  • demo sites (11 weatherprograms , 4 regions)
  • download area
  • issues page
  • documentation - WiKi
for both the current 2.7 release and the previous 2.6 release

There is also a new beta 2.7 version, check here:  http://www.wxforum.net/index.php?topic=26231.msg252812 (http://www.wxforum.net/index.php?topic=26231.msg252812)

In  Belgium (known for its superior chocolate) we also create: weather templates and php scripts.
Available is a complete multi-language and multi UOM template set.
Currently Weather Display, WeatherLink, Cumulus, Meteohub and Meteo Bridge are supported.
Language support English, Dutch, French and German using the same structure for the language files as the Saratoga templates.

demo      http://www.weerstation-leuven.be/weather2/index.php?p=10&wp=MH&lang=en (http://www.weerstation-leuven.be/weather2/index.php?p=10&wp=MH&lang=en)
download http://www.weerstation-leuven.be/ (http://www.weerstation-leuven.be/)
You will find the extensive documentation there also:
              http://www.weerstation-leuven.be/_template2/template.php?lang=en (http://www.weerstation-leuven.be/_template2/template.php?lang=en)

Other stand alone  php scripts include:

WXSIM 3in1 
demo: http://www.weerstation-leuven.be/wsWxsimSA/startDemo.php?lang=en (http://www.weerstation-leuven.be/wsWxsimSA/startDemo.php?lang=en) 
Inside the Saratoga template: http://www.wiri.be/saratoga/wxsimforecast.php?lang=en (http://www.wiri.be/saratoga/wxsimforecast.php?lang=en)

european meteo warning http://www.weerstation-leuven.be/demowarning/demoWarning.php?lang=en (http://www.weerstation-leuven.be/demowarning/demoWarning.php?lang=en)

yrno 
demo: http://www.weerstation-leuven.be/wsMetNoSA/printDemo.php?lang=en (http://www.weerstation-leuven.be/wsMetNoSA/printDemo.php?lang=en)  for a full-size version
   and http://www.weerstation-leuven.be/wsMetNoSA/printSmall.php?lang=en (http://www.weerstation-leuven.be/wsMetNoSA/printSmall.php?lang=en) for a compact version

I hope these script can be usefull for your weather website.

Wim van der Kuil
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on August 02, 2015, 03:49:58 PM
Wim,

For me to upgrade from 2.6 to 2.7a I need to do a whole full install?

Thanks for the help!
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 02, 2015, 03:58:19 PM
Wim,

For me to upgrade from 2.6 to 2.7a I need to do a whole full install?

Thanks for the help!
There is no hurry to upgrade, but if you do, YES, you should do a clean install. Also the uploaded files (now only 2) are changed, settings are heavily changed.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on August 12, 2015, 07:22:22 PM
Wim,

For me to upgrade from 2.6 to 2.7a I need to do a whole full install?

Thanks for the help!
There is no hurry to upgrade, but if you do, YES, you should do a clean install. Also the uploaded files (now only 2) are changed, settings are heavily changed.

Wim

Wim,

Thanks for the info.

Curious...

Is it possible to integrate this to your template?

http://saratoga-weather.org/NA-lightning.php

I wwwwrrreeeaaallly like that :D

Thanks Wim!!!
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 13, 2015, 02:46:15 AM
. . . shortened . . .
Is it possible to integrate this to your template?

http://saratoga-weather.org/NA-lightning.php

I wwwwrrreeeaaallly like that :D
Thanks Wim!!!
As far as I know this information is only meant for  Blitzortung contributors and the data only accessible by those people.
Not for the general public,

Wim




Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on August 13, 2015, 12:06:17 PM
. . . shortened . . .
Is it possible to integrate this to your template?

http://saratoga-weather.org/NA-lightning.php

I wwwwrrreeeaaallly like that :D
Thanks Wim!!!
As far as I know this information is only meant for  Blitzortung contributors and the data only accessible by those people.
Not for the general public,

Wim






Wim,

I am part of their Blitzorthung network :)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 13, 2015, 12:13:28 PM
. . . shortened . . .
Is it possible to integrate this to your template?

http://saratoga-weather.org/NA-lightning.php

I wwwwrrreeeaaallly like that :D
Thanks Wim!!!
As far as I know this information is only meant for  Blitzortung contributors and the data only accessible by those people.
Not for the general public,

Wim






Wim,

I am part of their Blitzorthung network :)
Then  you have to first make a stand-alone page which looks like the one from Sraratoga.
After that you can use an iframe  with wsNewpage.

If there is much interaction between the page and other services of the template, you better use a div inside the wsNewpage.

Let me know wehen you have the stand-alone page running,

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on August 13, 2015, 02:07:31 PM
Thanks WIm. Will do!
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on August 14, 2015, 10:40:00 AM
. . . shortened . . .
Is it possible to integrate this to your template?

http://saratoga-weather.org/NA-lightning.php

I wwwwrrreeeaaallly like that :D
Thanks Wim!!!
As far as I know this information is only meant for  Blitzortung contributors and the data only accessible by those people.
Not for the general public,

Wim






Wim,

I am part of their Blitzorthung network :)
Then  you have to first make a stand-alone page which looks like the one from Sraratoga.
After that you can use an iframe  with wsNewpage.

If there is much interaction between the page and other services of the template, you better use a div inside the wsNewpage.

Let me know wehen you have the stand-alone page running,

Wim


Wim,

Is up and running but is not perfect.
Not sure why the templates somewhat gets screwey when it executes.
Is a start...

Any help is appreciated!

http://www.txweather.org/index.php?p=45&lang=en#data-area

:D

Thanks!
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 14, 2015, 12:21:32 PM
. . . shortened . . .

Wim,

Is up and running but is not perfect.
Not sure why the templates somewhat gets screwey when it executes.
Remove line 72 from inc/wsBOL.php
Code: [Select]
</div><!-- end main-copy -->
Quote
Nut is a start...

Any help is appreciated!

http://www.txweather.org/index.php?p=45&lang=en#data-area
:D
Thanks!
GOOD job,

change also line 64 from
Code: [Select]
  width="623" height="454"to
Code: [Select]
  style="width: 100%;"
This will make the gif slightly larger but is looks better.

Or change the <p> at the beginning of line 63 just before the <img to have the image centered without making it larger.
Code: [Select]
<p style="text-align: center;">
===
Also change the pagename at line 17 and the version date at line 20, that makes maintenance easier later on.

Wim

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on August 14, 2015, 01:01:40 PM
. . . shortened . . .

Wim,

Is up and running but is not perfect.
Not sure why the templates somewhat gets screwey when it executes.
Remove line 72 from inc/wsBOL.php
Code: [Select]
</div><!-- end main-copy -->
Quote
Nut is a start...

Any help is appreciated!

http://www.txweather.org/index.php?p=45&lang=en#data-area
:D
Thanks!
GOOD job,

change also line 64 from
Code: [Select]
  width="623" height="454"to
Code: [Select]
  style="width: 100%;"
This will make the gif slightly larger but is looks better.

Or change the <p> at the beginning of line 63 just before the <img to have the image centered without making it larger.
Code: [Select]
<p style="text-align: center;">
===
Also change the pagename at line 17 and the version date at line 20, that makes maintenance easier later on.

Wim



Wim,

Thank you so much!!!!!!!!!!!!!!!!!! :D
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on August 24, 2015, 03:21:47 PM
Wim,

For what ever reason none of my NOAA warnings or advisories show in the front of my page...
Instead I get: No Warnings, Watches, or Advisories

Any ideas?

TIA!
Regards,
-
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 25, 2015, 07:12:47 AM
Wim,

For what ever reason none of my NOAA warnings or advisories show in the front of my page...
Instead I get: No Warnings, Watches, or Advisories

Any ideas?

TIA!
Regards,
-
It seems that the settings are to use a cron-job so the alerts are not refreshed until a cron-job is used. Or mu=1 in the URL to force a reload.

Yesterday log: http://www.txweather.org/nws-alerts/alertlog/NWSalertLog20150824.txt
No log for today: http://www.txweather.org/nws-alerts/alertlog/NWSalertLog20150825.txt

The script you are using is also an old version  wsnws-alerts.php | version: 2.5x 2014-04-22
The first 2.6 release  was already using version: 3.00 2014-09-12

As you only have 1 area code you could change the settings to not use cron.
Then  the curly scripts will refresh the alerts frequently.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on August 25, 2015, 02:08:58 PM
Wim,

For what ever reason none of my NOAA warnings or advisories show in the front of my page...
Instead I get: No Warnings, Watches, or Advisories

Any ideas?

TIA!
Regards,
-
It seems that the settings are to use a cron-job so the alerts are not refreshed until a cron-job is used. Or mu=1 in the URL to force a reload.

Yesterday log: http://www.txweather.org/nws-alerts/alertlog/NWSalertLog20150824.txt
No log for today: http://www.txweather.org/nws-alerts/alertlog/NWSalertLog20150825.txt

The script you are using is also an old version  wsnws-alerts.php | version: 2.5x 2014-04-22
The first 2.6 release  was already using version: 3.00 2014-09-12

As you only have 1 area code you could change the settings to not use cron.
Then  the curly scripts will refresh the alerts frequently.

Wim

Wim,

Can I update the script without affecting the site?
Or would it be better to just go ahead and work on getting the site up and running to the latest version?

TIA!
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jerbo on August 27, 2015, 09:44:50 PM
Wim,

 In both version 2.6 and 2.7 usa air quality page there is an html validation error.

http://punxsutawneyweather.com/index.php?p=59_2&lang=en

Error: Start tag h3 seen in table.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 28, 2015, 04:39:47 AM
Wim,

 In both version 2.6 and 2.7 usa air quality page there is an html validation error.

http://punxsutawneyweather.com/index.php?p=59_2&lang=en

Error: Start tag h3 seen in table.
Thanks for bringing this error to my attention.
Testing for USA versions seems to have been incomplete.

Attached new versions of the scripts.

The test-site does not return errors anymore.
http://weather-template.nl/weather27_america/index.php?p=15&lang=en#data-area (http://weather-template.nl/weather27_america/index.php?p=15&lang=en#data-area)

As always make a copy of the current scripts FIRST before replacing them with the new ones.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jerbo on August 28, 2015, 11:06:31 AM
Wim,

 Thanks for the fix. There is one more error. When using noaa icons (true), if a dual icon is being used there is an html validation error:
& did not start a character reference. (& probably should have been escaped as &amp;.).
 
The dual img src url from noaa includes several & characters, which creates the errors.

img src="http://forecast.weather.gov/DualImage.php?i=bkn&j=scttsra&jp=30
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 28, 2015, 11:10:17 AM
Wim,

 Thanks for the fix. There is one more error. When using noaa icons (true), if a dual icon is being used there is an html validation error:
& did not start a character reference. (& probably should have been escaped as &amp;.).
 
The dual img src url from noaa includes several & characters, which creates the errors.

img src="http://forecast.weather.gov/DualImage.php?i=bkn&j=scttsra&jp=30
The links to the php-icons come directly from the NOAA-xml.

I can look into it when you supply an url of a page at yous or someone elses website.

Thanks in advance,

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jerbo on August 28, 2015, 11:39:33 AM
Wim,

 Here is  a link to my test site.

http://punxsutawneyweather.com/weather27/index.php?p=10&lang=en
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 28, 2015, 11:59:29 AM
Wim,

 Here is  a link to my test site.

http://punxsutawneyweather.com/weather27/index.php?p=10&lang=en
Could you try this as I have no forecasts at the moment with DualImage icons:

After you made a copy, replace weather??/usa/noaafct/noaaPlainGenerateHtml.php with the attached one.

As the links to the icons are cached, you have to run the forecast ONCE with &force=noaafct:

/weather27/index.php?p=50-2&lang=en&force=noaafct

and then check if the errors are gone.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jerbo on August 28, 2015, 12:55:32 PM
Wim,

 The errors are now gone. However, there is another error on index.php?p=50-2&lang=en.

Bad value  for attribute action on element form: Must be non-empty
In the file noaa_plain_page.php <form action="" method="get"> there must be a character between the ""

Characters should be represented in NFC and spaces should be escaped as %20

So it can read <form action="%20" method="get"> or even <form action="#" method="get"> to remove this error.

Also the noaaPlainGenerateHtml.php file has two css errors. The vertical-align: center is not a valid value, using
 vertical-align: middle; removes the css errors.

                                                              Thanks,
                                                                     Jerry
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 28, 2015, 03:19:11 PM
Wim,

 The errors are now gone. However, there is another error on index.php?p=50-2&lang=en.

Bad value  for attribute action on element form: Must be non-empty
In the file noaa_plain_page.php <form action="" method="get"> there must be a character between the ""

Characters should be represented in NFC and spaces should be escaped as %20

So it can read <form action="%20" method="get"> or even <form action="#" method="get"> to remove this error.

Also the noaaPlainGenerateHtml.php file has two css errors. The vertical-align: center is not a valid value, using
 vertical-align: middle; removes the css errors.

                                                              Thanks,
                                                                     Jerry
Could you please try these?
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jerbo on August 28, 2015, 04:01:14 PM
Wim,

 Yes, those files work with no validation errors. I had already edited my files and your files are exactly the same.

One more thing to bother you with, the YRno forecast page http://punxsutawneyweather.com/weather27/index.php?p=51-2&lang=en#data-area, shows the morning forecast for the day where it should be overnight or the next morning.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 28, 2015, 04:17:06 PM
Wim,

 Yes, those files work with no validation errors. I had already edited my files and your files are exactly the same.

One more thing to bother you with, the YRno forecast page http://punxsutawneyweather.com/weather27/index.php?p=51-2&lang=en#data-area, shows the morning forecast for the day where it should be overnight or the next morning.
That is a tricky one i am already working on.
Still some time before I get the scripts ready, sorry.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jerbo on August 28, 2015, 04:47:26 PM
No problem, take your  time. Thanks again for a great script.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Aardvark on August 30, 2015, 07:29:55 PM
I am trying to get my website up and running and I am stuck on the mesonet section. I want to use midwestern weather network as you have but I don't have the codes for that script.  I need some help here.
I have this and of course it is wrong:
# IMPORTANT Mesonet id's and names
#---------------------------------------------------------------------------
$SITE['mesoID'] = 'MWWN'; // ##### 'WCWN'; 'BNLWN'; do not forget the quote's !!!
$SITE['mesoName'] = 'Midwestern Weather Network'; // ##### 'Benelux Weather Network';
$SITE['mesoLink'] = 'http://midwesternweather.net/'; // ##### 'http://www.beneluxweather.net/';
#
$SITE['ewnID'] = false; // ####
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 31, 2015, 03:06:56 AM
I am trying to get my website up and running and I am stuck on the mesonet section. I want to use midwestern weather network as you have but I don't have the codes for that script.  I need some help here.
I have this and of course it is wrong:
# IMPORTANT Mesonet id's and names
#---------------------------------------------------------------------------
$SITE['mesoID'] = 'MWWN'; // ##### 'WCWN'; 'BNLWN'; do not forget the quote's !!!
$SITE['mesoName'] = 'Midwestern Weather Network'; // ##### 'Benelux Weather Network';
$SITE['mesoLink'] = 'http://midwesternweather.net/'; // ##### 'http://www.beneluxweather.net/';
#
$SITE['ewnID'] = false; // ####

Mesonet error: This is the error message
The requested URL /MWNN-mesomap/MWNN-mesomap-testpage.php was not found on this server.
You do not have at the moment the mesonet scripts at your website.

You are a member so you are allowed downloading them by clicking on the link in your welcome letter of MWWN. I also send you a link in my answer to the same question on the support site.

Unzip the downloaded folder and place the resulting MWWN-mesomap folder in the root of your website, do not change the name.
It should be next to the weather27/ folder. Not inside that weather27/ folder.
The folder structure would be:
root/
=> MWWN-mesomap/
=> weather27/

The error will be gone and the page will be displayed inside your template website.
You have to tweak that script  /MWNN-mesomap/MWNN-mesomap-testpage.php until you are satisfied.
Be aware that you regularly have to update the Mesonet information using the /MWNN-mesomap/mesomap-update-utility.php

Success, Wim

PS 1. Please be aware that there is a +7 hours time difference between Des Moines, Iowa and Leuven, Belgium
PS 2. I try to read all 4 forums and the support site, but I can not do that when I am sleeping.
PS 3. Posting the same question on three different sites is not efficient as I have to answer three times the same message. Time wasted which could be used helping others.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on September 27, 2015, 04:23:41 AM
Hello Wim'm updating to version 2.8a, but I have a problem that does not reflect the change OLE files my_text / wsUsersetting.php  :-(
www.meteopomezia.altervista.org
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on September 27, 2015, 04:36:29 AM
Hello Wim'm updating to version 2.8a,
I am not clairvoyant,  so what is the URL of your website with a problem, the one on the left, the globe below your avatar is not leading to a Leuven-Template site.
Quote
but I have a problem that does not reflect the change OLE files my_text / wsUsersetting.php
I  have no idea what you try to tell me,
1. what is OLE,
2. what is the problem
3. is it the the filename  maybe: _my_texts/wsUserSettings.php
Quote
:-(
www.meteopomezia.altervista.org

Sorry, please try to be a bit more specific, I am at loss about what you want me to check/change/do.
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on September 27, 2015, 04:41:31 AM
Excuse me but with little English chew.

The site and this www.meteopomezia.altervista.org
When I set the parameters on the configuration 2.8a I click the save button, does not save changes to the file wsUsersetting.php and in the end I find my settings
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on September 27, 2015, 04:58:33 AM
Excuse me but with little English chew.

The site and this www.meteopomezia.altervista.org
When I set the parameters on the configuration 2.8a I click the save button, does not save changes to the file wsUsersetting.php and in the end I find my settings
Sorry my native language is Dutch, I have to converse in a another language also. That is why they invented "https://translate.google.com/".

There is a very good description of what and how to do in the WiKi
http://leuven-template.eu/dokuwiki28/doku.php?id=en:check_these_first

The "Save" button =>  the answers you just gave are saved with old answers and your old settings in a text file
The "Generate" button =>  a wsUserSettings.PHP,  .TXT and .ZIP file is  GENERATED from that text file.

After pressing the "Generate" button,  you inspect the generated file on the screen and / or download it to your PC.
You do not have to wait until you answered all questions, you can generate after the first 2 questions already.

You decide if and when you want to start using the generated wsUserSettings.php by placing it in the _my_texts/ folder using your FTP program.

No script I write is allowed to replace your wsUserSettings.php. You decide that yourself.

Wim

P.S. There is a separate discussion about 2.8 also at this forum  http://www.wxforum.net/index.php?topic=27464.0
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on September 27, 2015, 01:21:12 PM
Hello Wim managed to operate the site
Only thing that I can not translate weather warnings , Thanks

www.meteopomezia.altervista.org
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on September 27, 2015, 02:42:05 PM
Hello Wim managed to operate the site
Only thing that I can not translate weather warnings , Thanks

www.meteopomezia.altervista.org
If you want to add one language only  (= yes for you)
and that extra language it is the default language for your website  (= again yes for you)

=> change lines 947 - 984 in weather??/europe/wrnWarningv3.php from the english to your italian textst.

Wim.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on September 28, 2015, 11:52:37 AM
WIM  These questions where I find them ?
If you want to add one language only ( = yes for you )
and That extra language it is the default language for your website ( = yes again for you )
Then sure the lines are 947 --- 984 ?

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on September 28, 2015, 12:11:09 PM
WIM  These questions where I find them ?
If you want to add one language only ( = yes for you )
and That extra language it is the default language for your website ( = yes again for you )
Then sure the lines are 947 --- 984 ?
Change lines   approx. 946 - 984 in weather??/europe/wrnWarningv3.php from English to your Italian textst as in this text below.
Code: [Select]
# ----------------------------------------- New  / unknown texts -------
$warnlookup['Weather warnings'] ='Allerte Meteo';
$warnlookup['from']         ='Inizio validità dal';
$warnlookup['until']         ='Fino';
$warnlookup['level']         ='Livello';
$warnlookup['warning for'] ='Allerta per';
#
$warnlookup['no warnings'] ='Non ci sono allerte meteo';
#
$warnlookup['Wind']         ='Vento';
$warnlookup['Snow/Ice']         ='Neve/Ghiaccio';
$warnlookup['Thunderstorms'] ='Temporali';
$warnlookup['Fog']         ='Nebbia';
$warnlookup['Extreme high temperature'] ='Temperature massime estreme';
$warnlookup['Extreme low temperature'] ='Temperature minime estreme';
$warnlookup['Coastal Event'] ='Eventi nelle coste';
$warnlookup['Forestfire'] ='Incendi boschivi';
$warnlookup['Avalanches'] ='Valanghe';
$warnlookup['Rain']         ='Pioggia';
$warnlookup['Flood']         ='Alluvione';
$warnlookup['Rain-flood'] ='Alluvione da pioggie';
#
$warnlookup['White']         ='Bianco';
$warnlookup['Green']         ='Verde';
$warnlookup['Yellow']         ='Giallo';
$warnlookup['Orange']         ='Arancione';
$warnlookup['Red']         ='Rosso';
#
$warnlookup['WhiteTxt']         ='Nessuna o insufficente o vecchi dati.';
$warnlookup['GreenTxt']         ='Nessuna attenzione particolare richiesta.';
$warnlookup['YellowTxt'] ='Meteo potenzialmente Pericoloso.';
$warnlookup['OrangeTxt'] ='Meteo Pericoloso. ';
$warnlookup['RedTxt']         ='Meteo Altamente Pericoloso.';
#
$warnlookup['multiplewarnings'] ='Ci sono vari avvisi meteo';
$warnlookup['checkhere'] ='Clicca qui per altre informazioni';
$warnlookup['errorPart1'] ='Problemi di comunicazione, Vai direttamente al sito di Meteoalarm ';
$warnlookup['errorPart2'] ='e controlla gli allarmi ';
$warnlookup['warnPart1'] = 'Non posso salvare i dati';
$warnlookup['warnPart2'] ='Controlla che la directory della cache esista e sia scrivibile (permessi)';

} # --------------------- New  / unknown texts ---------- END OF -------
Those questions in the previous post  were my questions to you and I gave the answers also.

If you want to add more languages than one, you have to do a copy / paste, so please let me know because that is more tricky to do.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on September 28, 2015, 12:29:09 PM
Thanks for your patience Wim
now I understand....
I'll have to make a nice donation .... greetings from italy
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: ea1hmy on October 07, 2015, 11:45:05 AM
Could you tell me how to fix the error that appears in the page
http://www.meteotorrelavega.com/weather28/index.php?p=trends&wp=WD&lang=en

Thank you

emilio
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on October 07, 2015, 12:04:45 PM
Could you tell me how to fix the error that appears in the page
http://www.meteotorrelavega.com/weather28/index.php?p=trends&wp=WD&lang=en

Thank you

emilio
By using the correct tag/upload file for the Leuven-Template: tags.wd.txt uploaded as  tagsWD.txt.

You are using the Saratoga testtags.txt => testtags.php files.
That file can be used for most pages, but not for this one.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: ea1hmy on October 07, 2015, 12:20:31 PM
thanks,
I changed testtags by tagsWD.txt

emilio
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: ea1hmy on October 11, 2015, 04:38:50 AM
Hello Wim
On its website users there a little mistake
Spain Weather Display  Badalona meteobenalmadena.com

must be
Spain  Weather Display Benalmadena  meteobenalmadena.com/

Thank you
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on October 11, 2015, 04:46:36 AM
Hello Wim
On its website users there a little mistake
Spain Weather Display  Badalona meteobenalmadena.com

must be
Spain  Weather Display Benalmadena  meteobenalmadena.com/

Thank you
Changed to:
Spain   Weather Display      Benalmádena, Malaga      meteobenalmadena.com/
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on October 15, 2015, 02:00:48 PM
Hello Wim weather forecasts WeatherUnderground weather -forecast does not work anymore , I wanted to experience .
Thank you for the work you do  :lol:
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on October 15, 2015, 03:14:00 PM
Hello Wim weather forecasts WeatherUnderground weather -forecast does not work anymore , I wanted to experience .
Thank you for the work you do  :lol:
FIRST: You can test yourself  if it is a script error, a WU error, a api-key error and so on before posting a general remark.

1. use your own test page http://www.meteopomezia.altervista.org/weather28/?p=0000 (http://www.meteopomezia.altervista.org/weather28/?p=0000)  at the bottom you can check if the data is available.
2. check the demo sites
3. check the forums.

SECOND: There are a large number of knowledgeable users on the forum. If you want to personaly tell me something,  you should use the  message system

===

At the moment WU is down for all API requests (including the WU forecasts) and all app's.

Uploading ones own data seems not to be affected.

Discussion: http://www.wxforum.net/index.php?topic=27619.msg266891

===
This is the reason the Leuven-Template has multiple forecast-providers (4 - 6). You can select which one to be used on the startpage with one setting. So if WU is down use Met.No or Yahoo or Yr.no

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: ea1hmy on October 17, 2015, 03:45:21 AM
Hello
I am trying to configure the template to work with cumulus but do not get the main page does not catch data



     Component    Status        Age                                            h:m:s                           Latest update time as of
                                                                                                                                   17-10-2015 09:39
 Realtime file            uploadCU/realtimeTags.txt    Current            0:00:27                       17-10-2015 09:39
 Weather data files    uploadCU/tagsCU.txt           Current            0:00:29                       17-10-2015 09:39
 Weather data time    01-01-1970 01:00           NOT Current     401407:39:29                                  0:05:30
                                                                                                                                      01-01-1970 01:00
 Graphs                     uploadCU/windrose.png    NOT Current    1:06:36                             1:00:30
                                                                                                                                    17-10-2015 08:32
 WXSIM forecast      ./../plaintext.txt                      Current            0:03:40                        17-10-2015 09:35


any help

Thank you


http://www.meteotorrelavega.com/weather27/index.php
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on October 17, 2015, 04:10:56 AM
Hello
I am trying to configure the template to work with cumulus but do not get the main page does not catch data



     Component    Status        Age                                            h:m:s                           Latest update time as of
                                                                                                                                   17-10-2015 09:39
 Realtime file            uploadCU/realtimeTags.txt    Current            0:00:27                       17-10-2015 09:39
 Weather data files    uploadCU/tagsCU.txt           Current            0:00:29                       17-10-2015 09:39
 Weather data time    01-01-1970 01:00           NOT Current     401407:39:29                                  0:05:30

. . .   shortened . . .
http://www.meteotorrelavega.com/weather27/index.php
There are TWO different Cumulus weather-programs  also known as Cumulus (version 1.9)  and cumulusMX  (version 2.x)
They use some different tags, so different tags.cu.txt are in the scriptsCU folder in the template.
We can not check the file on your Cumulus system, but this is what should be a copy on your website:
http://www.meteotorrelavega.com/weather27/index.php?tagsrc&p=0000&pw=#data-area
Code: [Select]
  29 | |tempMaxMonthTime|<#MonthTempHD format=yyyymmdd><#MonthTempHT format=hhnnss>|!
Cumulus should
1. read that file tags.cu.txt
2. convert the tags to weather values 
3. give the converted file a new name tagsCU.txt
3. upload to the weather??/uploadCU/ folder

When we check the uploaded file by comparing it to the original file
Code: [Select]
   29 | |tempMaxMonthTime|<#MonthTempHD format=yyyymmdd><#MonthTempHT format=hhnnss>|!
      | |tempMaxMonthTime|<#MonthTempHD format=yyyyMMdd><#MonthTempHT format=HHmmss>|!

The uploaded file has a correct date time, so it is continuasly uploaded by Cumulus.
But the contents of the file show that the file is the unprocessed  file for CumlusMX.

So I think Cumlus is not instructed correctly to read and convert the files and then upload it.
WiKi http://leuven-template.eu/dokuwiki28/doku.php?id=en:uploadcu
Check if you put an marking in "Process".

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: ea1hmy on October 17, 2015, 04:40:33 AM
Wim thanks
already working
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: giantocr on October 28, 2015, 05:57:31 PM
I have for the Leuven Template new windgauges created.
They are available in four languages,English, German, French and Dutch.

You can see them on: http://www.meteosauwerd.nl/weather/index.php?p=wsStartPage&lang=nl

You can download them (these are 20 x 20 px) from this link: http://gofile.me/6nGNP/UxFoEI21

or this they are 600 x 600px

Link: http://gofile.me/6nGNP/0cbDxFBG


Update: 11-02-2015

These files are required for the Nearby metar reports (Airport weather page).

Link: http://gofile.me/6nGNP/dBL0wJKI


Extract the zip file and place it in the folder weather??/ajaximages.
May first make a copy of the old windgauges.
In the styleColom20.css file on line 28, I have changed "width and height" to 90px.
Questions and any comments I like to hear.

Have fun with it.

Piet
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on December 21, 2015, 03:07:28 PM
Wim,

I have been noticing with the Steelseries Gauges when I get rainfall here at home, the rain rate is showing if at all .01"/hr when my dashboard and my WD Virtual Console is showing much higher.
This morning I was seeing rainfall rates near .2-.3 inches/hr on all but my steelseries gauges.
There is an update to the Steelseries versions 2.4.2 and 2.4.3 that has a fix for this.  http://www.weather-watch.com/smf/index.php/topic,54945.msg441377.html#msg441377
I have downloaded the files, however, I have had no luck getting the update to work.
How do I make the changes to the files to implement the update into the template?

Where did you get your windrose?
Its awesome!
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on December 21, 2015, 03:23:12 PM


Where did you get your windrose?
Its awesome!
Not using the Windrose gauges...
The link is for the updated Steelseries pages...not for my site
The link for my site is on the left under my avatar, or below in the signature.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on December 21, 2015, 03:25:17 PM


Where did you get your windrose?
Its awesome!
Not using the Windrose gauges...
The link is for the updated Steelseries pages...not for my site
The link for my site is on the left under my avatar, or below in the signature.

I know :)
I am talking about this:

Edited: Took link out to minimize traffic to your site.
Thanks for the help!
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on December 21, 2015, 03:52:42 PM



I know :)
I am talking about this:
(http://lightningweather.com/quadcities/ajaxImages/wr-en-calm.png)

That is from an earlier post... http://www.wxforum.net/index.php?topic=18819.msg267946#msg267946
real easy to implement.
Sorry about the confusion.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on December 30, 2015, 09:43:41 AM
Wim,

I am reposting this for I believe you have been on Holiday for Christmas with your family and may have missed it.  This was posted originally the Monday before Christmas.

I have been noticing with the Steelseries Gauges when I get rainfall here at home, the rain rate is showing if at all .01"/hr when my dashboard and my WD Virtual Console is showing much higher.
This morning I was seeing rainfall rates near .2-.3 inches/hr on all but my steelseries gauges.
There is an update to the Steelseries versions 2.4.2 and 2.4.3 that has a fix for this.  http://www.weather-watch.com/smf/index.php/topic,54945.msg441377.html#msg441377
I have downloaded the files, however, I have had no luck getting the update to work.
How do I make the changes to the files to implement the update into the template?
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: PaulMy on December 30, 2015, 03:07:06 PM
Not sure if it applies to your setup, but Mark's Steelseries gauges latest release
Quote
01 December 2015: Latest version is 2.5.10 ...
http://sandaysoft.com/forum/viewtopic.php?f=21&t=7186&start=15

Paul

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on December 30, 2015, 03:41:38 PM
Not sure if it applies to your setup, but Mark's Steelseries gauges latest release
Quote
01 December 2015: Latest version is 2.5.10 ...
http://sandaysoft.com/forum/viewtopic.php?f=21&t=7186&start=15

Paul
Already have it downloaded. Just  need to reconfigure for this template.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on December 31, 2015, 03:31:31 AM
Wim,

I am reposting this for I believe you have been on Holiday for Christmas with your family and may have missed it.  This was posted originally the Monday before Christmas.

I have been noticing with the Steelseries Gauges when I get rainfall here at home, the rain rate is showing if at all .01"/hr when my dashboard and my WD Virtual Console is showing much higher.
This morning I was seeing rainfall rates near .2-.3 inches/hr on all but my steelseries gauges.
There is an update to the Steelseries versions 2.4.2 and 2.4.3 that has a fix for this.  http://www.weather-watch.com/smf/index.php/topic,54945.msg441377.html#msg441377
I have downloaded the files, however, I have had no luck getting the update to work.
How do I make the changes to the files to implement the update into the template?
Well sorry i missed it, I checked on this forum all your posts until 2 months back, but did not find your original post.

Your post directly addresses me, I think, as the one being on vacation so lets compare a forum question and the other solution:
Support: There is a support system at http://support.leuven-template.eu/ 
No tickets can be lost as I am reminded by the system about the status of each ticket
You can specify the severity of the support ticket also. Errors in the template scripts will get my immediate attention, even when I am on vacation.
Forum: Here questions are asked to which any reader can react. So, for you,  the advantage is that a lot of people can help you with all kind of fresh new solutions. The disadvantage for you is that you are not addressing a specific person.
The advantage for me is that there are a lot of users with knowledge with can add to the solution and a lot of times others have already given the solution when i was still sleeping. The disadvantage for me: Sometimes there are multiple new posts especially as there is a 5-9 hours time-difference between my home and most US users.  So I regularly will  overlook a post.

Conclusion:
If you need support because there is an error or inconsistency use the support system.
If you want a discussion, use the forum.
And if you address a new topic, do not hide it in an already existing general topic as with this question.   I think that a new topic with a title such as  "Leuven Steelseries rain-rate  displays wrong value"  will attract far more knowledgable visitors.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on December 31, 2015, 05:40:00 AM
=== @PaulMy
Not sure if it applies to your setup, but Mark's Steelseries gauges latest release
Quote
01 December 2015: Latest version is 2.5.10 ...
http://sandaysoft.com/forum/viewtopic.php?f=21&t=7186&start=15

Paul
Thank you Paul for jumping in / trying to help.

Background:
There are multiple implementations of PHP scripts gauges using all using the original HanSolo/SteelSeries javascripts.
The one you are pointing to is Mark's Steelseries one page display, first for Cumulus, extended to multiple other weather programs. It has a lot of javascript code as it can convert the units used on the fly.

Another one is Henkka's one, with the nice boxes below each gauge with high low values.

And my "fork" of Mark's one which is based on version 1.05x 2015-05-12 and is used for 12 weather-programs, all conversion of units is done on the webserver, the different scripts/components use different numbers of gauges.

So there is no way to simply drop in another javascript as the javascript part differs considerably between the  different versions.

=== @jonnyj771
Wim,
. . . shortened . . .
I have been noticing with the Steelseries Gauges when I get rainfall here at home, the rain rate is showing if at all .01"/hr when my dashboard and my WD Virtual Console is showing much higher.
This morning I was seeing rainfall rates near .2-.3 inches/hr on all but my steelseries gauges.
The gauges use a WD supplied value for the rainrate. Field#10 from the clientraw.txt

Quote
There is an update to the Steelseries versions 2.4.2 and 2.4.3 that has a fix for this.  http://www.weather-watch.com/smf/index.php/topic,54945.msg441377.html#msg441377
I have downloaded the files, however, I have had no luck getting the update to work.
How do I make the changes to the files to implement the update into the template?
As explained above you can not mix and match the javascripts. There is no javascript involded either as  it displays the value supplied by the weatherprogram as is.

If the value on a gauge is not correct, you should look into a php script on the webserver. There is only 1 script handling (nearly) all values displayed on all components, that is wsAjaxDataLoad_v3.php

This script
1. loads the tags uploaded by your weather-program (tagsWD.txt)
2. then overwrites those values by a more recent realtime file (clientraw.txt) and
3. supplies the requested information, in this case a json string for javascript for the gauges.

This is the line using the value from clientraw field #10.
Code: [Select]
$ws['rainRateAct']      = (string)wsConvertRainfall($arr_rt['10'], $fromRain);If that is not the current rain-rate (WD tag %currentrainrate% ) inform me what in your opinion should be used as tag for WD users.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: PaulMy on December 31, 2015, 10:08:03 AM
Thank you Wim for your explanation.  When I noticed the OP
Quote
There is an update to the Steelseries versions 2.4.2 and 2.4.3 that has a fix
for this.  http://www.weather-watch.com/smf/index.php/topic,54945.msg441377.html#msg441377 (http://www.weather-watch.com/smf/index.php/topic,54945.msg441377.html#msg441377) 
I assumed the question was related to Mark's gauges and knew there were later updates.  I have now learned more about steelseries...
 
Regards,
Paul
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on December 31, 2015, 10:13:51 AM
Thank you Wim for your explanation.  When I noticed the OP
Quote
There is an update to the Steelseries versions 2.4.2 and 2.4.3 that has a fix
for this.  http://www.weather-watch.com/smf/index.php/topic,54945.msg441377.html#msg441377 (http://www.weather-watch.com/smf/index.php/topic,54945.msg441377.html#msg441377) 
I assumed the question was related to Mark's gauges and knew there were later updates.  I have now learned more about steelseries...
 
Regards,
Paul
And there is even a fourth version which will interest you,  as it only for Cumulus users: http://weatherbyyou.com/ss_forged.php
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: ericfynne on December 31, 2015, 10:29:03 AM
And there is even a fourth version which will interest you,  as it only for Cumulus users: http://weatherbyyou.com/ss_forged.php
I think those are actually Mark's gauges.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on December 31, 2015, 10:53:07 AM
And there is even a fourth version which will interest you,  as it only for Cumulus users: http://weatherbyyou.com/ss_forged.php
I think those are actually Mark's gauges.
Sorry, I was not clear in my posting. All Steelseries implementations started with  Mark's gauges.js as he was the first one to make a practical implementation of HanSolo's Steelseries.

But WeatherByYou also had to adapt the gauges.js to steelseries/gauges.wby.js.
So what I meant: Do not mix and match as the javascripts are different. Both the gauges.js and the steelseries-min.js

Wim

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: ericfynne on January 01, 2016, 07:43:45 AM
Ah, OK - understood. I had thought that the WeatherByYou gauges were using Mark's current version of the gauges, but had just given them a paint job.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: jonnyj771 on January 04, 2016, 12:21:17 PM
...shortened...
If the value on a gauge is not correct, you should look into a php script on the webserver. There is only 1 script handling (nearly) all values displayed on all components, that is wsAjaxDataLoad_v3.php

This script
1. loads the tags uploaded by your weather-program (tagsWD.txt)
2. then overwrites those values by a more recent realtime file (clientraw.txt) and
3. supplies the requested information, in this case a json string for javascript for the gauges.

This is the line using the value from clientraw field #10.
Code: [Select]
$ws['rainRateAct']      = (string)wsConvertRainfall($arr_rt['10'], $fromRain);If that is not the current rain-rate (WD tag %currentrainrate% ) inform me what in your opinion should be used as tag for WD users.

Wim


Wim,
I will post this issue on the Weather-Watch Forum to see what I can get for a response.  As it stands right now due to the time of year, It has gotten cold enough that it's not going to be raining anytime soon here in my neck of the woods for a few months. But, maybe I can get some response and have someone that has this template that will be receiving rain in the next few months can beta test my theory.
I believe (maybe you have it tweaked differently than I am thinking), there is an adjustment in the gauges.js and it is not reading the customclientraw.txt properly. This was the original problem with Mark's scripts. When I get this figured out, I will pass it along.
I do not believe the ajaxDataloadv3.php is the issue since the ajaxDashboard.php (home page) is working fine for the rain rate. The Console page (WD Virtual Console) also worked just fine too.

Regards

Jonny J
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: kyomar on February 23, 2016, 04:01:07 AM
Hi everybody, I am using the wsmetno3 script and love it - thank you so much for providing this awesome weather script. I have a problem with the accuracy of the weather data. If I compare the weather forecast on yr.no and the scipt I am getting different forecasts with the same lat, long (latitude=36.6982 - longitude= 137.8619). The yr.no website forecast is much more accurate. Am I missing something? Any help would be greatly appreciated.
Thank you,
Markus aka Kyomar
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on February 23, 2016, 04:41:57 AM
Hi everybody, I am using the wsmetno3 script and love it - thank you so much for providing this awesome weather script. I have a problem with the accuracy of the weather data. If I compare the weather forecast on yr.no and the scipt I am getting different forecasts with the same lat, long (latitude=36.6982 - longitude= 137.8619). The yr.no website forecast is much more accurate. Am I missing something? Any help would be greatly appreciated.
Thank you,
Markus aka Kyomar

This is a very interesting observation you are posting here. To look into this I need
1. The URL to the met.no forecast page on your own website
2. The URL to the  forecast page  on the yr.no site or the country/region/city code in the browser address line.

Quote
The yr.no website forecast is much more accurate.
What is exactly the difference in accuracy?
Do you haver some examples?

The forecast data from yr.no obtained in xml differs only marginal form the forecast data obtained from met.no
Both are using the same forecasting engines for most places.

So it would be very interesting to discover why the forecasts differ in accuracy in your case.
Especially as there is also a Leuven forecast using the yr.no data and for most places they do not differ that much.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: kyomar on February 23, 2016, 05:21:06 AM
Thank you very much Wim for your prompt response - much appreciated. It's mainly the temp. which differ. Here are the two links:
Website: http://www.koyuki-hakuba.com/weather-hakuba.html
yr.no (quite accurate): http://www.yr.no/place/Japan/Nagano/Hakuba/
Many thanks for your help!
Markus
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on February 23, 2016, 05:58:21 AM
Thank you very much Wim for your prompt response - much appreciated. It's mainly the temp. which differ. Here are the two links:
Website: http://www.koyuki-hakuba.com/weather-hakuba.html
yr.no (quite accurate): http://www.yr.no/place/Japan/Nagano/Hakuba/
Many thanks for your help!
Markus
I did some comparing between the two xml => forecasts.
They differ more for your area as with other areas. I will dig deeper later on.
But I can not see from here what forecast metno or yrno is more accurate
Meaning which is is better predicting the future temperatures.

If you think the yrno data is more accurate and prefer a forecast based on yr.no data you could use the Leuven "yr.no" script.
The output is similar to  the metno script but it uses the yrno data.
Download-location as for all scripts at http://www.weerstation-leuven.be/ tab "Leuven PHP scripts for use on your own website:"

Of course there are other yr.no scripts,
this one from Henkka http://www.nordicweather.net/phpscripts.php?en 
and also the Meteotemplate uses yr.no data => http://www.meteotemplate.com/web/index.php

If I find a reason for the differences I will post it here.
If you find which future prediction is more accurate please let me know.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on February 23, 2016, 06:06:59 AM
This is just a thought, but could it be that one or the other is always more up-to-date? I found that sometimes they simply update some services more frequently, especially when talking about the more long-term forecasts, so it would also be worth checking if maybe the other one later changes to what the first one originally was, while the first one might have already changed again to a more recent version.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: kyomar on February 23, 2016, 06:09:32 AM
Thank you Wim & Jachym for looking into this. yrno is definitely always more accurate, so I will check the script links for yrno data.
Markus
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on February 29, 2016, 01:52:11 PM
Hi wim I should put this image this http://www.meteopalestrina.it/allerte/pomezia/fulmini.php on the left column just below the menu as I do? sorry for the question.... ;)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on February 29, 2016, 03:19:11 PM
Hi wim I should put this image this http://www.meteopalestrina.it/allerte/pomezia/fulmini.php on the left column just below the menu as I do? sorry for the question.... ;)
Good evening,

When I click the globe under your avatar I arrive at: http://www.pomeziameteo.it/
That uses maybe some Leuven scripts but I do  not detect a
Quote
left column just below the menu
as you mention.

Is there another site and if so, can you point me to it?
If it is running 2.8 you can add extra info, websites , also images by using the  weather??/_my_texts/friendly_websites.php
There are default links to the Leuven-Template as example. But you can use all kind of info there.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on March 01, 2016, 11:52:47 AM
 Excuse me wim I forgot the site url
www.meteopomezia.altervista.org
Thank you   :lol: :lol:

Thanks Wim I succeeded ...
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: kokos1405 on April 04, 2016, 01:42:47 AM
After applying the wu fix(https update) i cannot get wureports for 2016. 2015 works fine.
I get this message: Error file for 2016 has unknown uom's

Any help?
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on April 04, 2016, 02:00:49 AM
After applying the wu fix(https update) i cannot get wureports for 2016. 2015 works fine.
I get this message: Error file for 2016 has unknown uom's

Any help?
As with most scripts the retrieved data is  cached.

The data for wu-reports  "this year until today" is  only replaced 2 times / day.
So after midnight the data is reloaded and all will be OK.
Or delete the cached-file   ??/cache/XXXXXXXX-year-2016.txt 
?? = path to your cache folder
XXXXXXXX = your WU-name,  for my situation the file name would be IVLAAMSG47-year-2016.txt

===

The wu data for the temps part on the startpage is cached as wu_almanac_C  of wu_almanac_F
The almanac data is only loaded 1 /day.

===

Should have explained e to delete the files from the cache, sorry

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: kokos1405 on April 04, 2016, 02:29:36 AM
Nice. Thanks for the reply.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Scotty51 on April 05, 2016, 09:09:00 PM
Thanks for the help Wim, all is fixed with my site.
Title: multiple cities
Post by: Syem on April 28, 2016, 10:52:57 AM
Hello. I have some questions. I love yrno forecast (wsyrnofct) template but for multiple cities the only solution is to make multiple folders with specific settings? Or i can change the location directly from link similar with language "printfull.php?lang=fr", something like "printfull.php?location=Italy/Rome"? If location can not change from link, is hard to be implemented? Or there is a simple solution to change cities and i don't know it?
Title: Re: multiple cities
Post by: wvdkuil on April 28, 2016, 11:14:22 AM
Hello. I have some questions. I love yrno forecast (wsyrnofct) template but for multiple cities the only solution is to make multiple folders with specific settings? Or i can change the location directly from link similar with language "printfull.php?lang=fr", something like "printfull.php?location=Italy/Rome"? If location can not change from link, is hard to be implemented? Or there is a simple solution to change cities and i don't know it?
If you are using the Leuven-Template ==> this is a standard facility.
http://www.weerstation-wilsele.be/index.php?p=ws_yrno_page&lang=en#data-area

If you are using the stand-alone version, this is not possible without changing the scripts.

But you could install the Leuven-Template just to use the scripts in an iframe inside your own weather-website.
http://weather-template.nl/weather28/?p=ws_yrno_page&lang=en&ipad
This link will display the yr.no forecast at 100% width of your browser window.
So use a similar link after installing the Leuven-template and use it as the source of an iframe on your own page.
Numerous people are doing that to integrate weather-pages inside their own (joomla) websites.

Using the template and not the stand-alone scripts has some BIG advantages: 
1. Only one set of settings to take care of, and all scripts can be used in the same way.
2.  Uploading two data files even allows you to use the gauges or  Davis console script http://weather-template.nl/weather28/?p=console&lang=en&ipad
3 . . n . Or any other script/page or component of the template.

Wim
Title: Re: multiple cities
Post by: Syem on April 28, 2016, 11:32:59 AM
Thank you wvdkuil, this is exactly what was i looking for.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on May 18, 2016, 06:04:43 PM
Hello Wim

Where wold be the best place to put the google analytics code on the template AND only at 1 place ?

Header ?
index ?
footer?
ect.

also,on the GA code page,theres the code and another line like this one <?php include_once("analyticstracking.php") ?>
but it says AFTER the <body> tag..... there a re a lot of pages that doesnt have the <body> tag

thanks ;)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on May 19, 2016, 12:27:40 PM
Hello Again...

in /inc/statusWeatherSystem , ive tumbled on this:

/*
if(file_exists('nexstorm.jpg')) {
        do_check(langtransstr("Nexstorm Lightning map"),'nexstorm.jpg',10*60+15,'file');
}
#---------------------------------------------------------------------------------------------------
if(file_exists('TRACReport.txt')) {
        do_check(langtransstr("Nexstorm TRACreport"),'TRACReport.txt',10*60+15,'file');
}
#---------------------------------------------------------------------------------------------------
if(file_exists('nexstorm_arc.dat')) {
        do_check(langtransstr("Nexstorm Data file"),'nexstorm_arc.dat',10*60+15,'file');      
}
#---------------------------------------------------------------------------------------------------   
*/

I have Nexstorm and would like to ''enable'' these lines.Ive searched on the wiki and not much about this.

Ive tried to remove those */ and ended with a blank page hehehe

thanks
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on May 19, 2016, 12:54:51 PM
@virusdunil
Out of town, will answer tomorrow,
There is a support system also at http://support.leuven-template.eu/
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on May 19, 2016, 04:22:55 PM
No problem Win....

as for the nexstorm support in the support page,the only thing ive fund is this
Unsupported for now

I try to adhere to the 80/20 rule while developing the Leuven-Template.

    If 80% of users have everything they want to use in the template
    I only need to program 20% of all possibillities.

Therefore I myself have not yet implemented nexstorm lightning or similar applications.

But the template set is completely open and can (with some programming experience) be extended.
 
on this link..
http://leuven-template.eu/dokuwiki28/doku.php?id=en:faq:unsupportedextensions&s[]=nexstorm

cheers
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: saratogaWX on May 19, 2016, 04:23:31 PM
Hello Again...

in /inc/statusWeatherSystem , ive tumbled on this:

/*
if(file_exists('nexstorm.jpg')) {
        do_check(langtransstr("Nexstorm Lightning map"),'nexstorm.jpg',10*60+15,'file');
}
#---------------------------------------------------------------------------------------------------
if(file_exists('TRACReport.txt')) {
        do_check(langtransstr("Nexstorm TRACreport"),'TRACReport.txt',10*60+15,'file');
}
#---------------------------------------------------------------------------------------------------
if(file_exists('nexstorm_arc.dat')) {
        do_check(langtransstr("Nexstorm Data file"),'nexstorm_arc.dat',10*60+15,'file');      
}
#---------------------------------------------------------------------------------------------------   
*/

I have Nexstorm and would like to ''enable'' these lines.Ive searched on the wiki and not much about this.

Ive tried to remove those */ and ended with a blank page hehehe

thanks
Just change the '/*' to '//*' and the '*/' to '//*/' and the section will be enabled.

Code: [Select]
//*
if(file_exists('nexstorm.jpg')) {
        do_check(langtransstr("Nexstorm Lightning map"),'nexstorm.jpg',10*60+15,'file');
}
#---------------------------------------------------------------------------------------------------
if(file_exists('TRACReport.txt')) {
        do_check(langtransstr("Nexstorm TRACreport"),'TRACReport.txt',10*60+15,'file');
}
#---------------------------------------------------------------------------------------------------
if(file_exists('nexstorm_arc.dat')) {
        do_check(langtransstr("Nexstorm Data file"),'nexstorm_arc.dat',10*60+15,'file');     
}
#---------------------------------------------------------------------------------------------------   
//*/
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on May 19, 2016, 04:32:13 PM
Thanks Ken...

ive copied/paste the new code with no luck...

Also,Ill have to ask where to tell leuven to go get the nexstorms data...is it directly on the codes above ?

changing this: do_check(langtransstr("Nexstorm TRACreport"),'TRACReport.txt',10*60+15,'file');
to this: do_check(langtransstr("Nexstorm TRACreport"),'/nexstorm/data/TRACReport.txt',10*60+15,'file');

?

thanks again ;)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: saratogaWX on May 19, 2016, 04:41:23 PM
The default code assumes that the files are in the SAME directory as the website template.

If you have the Nexstorm files uploaded to a different directory, then the code has to be changed to point to that directory.

If the files are in folders below the website, then use './nexstorm/data/' before the file names.
If the files are in a different directory parallel to the website, then '../nexstorm/data/' should be used.

Example
Code: [Select]
//*
$NXdir = './nexstorm/data/'; # set this to the directory where NexStorm files are located.
#  set to './' if they are in the same directory as the website

if(file_exists($NXdir . 'nexstorm.jpg')) {
        do_check(langtransstr("Nexstorm Lightning map"),$NXdir . 'nexstorm.jpg',10*60+15,'file');
}
#---------------------------------------------------------------------------------------------------
if(file_exists($NXdir . 'TRACReport.txt')) {
        do_check(langtransstr("Nexstorm TRACreport"),$NXdir . 'TRACReport.txt',10*60+15,'file');
}
#---------------------------------------------------------------------------------------------------
if(file_exists($NXdir . 'nexstorm_arc.dat')) {
        do_check(langtransstr("Nexstorm Data file"),$NXdir . 'nexstorm_arc.dat',10*60+15,'file');     
}
#---------------------------------------------------------------------------------------------------   
//*/
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on May 19, 2016, 06:21:19 PM
Thanks a lot Ken...Perfect =D&gt;

i just had to change this ./ to that ../
 ;)

http://meteolacstjean.com/weather28/index.php?p=statusWeatherSystems&lang=fr

cheers
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on May 20, 2016, 07:50:39 AM
Hello Wim

Where wold be the best place to put the google analytics code on the template AND only at 1 place ?

Header ?
index ?
footer?
ect.

also,on the GA code page,theres the code and another line like this one <?php include_once("analyticstracking.php") ?>
but it says AFTER the <body> tag..... there a re a lot of pages that doesnt have the <body> tag

thanks ;)

@virusdunil
Hello,
Question: the best place to put the google analytics code
I would put it in the wsFooter.php at the bottom.
The footer is displayed on all pages as long as the pages are not in &ipad mode when used inside another framework.

Remark: there a re a lot of pages that doesnt have the <body> tag
There is only one page which generates the body tag, that is the index.php.
Not other scripts have to bother with that as long as they are running in the template.
Some of them can also be run stand-alone so they have the code to echo the general parts, but that code is not used in side the template.

Success, Wim

@saratogaWX  Thanks for answering the other question.




Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on May 20, 2016, 08:33:27 AM
Thanks Wim...

I did some trial and error (as usual :-P )

And got the code working as well as my Live viewers on GA dashboard.I did try the footer but was ending in footer /bottom banner not showing up hehehe.

so finally left it in the header1  ;)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on May 22, 2016, 02:39:59 PM
Hello again Wim...Ive just realize that when looking at the template from a mobile phone,yn yowindow dashboard its showing for Brussels :shock:

ive searched on the wiki here http://leuven-template.eu/dokuwiki28/doku.php?id=en:yowindow&s[]=yowindow

but not what i was searching for...I know that flash doesnt work on mobile but,ive re searched in the user settings as well to re verify my settings.

where should i look ?

Thanks
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on May 22, 2016, 03:41:06 PM
Hello again Wim...Ive just realize that when looking at the template from a mobile phone,yn yowindow dashboard its showing for Brussels :shock:

ive searched on the wiki here http://leuven-template.eu/dokuwiki28/doku.php?id=en:yowindow&s[]=yowindow

but not what i was searching for...I know that flash doesnt work on mobile but,ive re searched in the user settings as well to re verify my settings.

where should i look ?

Thanks
i can not check the location-id as the yowindow page gives an error.
The id is in line 40 in wsDashYowindow.php
Code: [Select]
$yowindow_place_ID      = '6125653'; Better use the latitude/longitude setting in the next line which is now
Code: [Select]
$use_yow_lat_lon        = false;   and set it to true
Code: [Select]
$use_yow_lat_lon        = true;   That way we can see what the real temps are at your place.
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on May 22, 2016, 05:07:14 PM
Does the YoWindow plugin work at all on mobiles? I thought it uses flash, which is not supported by mobile OS (and will not be by desktop browsers soon...)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on May 22, 2016, 05:32:18 PM
The widget is replaced with yr.no meteogram ;)

Its working now :)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on May 22, 2016, 05:59:51 PM
The widget is replaced with yr.no meteogram ;)

Its working now :)

Good choice ;)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on May 23, 2016, 03:07:21 AM
The widget is replaced with yr.no meteogram ;)

Its working now :)
Sorry, I misunderstood. I thought you meant that yowindow was displaying data for Brussels.
It was the yr.no meteogram back-up you talking about.

@Jáchym @all
When visiting a Leuven-Template site with a smart-phone => the small phone pages are displayed. No room for large gadgets.
When visiting a Leuven-Template site with a tablet or a laptop/desktop=> the normal site is shown.

But as not all devices support FLASH anymore so all flash scripts are loaded on top of a backup-background with similar data.
Behind the YoWindow there is another forecast => yr.no meteogram as a .png. If the device  / visitor does not want or does not have Flash the Meteogram replaces the yowindow gadget.
Same for the realtime WD-Live if it is selected for the start-page. No flash means that a (sub)set of the steelseries gauges is displayed as an alternative. Same for WU flash gadget or Meteoware live. Those two are also realtime parts using Flash so they are replaced with gauges also.
If someone designs its startpage with multiple realtime parts, only one of them is replaced with the gauges, others are replaced with a one-line message.

@Jáchym => Flash discussions
Chrome:
As far as I understand Chrome is still supporting its own version of Flash, it is only showing a one-time warning that the visitor must decide to use Flash.

Develop products for a profit:
Without the  possibility to get a payment no more "flashy" products will be developed.  With HTML-5/Javascript there is no way to sell a product as all sources/scripts are un-compiled. Using a 'call-home' script to check if the product is licensed is  a worse solution when the site who checks the validity is hacked or down.

Example:
WD-Live is a very fine, very adaptable product. Most sites only use a very small subset of the possibilities. 
No way this same level of professionalism can be developed for free.
Neither can it be maintained when all scripts are open to modification by the user.

When I started  programming in 1969 I was using COBOL as one of the  languages. Although multiple IT-watchers always predicted the end of the COBOL-era for at least 30 years, it is still used and maintained. So lets see if one can weed out the current bad version of Flash or that we have to live for another 10+ years with it. And I simply do not understand why a large company as Google keeps hammering out Flash as they could develop a safe to use version without even the smallest dent in their profits.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on May 23, 2016, 05:41:09 AM
Hi Wim,

Flash is a problem, we all know it. It used to be great for what it could do, but it was always problematic with regards to security and demands on the PC. HTML5 and CSS3 can do basically all that Flash can and even more.

But there is one problem which is what you mentioned, JS being a browser language means you will always see the code and be able to edit it, copy it etc. There is obviously no way around it. With PHP as a server language, this is not a problem. But then again, look at many scripts like Highcharts for example. They also sell it even though you can see every single line of the code.

Chrome and FF if I understood it correctly, will support it but only until the end of the year. Then, it will only be possible if the user specifically goes to the browser settings and enables it there. Now it shows you a prompt, but by default it is enabled, once they disable it by default, Im sure many users dont even know about the possibility of "turning something on, somewhere in the settings" and also, I think it is also a matter of time before it is completely cut off. So developing anything in Flash is a dead end. Everyone knows this, just look at the recently discontinued https://weatherspark.com/. It used to be a great site...  Read the statement at the bottom of the page...
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on June 03, 2016, 10:31:05 AM
Hello Wim...i went to your support page for leuven and,on the contact form i got surprised to see the captcha with nearby city names...Is this normal or...

someone / something is infected

St prime St Felicien are 2 citys just north from me so...and i have a doubt :roll:

cheers
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 03, 2016, 10:34:38 AM
Hello Wim...i went to your support page for leuven and,on the contact form i got surprised to see the captcha with nearby city names...Is this normal or...

someone / something is infected

St prime St Felicien are 2 citys just north from me so...and i have a doubt :roll:

cheers
You should ask google. as this is strictly run by google. You and me have no influence on what they want to show.

Sometimes it is text from books they are digitizing, sometimes house-numbers and street-names from google streetview.

Wim

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on June 03, 2016, 10:42:32 AM
Ahh thanks....its just the first time i see nearby things in captcha so... if its from google then...everything is possible

thanks ;)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on June 03, 2016, 10:42:42 AM
No it is not a coincidence Carl... Google knows terrifyingly lot of things about you.... for example when I tried it on myself using Google Analytics, not only did i get all the info about my OS, browser, language setting, but of course also location and based on other things such as cookies etc. it estimated I am a 25-35 old male interested in IT and science.... (just to add to that, I am a male, I am 29 and my hobbies are IT and weather and I majored in biology...)

Ï guess you would prefer a captcha like this then :D
(http://www.onlineaspect.com/wp-content/uploads/2010/07/math_challenge.jpg)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: zejan on June 08, 2016, 05:52:51 AM
Hello there.

On my old weather webside, I have weather videoes (http://zejan.dk/wxkalender_vejrvideoer.php) . Now I'm trying to move the videos over to Leuven-Template (http://zejan.dk/weather28/index.php?p=403&lang=da#data-area), it's almost working, but the  Leuven-Template can't read the calender from the script. It seems like I'm missing a part, and I was wondering if you could help me out finding it?

Ps. the wskalender attachment is the new, and the wxkalender attachement is the old one.

Best regards Jan
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 08, 2016, 07:53:09 AM
Hello there.

On my old weather webside, I have weather videoes (http://zejan.dk/wxkalender_vejrvideoer.php) . Now I'm trying to move the videos over to Leuven-Template (http://zejan.dk/weather28/index.php?p=403&lang=da#data-area), it's almost working, but the  Leuven-Template can't read the calender from the script. It seems like I'm missing a part, and I was wondering if you could help me out finding it?

Ps. the wskalender attachment is the new, and the wxkalender attachement is the old one.

Best regards Jan
You are using the difficult approach.
Multiple errors because of a mix of relative and absolute adressing.
You can see those errors when using Chrome as a browser => right click => choose inspect => click console
Example of a 404 error:
http://zejan.dk/weather28/public_html/scripts/mediaplayer-5.10/jwplayer.js

which should be
http://zejan.dk/scripts/mediaplayer-5.10/jwplayer.js
Code: [Select]
2http://zejan.dk/weather28/public_html/scripts/mediaplayer-5.10/jwplayer.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-bg_inset-hard_100_fcfdfd_1x100.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-bg_glass_85_dfeffc_1x400.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-icons_d8e7f3_256x240.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-bg_gloss-wave_55_5c9ccc_500x100.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-icons_217bc0_256x240.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-bg_glass_75_d0e5f5_1x400.png Failed to load resource: the server responded with a status of 404 (Not Found)

Lets take the easy approach:

1. you have a complex working script running in a Saratoga envirionment.
2. Then you should make a copy ( sakalendar_vejrvideoer.php )   and create a stand-alone version by removing all includes for Saratoga parts.
3. run this script until it is working perfect
4. Make a copy of the _my_scripts/my_newPage.php (wxkalender_vejrvideoer.php) and use the iframe part to run sakalendar_vejrvideoer.php

This way you know for sure that it is always working and is not influenced by any standard script or setting or addressing issue which exist between different templates such as Saratoga and Leuven.

Hope this is clear, otherwise use the support system. You can also sent me a userid/password so I can make the script for you.
 
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: zejan on June 08, 2016, 09:40:53 AM
HI Wim

Thanks for the fast reply, I'll message you in a personal message with the userID and password.

/Jan
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on June 10, 2016, 11:34:31 AM
Hi Wim...looks like WU played in their maps again...

cant acces (blanck page) for the WU stations Map
Yours...
http://weather-template.nl/weather28/index.php?p=03&lang=en&wp=WL

and mine...
http://meteolacstjean.com/weather28/index.php?p=03&lang=fr

cheers
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on June 10, 2016, 11:44:14 AM
This looks like they set a parameter in the header to block loading this as an iframe.

Console:

Refused to display 'https://www.wunderground.com/fullscreenweather' in a frame because it set 'X-Frame-Options' to 'SameOrigin'.

This means it can only be loaded from within wunderground.com server. Many pages do that to prevent people iframing their sites :D

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on June 10, 2016, 11:47:55 AM
Hi Win...looks like WU played in their maps again...

cant acces (blanck page) for the WU stations Map
Yours...
http://weather-template.nl/weather28/index.php?p=03&lang=en&wp=WL

and mine...
http://meteolacstjean.com/weather28/index.php?p=03&lang=fr

cheers
They do a redirect to a "general" page without all the nice forecast info
This was the old link:
https://www.wunderground.com/cgi-bin/findweather/getForecast?brand=wxmap&query=50.89518,4.69741&lat=50.89518&lon=4.69741&zoom=11&type=roadmap&units=metric&rad=0&sat=0&svr=0&cams=0&tor=0&wxsn=1&wxsn.mode=temp&wxsn.opa=50&wxsn.bcdgtemp=0&wxsn.rf=0

The new page they redirect you to is  https://www.wunderground.com/fullscreenweather  and that one refuses to be in an iFrame, what I understand as it is far to general compared to the old page.

So another "nice" station page is dead.

I will try to find a part of the old WU site which is still working.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on June 10, 2016, 11:49:30 AM
Thanks WIM ;)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on June 10, 2016, 12:26:30 PM
Hi Win...looks like WU played in their maps again...

cant acces (blanck page) for the WU stations Map
Yours...
http://weather-template.nl/weather28/index.php?p=03&lang=en&wp=WL

and mine...
http://meteolacstjean.com/weather28/index.php?p=03&lang=fr

cheers
They do a redirect to a "general" page without all the nice forecast info
This was the old link:
https://www.wunderground.com/cgi-bin/findweather/getForecast?brand=wxmap&query=50.89518,4.69741&lat=50.89518&lon=4.69741&zoom=11&type=roadmap&units=metric&rad=0&sat=0&svr=0&cams=0&tor=0&wxsn=1&wxsn.mode=temp&wxsn.opa=50&wxsn.bcdgtemp=0&wxsn.rf=0

The new page they redirect you to is  https://www.wunderground.com/fullscreenweather  and that one refuses to be in an iFrame, what I understand as it is far to general compared to the old page.

So another "nice" station page is dead.

I will try to find a part of the old WU site which is still working.

Wim

True, but Im just wondering if it is worth looking Wim, even if you find some old link, I think they are slowly shutting down all the old links (which makes sense), so it would again be just a temporary solution.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on June 10, 2016, 12:40:18 PM
...Ill try to be polite here...


My message is adressed to WIM...especially for a LEUVEN TEMPLATE problem....

I think HE knows what to do and HE will come up with the best solution for HIS TEMPLATE

if HE says that there is NO solutions but to remove the link well,ill do what HE says for HIS template.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on June 10, 2016, 12:41:53 PM
I dont get what your problem is Carl, I have nothing against him trying to find some older version of WU, the only reason I mentioned it was because just recently some links to the old version of WU stopped working, so it is likely they will gradually completely remove the old site.

So calm down.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on June 10, 2016, 12:43:43 PM
Also, if Wim comments on something or suggest something in the Meteotemplate thread, it would only be welcomed and I see nothing wrong with me pointing out something here either.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: virusdunil on June 10, 2016, 12:51:59 PM
Im Calm but...The thing is ...my message is specificly adressed to WIM.......not you or fred or the pope
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on June 10, 2016, 12:55:02 PM
OK, sorry, I didnt know this is how you think this forum works.

In that case let me just please ask you if you ever see someone else other than me commenting on something with regards to Meteotemplate in the Meteotemplate thread, let them be, I appreciate it
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: saratogaWX on June 10, 2016, 01:06:57 PM
Over time, websites that we use as source for our own sites will change (and maybe become unusable).  Most recently, the NWS decision to shutdown weather.noaa.gov (our source for METAR info, amongst other raw data) in favor of tgftp.nws.noaa.gov site.

Wunderground has been morphing too - the old 'classic' site is long gone, and they're really focusing on apps and main-site mobile friendliness.  I wouldn't be supprised if they switch to HTTPS in the near future, and that would cause some of our scripts to be redone to handle that.  Such is the life of 'data scrapers'.. I've been at it for 10 years now, and see the future as more of the same adapting to what the source sites do (generally without much prior notice).

As a template developer, I really appreciate it when Wim or Jachym answer questions regarding my scripts/template -- their advice is good, and being in a different timezone, extends the coverage hours for responses.  So, thanks to both Wim and Jachym for doing that!  I also appreciate the forum members who have 'been there, fixed that' when they answer questions based on experience with the problem -- it saves me from having to respond to issues that have happened before/been resolved before.  That's what the forums are about -- members helping members and all of us learning and advancing our mutual weather hobby.

Best regards,
Ken
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on June 10, 2016, 01:13:57 PM
I agree with you Ken, I personally see HTML scraping as the very last resort, it is always problematic and always means sooner or later you as a developer will have problems with it. And more and more often major sites try to disable this because obviously they do not want others to use their server resources and duplicate content. Fortunately, more and more sites also offer their own API, which is much safer to use and also much less vulnerable to any future problems. Its just that obviously you can only use what they want you to be able to use, but then the other thing is that thats also the only thing you should be using anyway, if they dont want certain parts of the page to be used by other websites (eg. the WU site above), then trying to find a workaround or scraping it would 99% be against the terms anyway.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: saratogaWX on June 10, 2016, 01:26:41 PM
I agree that page-scraping is the last resort, and that using a provided API is preferable.  Some sites API is inadequate (the EC for forecasts for example), so a page-scrape is needed to provide both icons and text for a forecast there.  My scripts have been converted from scrapers to API-users where the APIs exist (Wunderground forecast, USGS earthquakes, NWS alerts, USNO sun/moon) and will continue to be converted as new APIs appear.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: txweather.org on June 18, 2016, 10:01:44 AM
Thank you all for everything. Ken, Wim, Jachym, Curly, The whole crue!
You guys are awesome and what you guys are doing for the community its priceless.

Thank you all again and to me all of you guys opinions are priceless.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: stewart45 on August 11, 2016, 04:08:17 AM
somehow I have screwed up my website main page , since moving over to Meteobridge, it appeared to work for a while , the ajax dashboard has not been updating now for a couple of days, correct data is being uploaded every 2mins to the right area uploadMB not sure where to look now
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on August 11, 2016, 06:27:25 AM
I think the problem is in your mbTags.
Looking at your webpage and the console, the Ajax calls work fine, but the results fed to the page show the zeros.

In fact if you look in the mbTags.txt you attached, you will see that for example the T-act, which in MB is the current temperature, is 0.

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 11, 2016, 07:38:41 AM
somehow I have screwed up my website main page , since moving over to Meteobridge, it appeared to work for a while , the ajax dashboard has not been updating now for a couple of days, correct data is being uploaded every 2mins to the right area uploadMB not sure where to look now
As @Jáchym already pointed to, your upload files uploadMB/tagsMB.txt contains  at random times  only zeroes or -- values.  But most of the times the values are quite normal. If this happen again, check the live data page, maybe the communication between MB and the console failed.
You can check here:  http://www.skeltonweather.uk/weather2/index.php?compare&p=0000
Normally the tagsMB.txt is uploaded every 5 minutes.
With a faster frequency the realtime is uploaded also. http://www.skeltonweather.uk/weather2/uploadMB/realtime.txt  Newer values from the realtime files are merged with the 5 minutes values.   Those combined values should be displayed on your startpage.

As far as I can see the values seems correct at this time, example here: http://www.skeltonweather.uk/weather2/index.php?p=historyv3

The only error I see is that you did not yet update the links to get correct METAR data.  So the current conditions are not there and the icon is the "question-mark" one.  There is a big warning EXTREMELY IMPORTANT and a link to a how-to document at all the support pages,  leading to this pdf http://leuven-template.eu/noaa.pdf

Wim



Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on August 11, 2016, 07:44:59 AM
somehow I have screwed up my website main page , since moving over to Meteobridge, it appeared to work for a while , the ajax dashboard has not been updating now for a couple of days, correct data is being uploaded every 2mins to the right area uploadMB not sure where to look now
As @Jáchym already pointed to, your upload files uploadMB/tagsMB.txt contains  at random times  only zeroes or -- values.  But most of the times the values are quite normal. If this happen again, check the live data page, maybe the communication between MB and the console failed.
You can check here:  http://www.skeltonweather.uk/weather2/index.php?compare&p=0000
Normally the tagsMB.txt is uploaded every 5 minutes.
With a faster frequency the realtime is uploaded also. http://www.skeltonweather.uk/weather2/uploadMB/realtime.txt  Newer values from the realtime files are merged with the 5 minutes values.   Those combined values should be displayed on your startpage.

As far as I can see the values seems correct at this time, example here: http://www.skeltonweather.uk/weather2/index.php?p=historyv3

The only error I see is that you did not yet update the links to get correct METAR data.  So the current conditions are not there and the icon is the "question-mark" one.  There is a big warning EXTREMELY IMPORTANT and a link to a how-to document at all the support pages,  leading to this pdf http://leuven-template.eu/noaa.pdf

Wim

Thanks Wim for more detailed analysis, I see it now working too, but when I looked about an hour and half ago, shortly after he posted it, all the current values were 0 and that is what the page showed.

So this clearly shows that the scripts and their setup are fine. Otherwise it would never work. It must be a problem in the communication between MB and the PWS.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: stewart45 on August 11, 2016, 10:10:15 AM
Thanks everyone, yes it appeared to be a comms problem, also the Lat setting in the meteobridge software had a strange corruption, where there should have been the Latitude reading for my site had been substituted by the word "meteobridge" very strange anyway seems to be sorted now just have to sort out the current weather icon, thanks again,
Jachym, like your Olympic's banner
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on August 11, 2016, 10:42:21 AM
LOL, thanks :D

and with regards to your page I guess neither me nor Wim can help you, you must find the source of the comms problem and if unsure contact Boris
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Météo Québec on August 15, 2016, 05:46:41 AM
 :? On my Leuven website the last rained show 31-12 @ 19:00 since yesterday morning... And its not the first time it happen. I look in my WD webfiles  the testtags and tagsWD and both show my last rained correctly. the tag of wsAjaxDashboard_v3.php is set up like this:    
<p><span class="lTxt"><?php echo langtransstr("Last rain on").":";?></span><span class="rTxt"><?php echo $ws['lastRainTip'].string_date($ws['lastRained'],$SITE['dateMDFormat'].' @ '.$SITE['timeOnlyFormat']); ?></span></p>

Also the nearby metar is not uploading anymore, i have check in the ca_multi_fct.txt and all the metar codes are correct.

For the burtime (Sunburn in), does someone know what is the proper tag?

Last thing, in the UV section the UV 8 (red) should be in the very high section (red) and not in the high section (orange).

Thanks

Steven
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 15, 2016, 11:56:35 AM
:? On my Leuven website the last rained show 31-12 @ 19:00 since yesterday morning... And its not the first time it happen. I look in my WD webfiles  the testtags and tagsWD and both show my last rained correctly. the tag of wsAjaxDashboard_v3.php is set up like this:    
<p><span class="lTxt"><?php echo langtransstr("Last rain on").":";?></span><span class="rTxt"><?php echo $ws['lastRainTip'].string_date($ws['lastRained'],$SITE['dateMDFormat'].' @ '.$SITE['timeOnlyFormat']); ?></span></p>

Also the nearby metar is not uploading anymore, i have check in the ca_multi_fct.txt and all the metar codes are correct.

For the burtime (Sunburn in), does someone know what is the proper tag?

Last thing, in the UV section the UV 8 (red) should be in the very high section (red) and not in the high section (orange).

Thanks

Steven
sorry, I am abroad without proper internet. Will look into this after 28 August. Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Météo Québec on August 15, 2016, 12:07:21 PM
:? On my Leuven website the last rained show 31-12 @ 19:00 since yesterday morning... And its not the first time it happen. I look in my WD webfiles  the testtags and tagsWD and both show my last rained correctly. the tag of wsAjaxDashboard_v3.php is set up like this:    
<p><span class="lTxt"><?php echo langtransstr("Last rain on").":";?></span><span class="rTxt"><?php echo $ws['lastRainTip'].string_date($ws['lastRained'],$SITE['dateMDFormat'].' @ '.$SITE['timeOnlyFormat']); ?></span></p>

Also the nearby metar is not uploading anymore, i have check in the ca_multi_fct.txt and all the metar codes are correct.

For the burtime (Sunburn in), does someone know what is the proper tag?

Last thing, in the UV section the UV 8 (red) should be in the very high section (red) and not in the high section (orange).

Thanks

Steven
sorry, I am abroad without proper internet. Will look into this after 28 August. Wim
No problem Wim, thanks.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on August 17, 2016, 08:31:40 PM
Hello Wim wanted to warn you that the cloud radar invisible how can I fix ?
Thank you for the work you do for us
www.meteopomezia.altervista.org
Thanks  ;)
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 18, 2016, 03:13:12 AM
Hello Wim wanted to warn you that the cloud radar invisible how can I fix ?
Thank you for the work you do for us
www.meteopomezia.altervista.org
Thanks  ;)
i am back after August 28 and I can check what is causing this, sorry for the delay
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: djroby19 on August 18, 2016, 04:58:29 AM
No problem Wim.... :grin:
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Jáchym on August 18, 2016, 05:42:46 AM
It is not a problem with the template, the entire sat24 page is currently inaccessible.

http://www.sat24.com/
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on August 28, 2016, 11:32:07 AM
:? On my Leuven website the last rained show 31-12 @ 19:00 since yesterday morning... And its not the first time it happen. I look in my WD webfiles  the testtags and tagsWD and both show my last rained correctly. the tag of wsAjaxDashboard_v3.php is set up like this:    
<p><span class="lTxt"><?php echo langtransstr("Last rain on").":";?></span><span class="rTxt"><?php echo $ws['lastRainTip'].string_date($ws['lastRained'],$SITE['dateMDFormat'].' @ '.$SITE['timeOnlyFormat']); ?></span></p>
I am not familiar with that code or the function used. Please ask the person who amended your script for advice.
Quote
Also the nearby metar is not uploading anymore, i have check in the ca_multi_fct.txt and all the metar codes are correct.
The weather.noaa.gov website officially stopped working in June this year, although it seemed to continue for a few months extra.  There are multiple discussions on the fora. Check the Leuven-Template support site: http://support.leuven-template.eu/  There is a VERY LARGE message on each page which links to => a pdf at: http://leuven-template.eu/noaa.pdf
You should modify this line 46 in metar/wsMetarTxt.php
Code: [Select]
$metarURL = 'http://weather.noaa.gov/pub/data/observations/metar/stations/'. $icao.'.TXT';to
Code: [Select]
$metarURL = 'http://tgftp.nws.noaa.gov/data/observations/metar/stations/'. $icao.'.TXT';
Quote
For the burtime (Sunburn in), does someone know what is the proper tag?

Last thing, in the UV section the UV 8 (red) should be in the very high section (red) and not in the high section (orange).
There are different descriptions for that.  I will put a setting in the next release of the script to choose the range for each color and to choose which texts should be used.
Quote
Thanks
Steven
Succes, wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Météo Québec on August 28, 2016, 03:58:51 PM
:? On my Leuven website the last rained show 31-12 @ 19:00 since yesterday morning... And its not the first time it happen. I look in my WD webfiles  the testtags and tagsWD and both show my last rained correctly. the tag of wsAjaxDashboard_v3.php is set up like this:    
<p><span class="lTxt"><?php echo langtransstr("Last rain on").":";?></span><span class="rTxt"><?php echo $ws['lastRainTip'].string_date($ws['lastRained'],$SITE['dateMDFormat'].' @ '.$SITE['timeOnlyFormat']); ?></span></p>
I am not familiar with that code or the function used. Please ask the person who amended your script for advice.
Quote
Also the nearby metar is not uploading anymore, i have check in the ca_multi_fct.txt and all the metar codes are correct.
The weather.noaa.gov website officially stopped working in June this year, although it seemed to continue for a few months extra.  There are multiple discussions on the fora. Check the Leuven-Template support site: http://support.leuven-template.eu/  There is a VERY LARGE message on each page which links to => a pdf at: http://leuven-template.eu/noaa.pdf
You should modify this line 46 in metar/wsMetarTxt.php
Code: [Select]
$metarURL = 'http://weather.noaa.gov/pub/data/observations/metar/stations/'. $icao.'.TXT';to
Code: [Select]
$metarURL = 'http://tgftp.nws.noaa.gov/data/observations/metar/stations/'. $icao.'.TXT';
Quote
For the burtime (Sunburn in), does someone know what is the proper tag?

Last thing, in the UV section the UV 8 (red) should be in the very high section (red) and not in the high section (orange).
There are different descriptions for that.  I will put a setting in the next release of the script to choose the range for each color and to choose which texts should be used.
Quote
Thanks
Steven
Succes, wim

Thanks for your respond Wim :) The nearby metar is working now after the change.

I tough maybe you have know about the code of last rain on and the sunburn because your template and carterlake have different code for theses tags.

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: WessexWeather on September 29, 2016, 04:31:37 PM
Hello Wim,

Please would you look at my uvforecastv3.php script and tell me where I have gone wrong?

http://www.wessexweather.net/uvv3/uvforecastv3.php

Many thanks.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on September 30, 2016, 03:06:10 AM
Hello Wim,
Please would you look at my uvforecastv3.php script and tell me where I have gone wrong?
http://www.wessexweather.net/uvv3/uvforecastv3.php
Many thanks.

You use http://www.wessexweather.net/uvv3/uvforecastv3.php to start the script.
If you run the forecast with an url in the browser, the uvv3 folder is already in the URL so the setting at line 12 should be leaved as is in the download
Code: [Select]
$myfolder       = './';So change it back and the script should run fine.

If you include the script with php from inside another php script with
Code: [Select]
include './uvv3/uvforecastv3.php'the script needs to know where the images and cache-folder are located so the setting in line 13 should be used by removing the  comment mark # at the first position of line 13
Code: [Select]
$myfolder       = './uvv3/';
Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Météo Québec on February 10, 2017, 03:08:59 PM
Hi, can someone can explain or having an ideal why my
Weather data files    uploadWD/tagsWD.txt    NOT Current    0:05:43    0:05:30 10-02-2017 15:01
Weather data time    10-02-2017 15:00    NOT Current    0:06:45    0:05:30 10-02-2017 15:00


Thanks
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on February 10, 2017, 03:31:00 PM
Hi, can someone can explain or having an ideal why my
Weather data files    uploadWD/tagsWD.txt    NOT Current    0:05:43    0:05:30 10-02-2017 15:01
Weather data time    10-02-2017 15:00    NOT Current    0:06:45    0:05:30 10-02-2017 15:00


Thanks
The statuspage is not for vistiors of your site, it is for you, the webmaster, to check the upload from Wd to your website.

I followed your status page for more then 15 minutes and there are only minor problems shown.

Normally the tags file is uploaded every 5 minutes. The status page checks the age and finds it is in your example 5 minutes 43 seconds old. It warns you that it is not within the set limit of 5 minutes.

The data inside the file has a time stamp also. The default settings allow the data to be 30 seconds older then the upload time. In your example the data in the file is 6 minutes 45 seconds old.

These values are very acceptable when they only happen a few times per day. Sometimes a server is very busy with other websites and the ftp processes have to wait.  All quite normal.

When there are multiple warnings every hour and especially when the age of the file and the the data is far more older , say 15 minutes, you should check the WD logfiles to see why the tags files are not uploaded frequently enough.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Météo Québec on February 10, 2017, 03:39:51 PM
Hi, can someone can explain or having an ideal why my
Weather data files    uploadWD/tagsWD.txt    NOT Current    0:05:43    0:05:30 10-02-2017 15:01
Weather data time    10-02-2017 15:00    NOT Current    0:06:45    0:05:30 10-02-2017 15:00


Thanks
The statuspage is not for vistiors of your site, it is for you, the webmaster, to check the upload from Wd to your website.

I followed your status page for more then 15 minutes and there are only minor problems shown.

Normally the tags file is uploaded every 5 minutes. The status page checks the age and finds it is in your example 5 minutes 43 seconds old. It warns you that it is not within the set limit of 5 minutes.

The data inside the file has a time stamp also. The default settings allow the data to be 30 seconds older then the upload time. In your example the data in the file is 6 minutes 45 seconds old.

These values are very acceptable when they only happen a few times per day. Sometimes a server is very busy with other websites and the ftp processes have to wait.  All quite normal.

When there are multiple warnings every hour and especially when the age of the file and the the data is far more older , say 15 minutes, you should check the WD logfiles to see why the tags files are not uploaded frequently enough.

Wim

Thanks Wim,

Can you tell me where exactly i can check this out?

Ex: FTP Log from WD?
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on February 10, 2017, 03:57:03 PM
. . . shortened . . .

Thanks Wim,

Can you tell me where exactly i can check this out?

Ex: FTP Log from WD?
I am not running the 12 supported weather-programs anymore. But as far as I remember there was indeed an ftp log for the 5 minutes file.

The clientraw uploads use a separate ftp program with its own log, but there seems no problem with that.

Again 5 minutes upload always will have a few warnings every now and then, especially when it is busy on the server. On the computer-server your website is running, there are at least 10 other webservers for other domains asking for time also.  Especially FTP, having a lower priority and generating a lot of overhead, will have to wait when it is busy with normal HTTP website visitors.

You could set the upload in Wd to 4 minutes. that way there is an extra minute before you see a warning on the status page.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Météo Québec on February 10, 2017, 04:05:07 PM
. . . shortened . . .

Thanks Wim,

Can you tell me where exactly i can check this out?

Ex: FTP Log from WD?
I am not running the 12 supported weather-programs anymore. But as far as I remember there was indeed an ftp log for the 5 minutes file.

The clientraw uploads use a separate ftp program with its own log, but there seems no problem with that.

Again 5 minutes upload always will have a few warnings every now and then, especially when it is busy on the server. On the computer-server your website is running, there are at least 10 other webservers for other domains asking for time also.  Especially FTP, having a lower priority and generating a lot of overhead, will have to wait when it is busy with normal HTTP website visitors.

You could set the upload in Wd to 4 minutes. that way there is an extra minute before you see a warning on the status page.

Wim

OK and where can i set the upload in WD If you remember. That is my last question. You was helpfull Wim and thank you very much.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on February 10, 2017, 04:22:39 PM
It is a few hours more into nighttime over here then in Quebec, I hope this will be OK for now.
http://leuven-template.eu/dokuwiki28/doku.php?id=en:uploadwd

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Météo Québec on February 10, 2017, 04:39:01 PM
It is a few hours more into nighttime over here then in Quebec, I hope this will be OK for now.
http://leuven-template.eu/dokuwiki28/doku.php?id=en:uploadwd

Wim

Ok cool, i will figure this out :)

Once again, thank you for your help!

Steven
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: PernicketyPete on February 10, 2017, 06:01:51 PM
Hi All
I have been directed here by Jachym. I hope I'm in the right place.
I have run into some problems when trying to upload historic data to meteotemplate. I am getting a "406 Not Acceptable!
An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security." Screen. I have had a google around and found this.

It would seem l need to edit my .htaccess file. Please see link https://www.tipsandtricks-hq.com/apache-mod-secruity-update-how-to-fix-error-406-or-not-acceptable-issue-259
Which method should I use?

At the moment when viewed in notepad .htaccess file is just one line, this is it -

# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
DirectoryIndex index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm home.htm default.htm index.fcgi default.html
# -FrontPage-


<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthUserFile /home/chiltho1/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/chiltho1/public_html/_vti_pvt/service.grp
ErrorDocument 404 /404.shtml

AuthName chilthorneweather.co.uk
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

If I was to edit this file with either of the two methods mentioned on the tipsandtricks website, where would I put those lines of code in relation to what's there already?
Sorry if this sounds a really dumb question but I'm always a bit nervous about editing stuff, especially when I have no idea what it's for or what it does. I don't want to break my site.

I have noticed that I also have a file called .htaccess.predirectoryindex this is it's contents.

# -FrontPage-


<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthUserFile /home/chiltho1/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/chiltho1/public_html/_vti_pvt/service.grp
ErrorDocument 404 /404.shtml

AuthName chilthorneweather.co.uk
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

Maybe this would be the one to edit.??

I hope someone can point me in the right direction on this one

Cheers Pete

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on February 11, 2017, 03:10:42 AM
@ PernicketyPete

I think you are in the right forum as one can discuss about all topics here on the wxforum.net.
But for sure you are  in the wrong discussion. This discussion is about another template. Not about Apache and its problems.

Do a search (box upper right) for htaccess and you find multiple discussions about htaccess, mostly in the Weather Web Site Help (http://www.wxforum.net/index.php?board=40.0)
Please make a new topic there with a descriptive subject title like "How to solve 406 Not Acceptable  in htaccess"and people will read your question and help to find answers. 

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: stewart45 on April 18, 2017, 04:38:32 AM
Bit of help needed, trying to setup the HTTP service on Meteobridge but keep getting error messages when testing, the FTP Event upload works fine, doubly checked everything, maybe a fresh pair of eyes could spot something I've missed
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on April 18, 2017, 05:03:44 AM
Bit of help needed, trying to setup the HTTP service on Meteobridge but keep getting error messages when testing, the FTP Event upload works fine, doubly checked everything, maybe a fresh pair of eyes could spot something I've missed
At this moment (2017-04-18 11:00 CEST), all links to your site result in 404 not found error.
Test script PHP => http://www.weatherwatcher.co/weather28/printSite.php
The .txt files in scriptsMB/ => http://www.weatherwatcher.co/weather28/scriptsMB/realtimeGet.txt
The main start page => http://www.weatherwatcher.co/weather28/index.php

But all work when NOT using weather28/
Test script PHP => http://www.weatherwatcher.co/printSite.php
The .txt files in scriptsMB/ => http://www.weatherwatcher.co/scriptsMB/realtimeGet.txt
The main start page => http://www.weatherwatcher.co/index.php

Probably you modified your cPanel settings to skip the weather28/ folder in your http links.
You have to do that in your Meteobridge links also.

IMPORTANT:
All your template settings are still the original ones, so it is initial settings => Weather Display
Please follow the install sequence step-by-step by FIRST uploading your modified settings in step 4 and testing with the demo files
AFTER that start uploading your own files in step 5.


Wim


Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on April 20, 2017, 05:20:02 AM
Still waiting for the NOAA final changes of the new point-click forecast.  Cut-over date now April 24, 2017.

All forecast scripts are ready to test and can be downloaded at the Leuven-Template support site: http://support.leuven-template.eu/

Stand-alone / Saratoga-template versions  available at: http://www.weerstation-leuven.be/northam/noaafct/demo.php?plain&lang=en

FIRST  backup / copy or zip  your current noaafct/ folder before you start testing the new version.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: BertSP on November 15, 2017, 11:18:44 AM
I have been running WXSIM 3 in 1 script for a couple of years embedded in Meteotemplate which is getting its strings from WD. Worked great.
Running PHP 7.0 no problem. when I switched to PHP 7.1 I get the following errors:

Warning: A non-numeric value encountered in /home/spme/public_html/template/wsWxsimSA/otherScripts/wsFunctions.php on line 164

Notice: A non well formed numeric value encountered in /home/spme/public_html/template/wsWxsimSA/otherScripts/wsFunctions.php on line 233

Warning: A non-numeric value encountered in /home/spme/public_html/template/wsWxsimSA/otherScripts/wsFunctions.php on line 233

Notice: A non well formed numeric value encountered in /home/spme/public_html/template/wsWxsimSA/wsWxsimGetFile.php on line 236

The display does show below the errors correctly.
Since I am no PHP expert or even neophyte, can anyone tell me what changes I need to make in the code.

http://www.s-p.me/template/custom/wxsimmeteogram.php

Thanks
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on November 15, 2017, 11:35:54 AM
I have been running WXSIM 3 in 1 script for a couple of years embedded in Meteotemplate which is getting its strings from WD. Worked great.
Running PHP 7.0 no problem. when I switched to PHP 7.1 I get the following errors:

Warning: A non-numeric value encountered in /home/spme/public_html/template/wsWxsimSA/otherScripts/wsFunctions.php on line 164

Notice: A non well formed numeric value encountered in /home/spme/public_html/template/wsWxsimSA/otherScripts/wsFunctions.php on line 233

Warning: A non-numeric value encountered in /home/spme/public_html/template/wsWxsimSA/otherScripts/wsFunctions.php on line 233

Notice: A non well formed numeric value encountered in /home/spme/public_html/template/wsWxsimSA/wsWxsimGetFile.php on line 236

The display does show below the errors correctly.
Since I am no PHP expert or even neophyte, can anyone tell me what changes I need to make in the code.

http://www.s-p.me/template/custom/wxsimmeteogram.php

Thanks
I am outside my home without decent internet from today for two weeks.
Solution: Switch off error reporting. It are warnings and notices, irritating but no invalid data is generated.
Check the start.php script, somewhere in the first few lines there should be something like:
Code: [Select]
#---------------------------------------------------------------------------
# set error reporting 
#---------------------------------------------------------------------------
# for testing and debugging only  -  set to comment for production versions
ini_set('display_errors', 'On');   error_reporting(E_ALL);
#
Change the important line to
Code: [Select]
ini_set('display_errors', 0);   error_reporting(0);
I will look into it when I am back December 1, but have to get the scripts somewhere from a backup first as your linenumbers do not match the version I have.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on December 22, 2017, 02:59:48 AM
As I am working on a new version of the Leuven-Template and scripts, I suspended the downloads of the current versions.
The new version will be similar on the outside, but smaller, faster  and  easier to install and support as all code has been redone.

That 2.9 version of the template will be available March/April 2018
Alfa test versions: https://www.weerstation-herent.be/ and  https://weer.sluispark.be/
Beta test program will start in Februari.

Probably in April the fully supported forecast scripts will be available also.
Beta TEST versions, some documentation and download "at your own risk" are available at:
https://www.weerstation-herent.be/saratoga/wsfct4/index.html
No installation support, no discussions on the forum please.
Just post errors using the support forum: https://support.leuven-template.eu/

Wim

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: PaulMy on December 22, 2017, 10:53:39 AM
Thanks Wim, look forward to release.

On my current  www.komokaweather.com/weather28 I have removed the previous ws_snow.txt from webserver because the page was only showing for one date, the last snow entry of 2016-2017 being April 7, 2017, and when I entered data for November 2017 for the 2017-2018 snow season it did not show.  I then added data for November 2017 and a new ws_snow.txt was created.  The following is in the new ws_snow.txt:
Quote
|2017|11|10|deft|9.5|9.5|
|2017|11|11|deft|3|0|
|2017|11|12|deft|1|0|
|2017|11|13|deft|0|0|
|2017|11|20|deft|0|0.1|
|2017|11|22|deft|0.10|0.1|
|2017|11|23|deft|3|3|
but it does not display when clicking the Snow tab.  I remember you helped me about a year ago in setting the snow season months and that worked fine for 2016-2017 season, but 2017-2018 months are no different than 2016-2017.  Any suggestion on the right way to get 2017-2018 snow to display?

Thanks,
Paul
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on December 22, 2017, 11:05:35 AM
Thanks Wim, look forward to release.

On my current  www.komokaweather.com/weather28 I have removed the previous ws_snow.txt from webserver because the page was only showing for one date, the last snow entry of 2016-2017 being April 7, 2017, and when I entered data for November 2017 for the 2017-2018 snow season it did not show.  I then added data for November 2017 and a new ws_snow.txt was created.  The following is in the new ws_snow.txt:
Quote
|2017|11|10|deft|9.5|9.5|
|2017|11|11|deft|3|0|
|2017|11|12|deft|1|0|
|2017|11|13|deft|0|0|
|2017|11|20|deft|0|0.1|
|2017|11|22|deft|0.10|0.1|
|2017|11|23|deft|3|3|
but it does not display when clicking the Snow tab.  I remember you helped me about a year ago in setting the snow season months and that worked fine for 2016-2017 season, but 2017-2018 months are no different than 2016-2017.  Any suggestion on the right way to get 2017-2018 snow to display?

Thanks,
Paul
I copied your http://www.komokaweather.com/weather28/ws_snow/ws_snow.txt
to http://weather-template.nl/weather28/ws_snow/ws_snow.txt

At http://weather-template.nl/weather28/ it shows correct snow measurements.
So I attach a zip of the  ws_snow.php script running on the demo server, please unzip and replace your version.
Faster then comparing the scripts and finding the error if one is there.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: PaulMy on December 22, 2017, 01:38:01 PM
Thanks Wim,
I have it all sorted now and all up to date. www.komokaweather.com/weather28

I checked the ws_snow.zip you attached against what I had on my webserver and the attachment is older which did not include the changes for the season months and a spelling mistake and longitude from latitude error that was corrected in the 2016-11-21 version.  But your attachment still worked.  So did some further investigation and I then uploaded the 20161121 version I had on my computer and that worked, and has those previous updates/corrections. 

Not sure how but looks like the ws_snow.php version I had on my webserver might have gotten mixed up with an older version during my recent process of downloading/backup and then re-upload for my cPanel webhosting update.  As a further test I uploaded the ws_snow.php that I had in the downloading/backup folder on my computer and that didn't work.  So again uploading/replacing ws_snow.php with the 2016-11-21 version on my computer and all seems ok.

Thank you for looking, testing and attaching the zip as that made me look into it further as it had been working fine throughout the 2016-2017 season (to end of April 2017).

Regards,
Paul

Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: stewart45 on July 12, 2018, 02:27:02 PM
I've used this software in the past strayed off to try a few others but would now like to use it again I like the clean setup etc, but seeing the last posts on here where in Dec 17 I was wondering if the Template was still being supported, I did read about a complete rewrite in the pipeline
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: PaulMy on July 12, 2018, 03:04:13 PM
I believe it is still supported and Wim monitors regularly here

https://support.leuven-template.eu/
https://support.leuven-template.eu/problems28.php?lang=en

Enjoy,
Paul
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on July 12, 2018, 03:12:31 PM
I've used this software in the past strayed off to try a few others but would now like to use it again I like the clean setup etc, but seeing the last posts on here where in Dec 17 I was wondering if the Template was still being supported, I did read about a complete rewrite in the pipeline
Support site: https://support.leuven-template.eu/   where you find the download request and the links to the different WiKi's, for the current release that is  https://leuven-template.eu/dokuwiki28/doku.php?id=en:start

As you were already a sponsor/user  in 2013 you will be surprised of all that  has changed. 
The latest release is 2.8x and is fully compatible with HTTPS PHP7.2 and all scripts/files are UTF-8.

Just a warning as you are now using Meteotemplate which is IMHO a very good template, I see a lot of very satisfied users also in my home country.  But the internal structure  is totally different for the three templates, Meteo-  Leuven- and the Saratoga-Template.  All knowledge, experience a.s.o. you gained the last years in using one of these templates will make installing another one extra difficult.   

And in my experience running two of those templates next to each other always ends in two not well maintained templates.

Wim

@PaulMy When i was typing my answer you already  answered with the links.   As my english does not flow that quickly from brain to keyboard, I only saw your answer when I submitted mine.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: stewart45 on July 12, 2018, 04:26:20 PM
Thanks for the reply, are you working on a re-write for the near future
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on July 13, 2018, 03:20:57 AM
Thanks for the reply, are you working on a re-write for the near future
This 2.8x version is the final 2.? version and will be maintained for the next 2 years, if I will be around that long.

Yes, I am always working on  anew version, minor ones or major ones.
Probably there will be no 2.9 version as
- the disadvantages for the current users of a installing  60% totally new code
- the extra time needed for supporting 2 different templates,
does not offset the easier maintenance / support

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: stewart45 on July 13, 2018, 03:43:02 AM
I'm sure you'll be around a lot longer than 2 years  :grin:
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: Aardvark on July 13, 2018, 08:47:48 AM
I went with SSL and a dedicated IP address through Hostmonster, my web host.     They pointed me toward this :   https://www.whynopadlock.com (https://www.whynopadlock.com)
That showed me all what needed to change in the 2.8 templates .  Then I had to locate where they were one by one after checking that the http reference had an https  option.  Those things that didn't have it, I turned them off.   

then I redid the sitemap and uploaded that. we are fine now.

I had questions, but Wim declined to help me this time and I figured I should do it myself. I really didn't appreciate being called a "freeloader," and told to go waste someone else's time.   However,that being said   I  did make the changes I have and eventually look at the Saratoga templates harder when I have the time.

Personally, I do care , but I shouldn't care, consider the source and move on.   Do use the reference if you are going to the padlock being secure,  happy hunting and tweaking.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: BertSP on July 13, 2018, 09:43:08 PM
Wim,
I have been using your Betas of V4 forecast since last fall. I keep checking for the final release or updates, and the page keeps saying "Latest version will be available shortly. I don't have any issues with the Beta that I am running, but its always good to get the latest version.
Thanks for this V4 series.
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on July 14, 2018, 03:09:32 AM
Wim,
I have been using your Betas of V4 forecast since last fall. I keep checking for the final release or updates, and the page keeps saying "Latest version will be available shortly. I don't have any issues with the Beta that I am running, but its always good to get the latest version.
Thanks for this V4 series.
It is beta as I need feedback. Only mini feedback received until now.
It is beta as NOAA/NWS is still not switched to the new point-click format.  Since April 2017 there were numerous API-changes.

I updated the scripts based on my own testing and will do a new beta upload end of July.  I added a Darksky version also which i am testing at my own website. And yes,  I need to update the download one of these days.

But when there is no (negative or positive) feedback it is not that high  on my priority list. As far as I know there are only 2 or 3 users.

If you have question you can use the support site (https://support.leuven-template.eu/?lang=en) also,

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on July 23, 2018, 02:53:24 PM
I tried to move all Leuven Template and scripts to one location

Leuven-Template Download and support at support => template (https://support.leuven-template.eu/index.php?lang=en)
Current version Template: 2.8x is fully PHP7.2 - UTF-8  HTML-5  HTTPS compliant

===========================

All scripts  Download, Demo  and support at support => scripts (https://support.leuven-template.eu/scripts.php?lang=en)

Forecast scripts version 4 usable in all regionsFor  Canada 1 script  using Environment Canada data.
For the USA 2 different scripts using NOAA/NWS data for a "Map-Click"  type and 1 using SOAP data.
Other forecast scripts  for UV and for HWA,  a local Dutch provider.

AirQuality scripts for PurpleAir sensor and Luftdaten sensor  both in two different versions

WeatherAlarm for Europe / Meteoalarm

WeatherUnderground stations-data is used for a "ColoredTables" type script and for another clone of the  "WU-History" script.

All scripts are usable stand-alone and in the Saratoga Template directly from the download.
And most of them are also included in the Leuven-Template.

===========================

I will not post individual links anymore as they tend to change (my fault) to much.
So visit the scripts support (https://support.leuven-template.eu/scripts.php?lang=en) or template support (https://support.leuven-template.eu/index.php?lang=en) page and you will find all links there.

Now I have to scan all post to find other old links.  If you find old links not working (404) or pointing to the wrong location, a Message with the URL of  to the page would be very appreciated.

Wim
Title: Re: Weather Template and scripts from Leuven/Belgium/Europe
Post by: wvdkuil on March 29, 2019, 09:12:51 AM
In this "old" topic all links to download and demo's of the Leuven-Template and scripts are probably invalid.
I posted new support tickets for the different scripts and will do that also for the template.

Support, download- and demo links are available on these topics where everyone can post questions and answers:

Meteoalarm: https://www.wxforum.net/index.php?topic=36482.msg374576#msg374576
Forecasts: https://www.wxforum.net/index.php?topic=36478.msg374490#msg374490
WU-tables&reports: https://www.wxforum.net/index.php?topic=36473.msg374472#msg374472
PurpleAir & Luftdaten: https://www.wxforum.net/index.php?topic=36471.msg374445#msg374445

Leuven-Template:  https://www.wxforum.net/index.php?topic=36504.0

For now it seems better to lock this topic so that all discussions/questions will be in the correct topic.

Wim