Greetings to all
As a result of the changes produced in Wunderground, this wonderful script has stopped working.
I have installed the new version of Saratoga:
[http://kocher.es/WU-forecast.php](http://kocher.es/WU-forecast.php)
But …, it still does not work:
[http://kocher.es/test-fc.php?lang=en](http://kocher.es/test-fc.php?lang=en)
[http://kocher.es/fctest.php](http://kocher.es/fctest.php)
The information that appears, means that you can not obtain the temperatures of “WU-forecast.php ”
I can not find a way to make it work again.
I think that the same thing has happened to other users.
Any help will be very welcome.
Greetings from San Sebastian
When I view the source of your config http://kocher.es/fc-config.php?sce=view I find
$TypeScript = "NO";
//$NWSscript = "WU-forecast.php";
which should probably be
$TypeScript = "WU";
$NWSscript = "WU-forecast.php";
The “NO” is saying that you don’t want to compare with any forecast … just log the WxSim results. Make that change and let’s see what you get.
Saludos Jim
Thank you very much for your attention.
You’re right; I had made this change, in an attempt to only compare the WXSim data, because the script could not get the Wunderground data.
I have already modified the settings as you indicated:
$TypeScript = "WU";
$NWSscript = "WU-forecast.php";
I hope you can see this magnificent script in operation again.
Looking closer, I see that Ken has changed many variable names in this new WC-forecast.php script, so I guess I have some work to do on the comparison script.
I will try to get that done for you to test some time this week. I don’t use the WU forecast so I didn’t notice any problems. Thanks for bringing this to my attention.
Thank you very much Jim
I am very grateful for your interest
In this link you will find all the details of the new Saratoga (Ken) script to get the Wunderground forecast:
[https://www.wxforum.net/index.php?topic=36207.0](https://www.wxforum.net/index.php?topic=36207.0)
For this you have to obtain the new Wunderground API as explained in this link.
Yes, I’ve had the WC-forecast script working for awhile now but haven’t been using it with the comparison script. It looks like we just need some minor changes that I should have for you tomorrow.
You may want to rename your copy back to WC-forecast.php unless you really need it with the “WU”. That way things won’t get confused when Ken puts out new versions in the future. I’ll be having the comparison script looking for the “WC”.
Perfect.
No problem with the file name.
Thank you very much Jim =D>
I’m sorry this took so long, but yesterday got quite busy and I wanted to take my time with this. The first thing is to replace your WU entry in the config file with
$TypeScript = "WC";
$NWSscript = "WC-forecast.php";
Then remove the .txt extensions from the attached and upload them to your server. If fctest.php works well for you then the comparison should be ok too.
fctest.php.txt (17.7 KB)
forecast-compare-include.php.txt (44.4 KB)
Good morning Jim
I downloaded your files and I am ready to put them in action.
I thank you very much for your magnificent work.
I’ll tell you the result.
I have started the tests by doing the following:
1) Rename WU-forecast.php to WC-forecast.php:
[http://kocher.es/WC-forecast.php](http://kocher.es/WC-forecast.php)
2) Editing the file fc-config.php:
$TypeScript = "WU";
$NWSscript = "WU-forecast.php";
to:
$TypeScript = "WC";
$NWSscript = "WC-forecast.php";
3) I have uploaded the following files to my website:
fctest.php
forecast-compare-include.php
4) I have called the page:
[ http://kocher.es/fctest.php](http://kocher.es/fctest.php)
5) I have called the page to update the forecast data
6) The final result is:
[http://kocher.es/test-fc.php?lang=es](http://kocher.es/test-fc.php?lang=es)
I think everything works fine (except a warning in fctest.php)
What do you think, Jim?
Javier,
That all looks good to me, don’t worry about that warning for now. Let’s see how things work when the script is logging new temps when it’s time for that.
Edit: It looks like it did log today so I guess we’re all set.
Jim
Your modification keep working perfectly today
Javier,
That all looks good to me, don’t worry about that warning for now. Let’s see how things work when the script is logging new temps when it’s time for that.
Edit: It looks like it did log today so I guess we’re all set.
Thx for the update! I faced the same issue as well. Working fine now
Thank you both for the feedback, it’s good to know that we found all the changes that were necessary.
Congratulations !!
Very grateful from San Sebastian
:occasion5:
Javier
Hi Jim
May I join the discussion ?
I updated the script as well but its working without date and time for WU/WC since now.
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wxcompare.php
I cannot find any settings for WU or cronjob (long time ago installing the script #-o )
Any advice please ?
thnx so far
ed
edit:
noticed my WC-forecast.php neither has a date time ! 8O
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/WC-forecast.php
Greetings Ed
I would try the following:
In the file fc-config.php :
$useWxSimTime = true;
Let’s see if it works
Hi kocher
I will try that, thank you.
Let you know tomorrow !