WxSim Temperature Forecast Comparison Script

Running testtags.php?sce=view (which is what I think you mean?) simply displays www.wilsonsweather.host-ed.me

Guy

I’d say the next step is to find out where testtags.php actually is because it doesn’t seem to exist at http://www.wilsonsweather.host-ed.me/forecast/testtags.php. Perhaps Cumulus is uploading to the wrong place?

  • Jim

It seems to be there - if you go to http://www.wilsonsweather.host-ed.me/forecast/ its there - and I can see it in the directory when I use my FTP client. Odd.

Guy

That is very odd. When we try to run that script we get redirected to your main page. I don’t know why that would happen, perhaps someone else has an idea?

Why don’t you post that testtags.php here so we can see what it looks like.

  • Jim

Here it is.

The files all sit in html_public/forecast/ tried using that - no difference.

Guy


testtags.php.txt (623 Bytes)

Guy,

Let’s remove the downloader code that I added in testtags.txt to make sure that isn’t somehow causing the redirect. Otherwise I’m out of ideas.

  • Jim

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)