Meteotemplate - new free website template

Now heres whats happening…all was fine on the template ,even the wind speed/gusts until 16:00…but,at 16:03,shit happened… #-o

On the main window,WD is showing a gust at 37 kmh at 16:03
logfile is showing 3.4 kt for 6.29 kmh

19 7 2015 16 3 18.4 87 16.2 1003.9 4.1 3.4 179 0.0 0.2 88.0 348.2 18.4

steelseries gauges are showing the right value at same tim as WD on the website

My WU datas shows the same on Weather History Graph (IQUBECHB3)
July 19, 2015

On WU’s table as well… 4:04 PM 18.2

Hi,
hard to tell, but the fact you are seeing the right values for max gust in the templates which use tags makes sense, because those values are not taken from the logs, but directly from WD. It seems like WD for some reason is saving incorrect data to logs and clientraw, but for the tags such as "today

Brian…an idea on that particular one ?

attached are 2 todays wind graphs…im trying to provide clues as much as i can and think of… :?


Hm, this however could still be the same problem we were already discussing, the max gust occurred in between two intervals when the data was logged.

But it would then be interesting to know what parameter for gust (which tag) does WD send to WU, because you said that one was correct. And if I understand it correctly, WD logs are also wrong?

theres something,somewhere that is obviouly incorrect …and hope we’ll find it soon :frowning:

what is bugging me is that it was CORRECT everytime befor the last gust at 16 h.

Now,its showing a new today max gust (in the daily report)at time 17:54 at 29.8 kmh …but its still not the days max gust…

Did you check your WD logs? Not the database of my template, the logs created by WD, is the value of the max gust there? We must first find out if it is my scripts not updating the database correctly or if the scripts work fine, but get incorrect values from WD.

Are you updating your db with the clientraw txt? If so I found using the clientraw[140] max gust last minute I always have the max gust right.
Tom

Yes, I remember you were saying this Tom and I actually already changed that in the update file, so my suspicion then is Carl probably still uses the version that was part of the testing.

Carl try making the change suggested by Tom in the update script and see if that helps.

@ weatherbee yes i am…

Jachym…the wd.php ? and where do i set the clientraw[140] max gust last minute

btw,i dloaded the template available when you publicly released it :wink:

hello…

have been trying to get the templates working and only got as far as this…

http://www.gateway2capecod.com/meteotemplate/

seems something is not correct somewhere but I have no idea where…

ERRORS I get are:

Failed to connect to MySQL: Unknown MySQL server host ‘host’ (0) Failed to connect to MySQL: Unknown MySQL server host ‘host’ (0)
Failed to connect to MySQL: Unknown MySQL server host ‘host’ (0)

I am not very familiar with MySQL stuff but went into my IPAGE Webhost and set one up and put the the settings in the config.php

I can PM You my settings in my config.php file if you need to see it.

…chris

Hi
try setting to use localhost instead of just host

Hi, as Brian pointed, you cannot use “host” as your “host”. That was just the default setting in the template, which I included to show that that is where you insert your host address. You can either try localhost or you can use the address of the host server, which should be something that your provider gives you.

Carl, I think what Tom suggested will solve all the problems related to WD and gusts.

In your wd.php in update folder, change line 117 like this:
from:
“$currentG = $row[2];”
to
“$currentG = $row[140];”

Hi…
Where do I change it from host to localhost?
Which file and line?

Thanks…chris

This is in your config.php, where you set your MySQL:

// MySQL set up
	$dbName = "dbname";
	$con=mysqli_connect("host","login","password",$dbName);
	if (mysqli_connect_errno($con)){
		echo "Failed to connect to MySQL: " . mysqli_connect_error();
	}

Here you must specify the host where it says host
Then you give the user name and password you set for your database
and for dbName you specify the name of your database (this is not “alldata”, that is the name of the table, the database name is something you again specify when you are creating the MySQL in your hosting panel)

Hi there,

Firstly, thank you for all the work that must have gone into getting this template built. I’m a complete novice when it comes to php, mysql or any other fancy web acronyms but I can see that there must have been many hours invested so far.

I’ve spent most of this evening playing around with setting it up myself. There have been a couple of instances where the learning curve was almost too steep and I would nearly give up and then Eureka! I’d work something out that I was doing wrong and I’d be off again. Almost.

Would you have any idea why none of the pictures appear to be working for me please?

http://whitmoreweather.dx.am/index.php

I’m not concerned about the “Warning: file_get_contents” error at the top yet, that’s a project for tomorrow, nor the WoW link not working (haven’t put my details into the config file yet) Otherwise, the database seems to be updating which I guess is half the battle won!

Thanks again.

Hi,

first of all, congratulations! Given you are absolutely new to all this, I must admit it is amazing you were able to get this far and basically if your db is working then you are 99% done!

Thanks…made the change so we,ll see :wink:

[quote author=Jachym link=topic=60980.msg486963#msg486963 date=1437396066]
Hi,

first of all, congratulations! Given you are absolutely new to all this, I must admit it is amazing you were able to get this far and basically if your db is working then you are 99% done!

I get a HTTP 403, not 404, error on http://whitmoreweather.dx.am/icons/humidity.png so I think it probably is a permissions problem with the uploaded icons (other graphics in that directory are OK). You should be able to check the permissions in your FTP client, compare e.g. http://whitmoreweather.dx.am/icons/a.png, which works, with http://whitmoreweather.dx.am/icons/humidity.png which is inaccessible.