Page 5 of 34

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 8:35 am
by geoffp
Your latest version is working fine with me Mark, no problem with the timers, I am set to grab the data every 15 secs :D :D

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 9:53 am
by Super-T
I'll check out the 15sec tomorrow and watch to see when the realtime info updates. Could be local problem but I can't see where at present.
The joys of programming huh? :-)

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 1:23 pm
by Solorize
Geoffp,

Thanks for letting me know it works.


Terry,

If the problem happened when other people ran the program too, then
I would expect there to be a problem with my code, but as it runs ok
for me and the other people who have tried running it, there must be
some other factor that is causing the problem.

But I have no idea what LOL.

One thing I was thinging of was, could it be that the place where your
realtime.txt file is located may have a time limit set that kicks in if you try and access
the same data over and over again at short intervals, and it thinks the server is getting
attacked so, stops access to it for 5 minutes?

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 1:31 pm
by steve
Solorize wrote:there must be some other factor that is causing the problem.
Something being cached somewhere with a TTL of 5 minutes?

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 6:41 pm
by Solorize
Hi Steve,

Thanks for you input, that seems like that is what could be what is happening.

But... one thing that is confusing is that Terry's is also running a widget that
does not seem to suffer with the same problem and with my limited knowledge
I would have thought would also be affected?

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 7:07 pm
by steve
Solorize wrote:But... one thing that is confusing is that Terry's is also running a widget that
does not seem to suffer with the same problem and with my limited knowledge
I would have thought would also be affected?
I guess it might depend on exactly how your code and the widget's code read the data.

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 8:28 pm
by mcrossley
I always put a 'cache buster' on the end of the URL when fetching realtime.txt in javascript, I just append the date in milliseconds, like...

http://x.y.x/realtime.txt?12344578900000

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 9:15 pm
by Super-T
Just to add to the confusion. Running the Grabber this morning and I got changes, starting at 9:54 then 9:58, 10:04, 10:08, 10:14.
Turning off the Gadget had no effect.

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 11:00 pm
by Solorize
LOL Terry that is confusing :roll:
That does show it's updating at an interval of 5 minutes instead of 15 seconds.

I will have another good look through my code tomorrow with fresh eyes
to see if I can find anything out of place, that may be causing a problem.

I have just finished a new version which I will post up in a couple of minutes.
If you could use this version and see if it miraculously sorts out anything ;)

Thanks.

Re: Cumulus RealTime Data Grabber - Tool

Posted: Fri 09 Mar 2012 11:09 pm
by Solorize
A new release of Grabber for you all :)


Download version 1.1.4 : http://www.wokinghamweather.co.uk/downl ... DGv114.zip


New in this version:

1.1.4 - (09-03-12)

1. Added "Current Chance of Rain Possibility" to [Rain] tab. Code looks at Temperature, Dewpoint & Humidity
and then predicts whether there is a chance of it raining.

2. Cosmetic tweaks to give a bit more space between values and their units to prevent
clashes between them.

I would be interested to hear how the "Rain Prediction" fairs against your current weather conditions.
i.e. when it is raining, does the rain prediction show that there is a chance of rain or not.
and when it is not raining or has stopped raining for a while does it state no chance of rain.

As I may have to re-tweak how it calculates the chance of rain if it is well out.

Re: Cumulus RealTime Data Grabber - Tool

Posted: Sat 10 Mar 2012 12:26 am
by Super-T
Also tried on a clean install windows 7 drive and same result.
Just testing new version now and looking for the included miracle :-)

No change to my problem in new version. Miracle never appeared.

Tried grabbing the realtime.txt on the local network from the weather laptop with same results. Tried running your programme on the laptop with the local realtime.txt and same problem.

Checked the updating of the website realtime.txt and it is definitely updating every minute.

Re: Cumulus RealTime Data Grabber - Tool

Posted: Sat 10 Mar 2012 11:33 am
by Solorize
Hi Terry,

Thanks for the info. I will have a look through my code again this afternoon,
as am currently cutting a new flowerbed in my back garden, and as the soil
is mostly clay, its taking me ages LOL.

If I find anything I will let you know.

Re: Cumulus RealTime Data Grabber - Tool

Posted: Sat 10 Mar 2012 1:19 pm
by mcrossley
Solorize wrote: If I find anything I will let you know.
What, like a Roman horde! :lol:

Re: Cumulus RealTime Data Grabber - Tool

Posted: Sat 10 Mar 2012 3:08 pm
by Solorize
Terry,

I have looked through my code again and I still can't find anything that would
make it behave that way :?

I have taken mcrossley's advice and added a rough "CacheBuster" to the
URL by adding the current time to it, (FYI I did not convert the time to milliseconds, so I
hope it still works as it should LOL).

I have uploaded a test version which you can get below, can you tell me if this
works for you or if you still get the same problem, thanks.

Test version 1.1.5: http://www.wokinghamweather.co.uk/downl ... erTest.zip

I would be happy to hear from other people who can run this test version ok too, just so I know all
is still working as it should be.

Mark

Re: Cumulus RealTime Data Grabber - Tool

Posted: Sat 10 Mar 2012 3:10 pm
by Solorize
mcrossley wrote:
Solorize wrote: If I find anything I will let you know.
What, like a Roman horde! :lol:
Mark, unfortunatly I didn't discover any Roman coins, or artifacts, just a load of
tree roots and more clay LOL