WxSim Temperature Forecast Comparison Script

The redirect was happening before the code was added.

Thanks for the help. I do wonder if the way my host structures directories plays a role.

My FTP client sees html_public/forecast/
But using the web file manager for the host shows home/wilsonsw/html_public/forecast/ (something like that). But even if I use those in config etc, makes no difference to the behaviour. I do have another web host I may try at the weekend.

Guy

Guy,

Please let us know how it goes with the new host. I agree that something strange is going on with the present host.

  • Jim

Well… My other host does not support php (with my package). Pondering this.

Guy

Hello,
I have been watching this WxSim comparator script for several days, the truth is that I liked it a lot. I would like to have it on my website.
I am trying to follow the instructions but being Spanish it is a bit difficult for me to follow the instructions in English. I am translating it and I try to understand, but I see that I do not clarify. I have started a couple of times but I do not see any data, only the empty table appears. I think the problem may come from the file testtags.php
Can somebody help me?
In case someone could help me, next I indicate the place where I have the files:

http://meteohila2.esy.es/pronostico%20mxsim/

thanks in advance

regards,

I can try to look at it tomorrow. Please post a link to the comparison script so I can run it.

  • Jim

Hi Jim,

thanks for answering!!!

next I indicate the link of the file forecast-compare

http://meteohila2.esy.es/pronostico%20mxsim/forecast-compare-include.php

when I execute this link:

[http: //meteohila2.esy.es/pronostico mxsim/forecast-compare-include.php? log & config = am](http://http: //meteohila2.esy.es/pronostico mxsim/forecast-compare-include.php? log & config = am)

I get the following message:

The temperature variables must be initialized by running testtags.php or some other mechanism

I do not understand it, as soon as the file testtags.php is running …

I found that your fc-temps.txt had some bad data in it, almost as if fc-LogTemps.php had never been run. I ran fc-LogTemps.php from here and now it has a high temp in it

30.1,23/08/2018 3:14 pm

and when you run fc-LogTemps.php to get the overnight low, there will be another temp between those two commas. If you’re going to use fc-LogTemps.php to capture the temps, you need to set up a cron to run it twice each day. I tried to explain that in the readme file.

Lets get that all done then we’ll see how things are working.

  • Jim

There’s something else to fix. In your config you say to use the yrno forecast, but that script isn’t giving me a good forecast. When I run http://meteohila2.esy.es/pronostico%20mxsim/yrfrcst.php I get only

1535033302 < && 1535033302 > Is night? 1

so you can check that out too while you’re waiting for the overnight low to be logged.

  • Jim

ok, for the moment we are going to wait, but I think it does not work !!!

Right now your fc-temps.txt has this in it which is an incorrect format.

$TheMax = " 0:17"; // time this occurred
$TheMin = " 2:06"; // time this occurred

I don’t know how that would get in there. I think it will be best if you just plan to use testtags.php for the temps and forget about fc-LogTemps.php for now. If you simply delete the fc-temps.txt and fc-LogTemps.php files from your server, the comparison script will use testtags.php temps instead.

yrfrcst.php is still broken.

  • Jim

ok, Jim

I’m going to delete these files !!! to see what happens!

we are in contact!!!

Thank you

Now make sure that you have both of these in your testtags.txt file in your WD webfiles folder.

$maxtempyest = %maxtempyest%;
$mintempovernight = %mintempovernight%;

There’s a good chance that you are missing the second one.

  • Jim

A query, I’m using different software and I’ve made the template testtags.php

I could tell if this template I have to have inside a folder?

I have all my files here:

http://meteohila2.esy.es/pronostico%20mxsim/

from what I gather, I think the files do not locate the file testtags.php

I attached the fc-config file, in case you can check, if I have a bad route … I have attached the fc-config file so that I can review it, (I attach it in txt format because it does not let me attach as .php)

the file testtags. php is observed like this at the moment:

<? php $maxtempyest = 30.2; // today's maximum temperature $mintempovernight = 19.2; // today's minimum temperature ?>

fc-config.txt (6.5 KB)

Since testtags.php is in the same folder with our other files, the script should find it.

When you can, please put the attached file in that same folder and we’ll see if that helps us figure things out.

It will be a few hours before I can check back on this.

  • Jim

fctest.php.txt (17.3 KB)

ok, I upload the file that just happened to me

anyway the old file fc-test, this appears:

http://meteohila2.esy.es/pronostico%20mxsim/test-fc.php

with the new file this appears:

http://meteohila2.esy.es/pronostico%20mxsim/fctest.php

The new file has a different job, but it proves that testtags.php is causing us problems. Please take a copy of the testtags.php that is on your server and attach a copy here with the .txt extension.

Thanks. - Jim

ok, I attach the file


testtags.txt (124 Bytes)

Hmmm, I can’t see why that doesn’t work. I have to go out now, but I’ll be thinking about this. Maybe there’s something I can add to that test file.

  • Jim

Please upload this copy of the test script, I’ve added a few lines to try to find out more about what’s going on with testtags.php.

  • Jim

fctest.php.txt (17.6 KB)

ok, I have loaded the template fctest.php again

now you can see errors:

http://meteohila2.esy.es/pronostico%20mxsim/fctest.php