Little help with the Forecast Compare script

Hi folks

I am trying to get the fc script working but my brain wont play ball,
This is a start i spose, whats next please?
http://www.suffolkweather.info/test-fc.php

I have an old YR script that dont appear to be working so i may need a new one :confused:
http://www.suffolkweather.info/yrfrcst.php

Its currently set for WU seen as that forecast is working

Bashy,

The latest version of the compare script is 4.3, so you should probably start with a copy of that http://jcweather.us/scripts.php and look closely at the readme for how the script is run in logging mode.

The config comes with the NWS used as the forecast so yes, that should be commented out and the one you want to use commented “in”.

That yrfrcst.php is the last one that Henkka made and as far as I know it should work … at least I haven’t heard otherwise. It is providing some data and was never designed to be “pretty”.

Good luck. - Jim

Hi Jim, thanks, i didnt know what to expect from it to be honest, I take it it has to run a few days for it to fill up

I have set 2 cron jobs on the server for now, am and pm, and the fc-LogTemps.php twice a day,
My tablets are making it hard to concentrate with the readme lol so will have to have another read later

Thanks again Jim

Bashy,

You should see a new forecast line added each time the script is run in logging mode and the tables will slowly fill up. Let us know how it goes.

  • Jim

Will do, thanks again Jim

mmm, forgot all about this, it dont look any different, me thinks Bashy broke it :? :roll: #-o
http://www.suffolkweather.info/test-fc.php

Bashy,

I see that it logged successfully both morning and evening on the 6th, but not after that. I’d say that it’s probably a cron issue?

  • Jim

Sorry Jim, i didnt set Notify :confused:

This is what i have for the cron jobs

0 6 * * * http://www.suffolkweather.info/forecast-compare-include.php?log&config=am >/dev/null 2>&1

0 20 * * * http://www.suffolkweather.info/forecast-compare-include.php?log&config=pm >/dev/null 2>&1

Bashy,

In the readme there are a couple links where Stuart and Ken True figured out what worked for them. I’m not able to help with those.

  • Jim

Oki doki, will have another look, thanks…

Hi Bashy,

I tried to use cron jobs and failed, in the end I used System Scheduler (http://www.splinterware.com/products/wincron.htm) to run the jobs locally, the sequence table I use is at the bottom of this page http://www.chatteris.biz/wxcompare.php .

Hope its of use.

Cheers

Ian

My cron job would look somewhat like this:

0 6 * * * /home/ftpusername/rootfolder/forecast-compare-include.php?log&config=am >/dev/null 2>&1

But all depends on how your host is set up?? Some require the full url. Splinterware is an excellent choice as stated above.

-Doug