Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue Jun 18, 2013 9:57 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 246 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 17  Next
Author Message
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 8:35 am 
Offline
User avatar

Joined: Tue Jun 28, 2011 2:06 pm
Posts: 265
Location: Harwich, Essex
Weather Station: WH-3080
Operating System: Windows XP SP3,
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

_________________
Regards,

Geoff


Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 9:53 am 
Offline
User avatar

Joined: Tue Sep 09, 2008 3:37 am
Posts: 703
Location: Auckland, New Zealand
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 7 Pro
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? :-)

_________________
Terry Wiltshire
http://www.janter.co.nz/weather/index.htm
Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 1:23 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
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?

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Last edited by Solorize on Fri Mar 09, 2012 6:29 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 1:31 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17827
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Solorize wrote:
there must be some other factor that is causing the problem.

Something being cached somewhere with a TTL of 5 minutes?

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 6:41 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
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?

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 7:07 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17827
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
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.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 8:28 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2594
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
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

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 9:15 pm 
Offline
User avatar

Joined: Tue Sep 09, 2008 3:37 am
Posts: 703
Location: Auckland, New Zealand
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 7 Pro
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.


You do not have the required permissions to view the files attached to this post.

_________________
Terry Wiltshire
http://www.janter.co.nz/weather/index.htm
Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 11:00 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
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.

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Last edited by Solorize on Fri Mar 09, 2012 11:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri Mar 09, 2012 11:09 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
A new release of Grabber for you all :)


Download version 1.1.4 : http://www.wokinghamweather.co.uk/downloads/CRTDGv114.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.

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sat Mar 10, 2012 12:26 am 
Offline
User avatar

Joined: Tue Sep 09, 2008 3:37 am
Posts: 703
Location: Auckland, New Zealand
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 7 Pro
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.

_________________
Terry Wiltshire
http://www.janter.co.nz/weather/index.htm
Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sat Mar 10, 2012 11:33 am 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
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.

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sat Mar 10, 2012 1:19 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2594
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Solorize wrote:
If I find anything I will let you know.
What, like a Roman horde! :lol:

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sat Mar 10, 2012 3:08 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
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/downloads/CacheBusterTest.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

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sat Mar 10, 2012 3:10 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
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

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 246 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 17  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group