Author Topic: Weather Template and scripts from Leuven/Belgium/Europe  (Read 195276 times)

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #550 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

Offline el-rain

  • Member
  • *
  • Posts: 6
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #551 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
« Last Edit: July 03, 2015, 08:16:43 AM by el-rain »

Offline KapitainOne

  • Senior Contributor
  • ****
  • Posts: 255
    • Sanford Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #552 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.
« Last Edit: July 10, 2015, 05:42:34 PM by KapitainOne »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #553 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

Offline KapitainOne

  • Senior Contributor
  • ****
  • Posts: 255
    • Sanford Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #554 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?

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #555 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

Offline KapitainOne

  • Senior Contributor
  • ****
  • Posts: 255
    • Sanford Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #556 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

Offline cirdan52

  • Member
  • *
  • Posts: 12
    • Kelly Park Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #557 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.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #558 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
« Last Edit: July 15, 2015, 02:44:20 AM by wvdkuil »

Offline cirdan52

  • Member
  • *
  • Posts: 12
    • Kelly Park Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #559 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?

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #560 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

Offline cirdan52

  • Member
  • *
  • Posts: 12
    • Kelly Park Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #561 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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #562 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


Offline bsweather

  • Member
  • *
  • Posts: 1
    • Bishop Sutton Weather Station
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #563 on: July 27, 2015, 03:31:24 PM »
The 2.7 release is available at 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

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
download http://www.weerstation-leuven.be/
You will find the extensive documentation there also:
              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 
Inside the Saratoga template: http://www.wiri.be/saratoga/wxsimforecast.php?lang=en

european meteo warning http://www.weerstation-leuven.be/demowarning/demoWarning.php?lang=en

yrno 
demo: 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 for a compact version

I hope these script can be usefull for your weather website.

Wim van der Kuil

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #564 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!

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #565 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

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #566 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!!!

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #567 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





Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #568 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 :)

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #569 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

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #570 on: August 13, 2015, 02:07:31 PM »
Thanks WIm. Will do!

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #571 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!
« Last Edit: August 14, 2015, 12:55:42 PM by xcom »

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #572 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


Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #573 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

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #574 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,
-

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

 

anything