Trying to implement this script - little unclear on:
“The variables $maxtempyest and $mintempovernight must be made available either through addition to testtags.php or by other means.”
I am using Cumulus as my weather software - any suggestions/tips on what to do - don’t see anything obvious in the Cumulus forums - this file appears to be WD related.
I can get Cumulus to process a file and upload the data for maxtempyesterday and mintempovernight - but when trying the compare script it tells me that
The temperature variables must be initialized by running testtags.php or some other mechanism
Running testtags.php (by calling through a browser) does not help.
The error has changed to configuration file not found - not sure why (I have been playing with root directory location in the scripts, but changed it back to the default).
Please rename the attached include file without the .txt and upload that. Hopefully that will fix the path problem which I think I caused in the file from the .zip.
Then please have Cumulus process the attached testtags.txt file. I’ve added code so we can view the actual output that it gives us by adding ?sce=view to the url.
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.
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.
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:
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.
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.