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

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

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

Offline txweather.org

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

----
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 jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #577 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.

Offline wvdkuil

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

As always make a copy of the current scripts FIRST before replacing them with the new ones.

Wim
« Last Edit: August 28, 2015, 05:12:06 AM by wvdkuil »

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #579 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 &.).
 
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

Offline wvdkuil

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

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #581 on: August 28, 2015, 11:39:33 AM »

Offline wvdkuil

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

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #583 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

Offline wvdkuil

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

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #585 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.

Offline wvdkuil

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

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #587 on: August 28, 2015, 04:47:26 PM »
No problem, take your  time. Thanks again for a great script.

Offline Aardvark

  • Forecaster
  • *****
  • Posts: 2305
  • Tonto to Lone Ranger : "never take off mask.
    • turned off
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #588 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; // ####

Offline wvdkuil

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

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #590 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
« Last Edit: September 27, 2015, 04:25:38 AM by djroby19 »

Offline wvdkuil

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

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #592 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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #593 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
« Last Edit: September 27, 2015, 05:00:09 AM by wvdkuil »

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #594 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

Offline wvdkuil

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

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #596 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 ?


Offline wvdkuil

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

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #598 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

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #599 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

 

anything