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
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?
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.
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.
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.
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];”
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)
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?
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!
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!
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!