cloudy cloudy

Author Topic: Leuven-Template 2.8 version available  (Read 53841 times)

0 Members and 1 Guest are viewing this topic.

Offline Bjørn

  • Posts: 334
  • Ulsteinvik, Norway
  • OS/Browser:
  • Win NT 10.0
  • Chrome 45.0.2454.93
    • Ulsteinvikweather
Re: Leuven-Template 2.8 version available
« Reply #15 on: September 23, 2015, 03:52:11 PM »
Thanks alot with icon issue Wim :-)
Works like a charm :-)

Offline Bjørn

  • Posts: 334
  • Ulsteinvik, Norway
  • OS/Browser:
  • Win NT 10.0
  • Chrome 45.0.2454.99
    • Ulsteinvikweather
Re: Leuven-Template 2.8 version available
« Reply #16 on: September 24, 2015, 06:05:37 AM »
Good morning forum.

Still adapting 2.8 template, so found a small iritating look with the wureports regards comma decimal look. (think thats the name for it)
Temp, Wind, gust is showing numbers rounded up to nearest number like 10 or 15 or 30.
Wuld be nice to have the wu reports show the actual readings like 13,2 or 25,7 and so on.
See photo with rounded numbers.


Also if any weather nerd out there now how to impliment into the 2.8 template,  Murry Conarroe  detail/summary/season scripts for use of my own vp2 wd data. Script here: http://weather.wildwoodnaturist.com/downloads.php
I tried make a new site and inputed like  @include_once("wxwureports.php");  with fatal error  :oops:

Aprisiate all help on issue  :wink:

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,341
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 45.0.2454.99
    • My PWS at Leuven Belgium Europe
Re: Leuven-Template 2.8 version available
« Reply #17 on: September 24, 2015, 07:34:06 AM »
Good morning forum.

Still adapting 2.8 template, so found a small iritating look with the wureports regards comma decimal look. (think thats the name for it)
"Decimal-point-is-comma" is used because nearly all computer nerds like me use a point as in temp is 12.4 C, in the real world  most people use a comma  as in temp is 12,4 C
Most computers / computer script / calculators display a point,  so there is a setting in the template to choose if the output on the screen will be written with a comma or a point.
Code: [Select]
$SITE["commaDecimal"]   = true;   # false = Use a decimal point [22.50]  |  true = Use a comma [22,50] as decimal"point"
Quote
Temp, Wind, gust is showing numbers rounded up to nearest number like 10 or 15 or 30.
Wuld be nice to have the wu reports show the actual readings like 13,2 or 25,7 and so on.
See photo with rounded numbers.
It is rounded to non-decimal values so  11 12 13 14 15 16, not rounded to multiples of 5 degrees such as your 10  15 30
1. Those values are not actual readings, they are calculated and recalculated numbers. For instance a DavisVP  measures internaly in F and output outside temp in 0.1 of a degree, all other temps in 1. degrees. The are recalculated to C to display on the console. That is why your soil and other sensors do not increase the temp with .01 degrees but jump  16.6 17.3 17.9 when displaying C temps.

If you take averages and high low of the avarages you will display temperatures which seem to be precise but are not.

So the answer is no, in the template-scripts I try to display only the real temps with decimals. But see point 3.

2. There is not much room on the width of the page. It will add two characters at every field and no information at all.
If the highest temp for that day is 31  or 31,5 does not make a difference but the first one is easy to comprehend on a  large page with numbers, the second one is more difficult to read.

3. That said, you can change and adapt all scripts  on your web-server as you wish.
Quote
Also if any weather nerd out there now how to impliment into the 2.8 template,  Murry Conarroe  detail/summary/season scripts for use of my own vp2 wd data. Script here: http://weather.wildwoodnaturist.com/downloads.php
I tried make a new site and inputed like  @include_once("wxwureports.php");  with fatal error  :oops:
The scripts which read the noaa files are very easy to integrate.
You should NOT use the Saratoga start script as the Leuven-Template is a diffrent template.

You should use the Stand-alone scripts for that.
Multiple users are using those fine scripts inside the template.  Easiest way is to use an iFrame as adapting the stand-alone version to the Leuven-Template can be done, but you create a unnecessary maintenance dependency
Quote
Aprisiate all help on issue  :wink:

Success, Wim
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline Bjørn

  • Posts: 334
  • Ulsteinvik, Norway
  • OS/Browser:
  • iOS 9.1
  • Safari 0.8.2
    • Ulsteinvikweather
Re: Leuven-Template 2.8 version available
« Reply #18 on: September 24, 2015, 02:39:00 PM »
Thanks for info and help Wim :-) super support.

Offline blainec

  • Global Moderator
  • Posts: 437
  • Calgary, Ab.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 40.0
    • Weather YYC
Re: Leuven-Template 2.8 version available
« Reply #19 on: September 27, 2015, 03:49:48 AM »
When I load the page for the fist time in the browser I get the following error

Notice: Undefined index: gustMaxHour in /home/wester55/public_html/weather28/scriptsWD/tagsWD.php on line 276

When I refresh the page, the error goes away.

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,341
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 45.0.2454.99
    • My PWS at Leuven Belgium Europe
Re: Leuven-Template 2.8 version available
« Reply #20 on: September 27, 2015, 07:57:14 AM »
When I load the page for the fist time in the browser I get the following error

Notice: Undefined index: gustMaxHour in /home/wester55/public_html/weather28/scriptsWD/tagsWD.php on line 276

When I refresh the page, the error goes away.
Sorry, I had to warn that also the files in WD webfiles forder had to be upgraded.
New fielfds/tags are introduced for 2.8

Inspect the missing translated value for this tag at line 218 http://wxcalgary.com/weather28/index.php?compare&p=0000&pw=#data-area
Code: [Select]
  217 | |gustAct|%gstspd%|!
      | |gustAct|0.0|!
  218 | |gustMaxHour|%maxgsthr%|!
      | |windActDsc|NNE|!
  219 | |windActDsc|%dirlabel%|!
      | |windActDir|19|!
  220 | |windActDir|%dirdeg%|!
      |

Wim
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline bdtripps

  • Posts: 194
  • Youngtown, AZ
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 45.0.2454.101
    • Agua Fria Ranch Youngtown, AZ
Re: Leuven-Template 2.8 version available
« Reply #21 on: September 27, 2015, 02:15:15 PM »
Hi Thanks for all your hard work. Have 2.8 running setup was much easier. http://southwestweather.com/weather28/

Thanks
BTrip
B.Trip
DavisVP2/ Envoy Wireless, 2011 Mac Mini Server
Sierra 10.12.6, 2.3ghz Quad-Core Intel Core i7 16GB Ram
Arizona

Offline Yendor

  • Posts: 88
  • La Crosse 2310
  • Wanaka NZ
  • OS/Browser:
  • Win NT 10.0
  • Firefox 40.0
    • Wanaka Weather
Re: Leuven-Template 2.8 version available
« Reply #22 on: September 28, 2015, 09:17:06 AM »
Wim,

I have managed to get the template working but have encountered the following error notices:

Notice: Undefined index: gustMaxHour in /home/wanakaw1/public_html/weather28/scriptsWD/tagsWD.php on line 276

Notice: Undefined index: 3100 in /home/wanakaw1/public_html/weather28/wsIconUrl.php on line 132

I have been unable to discover why even though they were not there originally. I have been trying to get the gauges to refresh every 10 seconds and to have no time out period. I have set the parameters in wsgauges.js but that seems to not work. I have also wanted to place my header picture from weather/27 into weather/28 with no success. This was editing banner.txt. I appreciate this template and also know how awkward my setup is and appreciate your efforts.  www.wanakaweather.co.nz/weather28

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,341
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 45.0.2454.99
    • My PWS at Leuven Belgium Europe
Re: Leuven-Template 2.8 version available
« Reply #23 on: September 28, 2015, 10:54:31 AM »
Wim,

I have managed to get the template working but have encountered the following error notices:

Notice: Undefined index: gustMaxHour in /home/wanakaw1/public_html/weather28/scriptsWD/tagsWD.php on line 276
This is discussed two posts back by @blainec and me
http://www.weather-watch.com/smf/index.php/topic,61397.msg490982.html#msg490982
Quote

Notice: Undefined index: 3100 in /home/wanakaw1/public_html/weather28/wsIconUrl.php on line 132
Some parts of the world / some METARs generate more "unknown" weatherconditions.

I will check for that later today when i am at my computer
Quote
I have been unable to discover why even though they were not there originally. I have been trying to get the gauges to refresh every 10 seconds and to have no time out period. I have set the parameters in wsgauges.js but that seems to not work.
Please do not change scripts if you are not askerd to do so. If a change has no effect, please resdtore the scripts to their download state.

The timeout period is set when answering the setup questions and stored  in your settings-files   _my_texts/wsUsersettings.php
Code: [Select]
$SITE["wsSteelTime"]    = "30";                 # 10 = 999
Quote
I have also wanted to place my header picture from weather/27 into weather/28 with no success. This was editing banner.txt.
Will look at your site later
Quote
I appreciate this template and also know how awkward my setup is and appreciate your efforts.  www.wanakaweather.co.nz/weather28

Thanks for using the template,

Wim
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,341
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 45.0.2454.99
    • My PWS at Leuven Belgium Europe
Re: Leuven-Template 2.8 version available
« Reply #24 on: September 28, 2015, 11:52:27 AM »
. . .  shortened    . . . Notice: Undefined index: 3100 in /home/wanakaw1/public_html/weather28/wsIconUrl.php on line 132
You changed for the current conditions from METAR in version 2.7 to  Yahoo in 2.8
I tried two different Yahoo feeds for the Wanaka, NZ area, both returned
Code: [Select]
<yweather:condition text="Unknown" code="3200" temp="9" date="Mon, 28 Sep 2015 10:01 pm NZDT"/>This results in the error message which is there to warn us that that is not normal.

The solution is to switch back to the METAR CCN in your wsUserSettings.php lines 35-36
Code: [Select]
# Where to load the current conditions from
$SITE["curCondFrom"]    = "yahoo";         
change that to
Code: [Select]
# Where to load the current conditions from
$SITE["curCondFrom"]    = "metar";         
Quote
I have also wanted to place my header picture from weather/27 into weather/28 with no success. This was editing banner.txt.  www.wanakaweather.co.nz/weather28
You forgot to copy the image for the back-ground to the img/ folder, some other images are missing also
Code: [Select]
http://www.wanakaweather.co.nz/weather28/img/AuroraCut.jpg      Failed to load resource: the server responded with a status of 404 (Not Found)
http://www.wanakaweather.co.nz/weather28/img/la_crosse%202355.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://www.wanakaweather.co.nz/weather28/img/_desktop.png Failed to load resource: the server responded with a status of 404 (Not Found)

Success, Wim

P.S. What are you changing in the  gauges? They generate erros in release2.7 and release 2.8 in the steelseries files? How come?
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,341
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 45.0.2454.99
    • My PWS at Leuven Belgium Europe
Re: Leuven-Template 2.8 version available
« Reply #25 on: September 28, 2015, 12:48:04 PM »
Hi Thanks for all your hard work. Have 2.8 running setup was much easier. http://southwestweather.com/weather28/

Thanks
BTrip
Thanks for using the template.
You were the first member of the  SWN mesonet to use the new template, so I checked the different mesonet pages, also this one: http://southwestweather.com/weather28/index.php?p=wsRegionalMap&lang=en#data-area  As can seen the SWN is located somewhere in the middle of the atalantic ocean, according to my new mesonet script.
Checking how this can de the case, it seems that the station with the largest longitude is at 117.252605 and the station with the smallest longitude at -156.31483. Positioning the map in the middle gives a nice blue ocean view

I added validity checking for the lat-lon. Could you unzip and test the following script for me:  weather28/glo/wsRegionalMap.php    ?

Wim
 
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline Yendor

  • Posts: 88
  • La Crosse 2310
  • Wanaka NZ
  • OS/Browser:
  • Win NT 10.0
  • Firefox 40.0
    • Wanaka Weather
Re: Leuven-Template 2.8 version available
« Reply #26 on: September 28, 2015, 07:45:50 PM »
Wim,

Thanks so much. I thought I had covered all the steps but once again not. I have altered the appearance of the gauges as i prefer the look but if this is an issue I will revert back to standard. I had set the time in wsUserSettings.php to 10 which has not seemed to make any difference. I then changed it in wsgauges as well. I have restored wsgauges to their download state other than my appearance changes and the changes I made at beginning to select WD, my realTimeURL and imgPathURL (I copied my settings here from 27) . I will change those back as well and see if it helps. I do not see any errors in 27 so am unsure what you are referring to regarding the gauges.
« Last Edit: September 28, 2015, 07:51:19 PM by Yendor »

Offline bdtripps

  • Posts: 194
  • Youngtown, AZ
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 45.0.2454.101
    • Agua Fria Ranch Youngtown, AZ
Re: Leuven-Template 2.8 version available
« Reply #27 on: September 28, 2015, 11:40:56 PM »
Hi Wim that did it. Center on SWN on the Regional map. http://southwestweather.com/weather28/index.php?p=wsRegionalMap&lang=en#data-area

Thanks Again
BTrip
B.Trip
DavisVP2/ Envoy Wireless, 2011 Mac Mini Server
Sierra 10.12.6, 2.3ghz Quad-Core Intel Core i7 16GB Ram
Arizona

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,170
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 45.0.2454.101
Re: Leuven-Template 2.8 version available
« Reply #28 on: September 29, 2015, 12:52:27 AM »
FWIW I looked at it before Wim's fix and the problem appears to be triggered by the station in Carlsbad, California that's mapping in China (W-E longitude swap). Looking at SWN's own map I see that station located correctly so maybe the code there is correcting the sign of the longitude.
« Last Edit: September 29, 2015, 12:54:02 AM by niko »

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,341
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 45.0.2454.101
    • My PWS at Leuven Belgium Europe
Re: Leuven-Template 2.8 version available
« Reply #29 on: September 29, 2015, 08:31:29 AM »
FWIW I looked at it before Wim's fix and the problem appears to be triggered by the station in Carlsbad, California that's mapping in China (W-E longitude swap). Looking at SWN's own map I see that station located correctly so maybe the code there is correcting the sign of the longitude.
The original mesonet setup uses two sets of coordinates. For the global map the world latitude/longitude is used. For the local script the location on the image is used without any relation to the real latitude/longitude.

I borrowed Ken's global code  for both the regional and global version and use only the global latitude/longitude.
So a lot of stations end up on the other side of the globe, some because WD's way of longitude setting which is opposite of the map's way. Others probably because of a typing error.

Just check the world scripts:
http://southwestweather.com/weather28/index.php?p=wsGlobalMap&lang=en#data-area  or
http://saratoga-weather.org/global-map.php

Slightly zooming out shows that the weatherstation Carlsbad-CA is located in SouthKorea, Atlanta in the Pacific Ocean, Paladina, Italy in China. Just a few of them.

99% is correct, the remaining: garbage in, garbage out.

Wim
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/