Leuven-Template release 2.7 available

Hi

Have you looked here:

http://leuven-template.eu/dokuwiki27/doku.php?id=en:how_to_install7

Rgds
Gert

I did it :smiley:
I’ve replaced the Steelseries graphs with Meteohub graphs.
So far only on my test site http://zdenda.webuda.com/weather27/index.php?p=25&lang=en#data-area

The modified files are attached, if anyone is interested.

The graphs are uploaded to the default upload location.

Graph names:
Temperature - temp.png
Dew Point - thd.png
Humidity - hum.png
Pressure - press.png
Wind Speed - wind.png
Win Direction - windd.png
Rain - rain.png
Rain Rate - rainr.png
UV - uv.png
Solar - solar.png


Graphs.zip (21.4 KB)

@all
Every new release I obtain a fresh WU-key for the users testing the 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

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:
$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 more than 700 calls and more than 3 calls / minute already at 05:30 EDT. 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.

@person(s) unknown: Please request your own key to test your programs. This key is for the benefit of all people testing their template.

Wim

thank you very much

emilio :slight_smile:

Hi

Have you looked here:

http://leuven-template.eu/dokuwiki27/doku.php?id=en:how_to_install7

Rgds
Gert

It’s raining now.
The Dasboard shows:
Rain Today 2,1 mm
Rain Rate/hr 1,4 mm

The Steelseries Rainfall gauge shows 2,1 mm but the Rain Rate gauge shows 0 mm/h.

http://zdenda.webuda.com/weather27/index.php?p=25&lang=en#data-area

http://tfanexus.besaba.com/weather27/index.php?p=25&lang=en#data-area

How can I fix that?

Live data fed by MeteoHub.

I have no idea yet,
http://zdenda.webuda.com/weather27/index.php?values&p=0000&pw=#data-area
It seems that the “rainRateAct” which is used is ‘0’ so I have to check how that value comes there and if it is in error.

The value on the dashboard is “rainHourAct” ‘1.4’

Will take some time to check and make consistent definitions,

For the time being: sacript weather27/wsAjaxDataLoad_v3.php line 124
change from

        $arrOut['rrate']	= $ws['rainRateAct'];

to

        $arrOut['rrate']	= $ws['rainHourAct'];

Wim

Thank you, it’s working.

hello Wim…

I havent been in the forums much lately with Work being Busy and long days and also now summertime here…but just cam across this thread and the news of the new 2.7 released version and wanted to say Great Job on your Part for doing all of this.

have downloaded a fresh copy of the 2.7 version and will have a look at them and then eventually update my leuven template site to use the newest version of your templates.

Cheers…Chris

I get a “wunderground API usage alert” very often lately.

When I check who is online, it’s only googlebots beside me.

Is it possible that the googlebots generate 511 calls in a day?

If so, how can I prevent it?

The site: http://tfanexus.besaba.com/

When I check your source there are still problems with the loading of normals and min/max values for your area.
I advise you to change line 22 of wuforecast/wualmanac.php from

#

to

return;

and will put your lat/lon/metar again on my test-to-do list.

Wim

Done.

Thank you.

I modifed the script again. But it seems that both the latitude/longitude and the metar does not supply any almanac information.
I will do some more test and if there realy is no information available the modification you did is the only valid thing to do.

I do not know if there are other airports nearby. On google maps there is also an airport in germany? Hof airport.

Wim

When I was trying to find a suitable nearby airport which delivers good data, the “nearest” I’ve found is LKPR (Prague).
Hof (EDQM) worked but it doesn’t now.

Should I modify the wualmanac script and hardcode Prague LKPR in it?

I noticed another thing - some metar cache files are saved directly to weather27/ and not to weather27/cache/
Example: metarcache-LKPR.txt

PS: I’ve hardcoded LKPR (Prague) coordinates (50.1000,14.2667) in the wualmanac script, I hope it will work - deliver valid data.

Hi wim…

still have my weather2.6a up and running here…

http://www.gateway2capecod.com/weather2

… but now also got the weather2.7 running also to try it out…

http://www.gateway2capecod.com/weather27/

…chris

The METAR cache thing can be solved by replacing:


$cacheFileDir = './';

with this:


$cacheFileDir = $SITE['cacheDir'];

on line 94 in the metarGetConditions.php file.

I’ve also noted a cosmetic thing in the dashboard, there is:

Daylight hh:mm 16:29 (- -1 minutes)

I think the second minus sign is redundant.

The fix - modify line 115 in the wsDataGet.php file:

{$daylight_trend        =  '- '.$less_more.' '.langtransstr('minutes');}

to

{$daylight_trend        =  ''.$less_more.' '.langtransstr('minutes');}

Hi!

This is what my daylight looks like.
Daylight hh:mm 398804:52 (+ 1440 minutes) under Almanac on AjaxDashboard

Has the same value on forecast pages that has day length in it. met.no,WXSIM and yr.no.
http://regnskvett.com/weather27/index.php?p=10&wp=WD&lang=en

On my other pages it is fine http://foreneset.no/weather2/index.php?p=10&wp=WD&lang=en

And can not find Leaf Wet info any place. have set true in usersettings.

Torjan

I have no idea after nearly 2 hours testing everything I could think off.

  1. The sunrise time is at least a lot of days and a few hours off. Should be 04:29 same day, not 1-1-1970 or a similar errror date.
    That explains the wrong calculation.

I copied your data files …/tagsWD.txt and the scripts which touch those dates.
I set my test setting identical to your latitude/longitude/tz
Set the php version to yours 5.3.29
Still my test system displays Daylight hh:mm 18:23 (- -1 minutes)

It is also not the 24 hour daylight error, although it looks a little bit like it. But there the two date/times are in error.

I attached 1 new script which solves that 24hour daylight error, but it also checks the validty of the sunrise / sunset times.
Please give it a try.

===

Next error.
Every time there is a new upload of …/tagsWD.txt there is an error on the top of the page:
Notice: Undefined index: pagename in /home/regnskve/public_html/weather27/scriptsWD/tagsWD.php on line 57
But pagename is the very first line of tagsWD.txt

As the error only occurs with a new upload, you can generate that errer message by going to the customize page and changing an UOM, example from Celcius to Fahrenheit and then the button “Save your changes”. The uploaded file is read again and the error is printed.

Coying all possible scripts and settings, my testsystem does not display that error message.
So for now I can not replicate that error either

===
So I am stuck with two interesting problems but have no idea where to go to.

QUESTION 1: Does your other site (foreneset) run on the same webserver?
QUESTION 2: Can you make a zip of the total weather27/ folder on your server? Most of the time it is very easy using the control panel / filemanager.
You can leave it on the server and tell me the link so I can download it and test it here.

If the dates when running your complete weather27 are correct over here, there must be some setting at your webserver?

I hope to have new ideas after a good night rest.

On my other pages it is fine http://foreneset.no/weather2/index.php?p=10&wp=WD&lang=en

And can not find Leaf Wet info any place. have set true in usersettings.

Torjan

Leaf wetness is not implmented yet. It is a pity that the discussions about “what to do with leaf wetness” are lost in the disk failures, but until now, nobody has given me a clue what to do with that information.
Soil temp and moist are often used, but leaf wetness not.

Wim


wsDataGet.php.zip (4 KB)

leaf wetness can be used to indicate a sprinkle of rain…if that has not been enough to tip the rain gauge
or could be used to indicate dew formation?