Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed Jun 19, 2013 11:32 am
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  [ 276 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 19  Next
Author Message
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 6:09 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Looks like it is getting 404 File not found.

I loaded the current version and ran it last night without any issues ran all night without issues (checked the server weblogs).

However....

1) I use rename. Hard to believe servers that don't support that as it is really the only way to get data successfully every time.
2) I upload data to my server once a minute.
3) Set the gadget to use 60 seconds for updates.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 6:18 pm 
Offline
User avatar

Joined: Mon Nov 23, 2009 1:34 am
Posts: 111
Location: Rugeley, Staffordshire
Weather Station: Techno-Line WS2300
Operating System: Windows 8 Consumer Preview 64bit
Strange that it cannot find the file that is there on the server. I wonder if perhaps it cannot find it if its trying to find and extract the data from it when its being written to from Cumulus? Any ideas?

I'll speak to Fastohsts technical support to see if it is possible to use file rename on their servers of check if there's a setting in the Fasthosts control panel for it.

Steve

_________________
Steve J
Image Architect
http://www.imagearchitect.co.uk

Image
http://www.imagearchitect.co.uk/weather/index.htm


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 6:36 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1888
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Quote:
I wonder if perhaps it cannot find it if its trying to find and extract the data from it when its being written to from Cumulus

That would seem to be the problem !

The prog is folding because of corrupted or incomplete data. It is 'covered' for if the file exists. Need to inspect the code and introduce one or two 'get out of jail free' cards ;) There will probably still be a delay before a successful attempt, but it won't 'die' !

... hopefully

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 7:05 pm 
Offline
User avatar

Joined: Mon Nov 23, 2009 1:34 am
Posts: 111
Location: Rugeley, Staffordshire
Weather Station: Techno-Line WS2300
Operating System: Windows 8 Consumer Preview 64bit
See! although I'm not a software genius with regards to writing it, (infact totally novice with programming code) I can think quite logically and with common sense. Hopefully then someone can re-engineer the code so that if it cannot find the file it doesn't 'crash' and stop, but looks again, and again until it finds it....

Thanks Beteljuice for that!

Steve

_________________
Steve J
Image Architect
http://www.imagearchitect.co.uk

Image
http://www.imagearchitect.co.uk/weather/index.htm


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 8:01 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Looks like it is making multiple attempts (very fast ones which might be the problem)

Code:
12 January 2010 17:41:24: Enter readyStateHandler
12 January 2010 17:41:24: xmlHttpObj.readyState = 2
12 January 2010 17:41:24: xmlHttpObj.status = 404

12 January 2010 17:41:24: Enter readyStateHandler
12 January 2010 17:41:24: xmlHttpObj.readyState = 3
12 January 2010 17:41:24: xmlHttpObj.status = 404

12 January 2010 17:41:24: Enter readyStateHandler
12 January 2010 17:41:24: xmlHttpObj.readyState = 4
12 January 2010 17:41:24: xmlHttpObj.status = 404


3 attempts for the same file in the same second?

I would think that anyone decent with JavaScript would be able to figure it out. There is a lot of code out there that does the same type of function and its all plain text source.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 8:45 pm 
Offline
User avatar

Joined: Wed Sep 10, 2008 2:15 pm
Posts: 385
Location: Gilleleje, Denmark
Weather Station: Rosenborg 68700
Operating System: Win7 Ult. 32-bit
Have uploaded version 1.6IH to first post in this thread.
Changes:
- changed code to wait for the specified interval in case of errors, e.g. 404 file not found
- changed html slightly to allow for 2-digit wind speeds.

_________________
Ib http://www.ibtest.dk/vejr/


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 9:23 pm 
Offline
User avatar

Joined: Mon Nov 23, 2009 1:34 am
Posts: 111
Location: Rugeley, Staffordshire
Weather Station: Techno-Line WS2300
Operating System: Windows 8 Consumer Preview 64bit
:clap: :clap: :clap: :D You're a star! Thank you I'm certain it will work fine now! Will download it in a minute.

Everyone I've shown the gadget to thinks it is brilliant!

Steve

_________________
Steve J
Image Architect
http://www.imagearchitect.co.uk

Image
http://www.imagearchitect.co.uk/weather/index.htm


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 9:29 pm 
Offline
User avatar

Joined: Wed Sep 10, 2008 2:15 pm
Posts: 385
Location: Gilleleje, Denmark
Weather Station: Rosenborg 68700
Operating System: Win7 Ult. 32-bit
Steve, you're the one who can test it - you are the one having the problem :)
(I noticed you have changed the interval to 1 minute. Please change back to what you had when you had errors).

_________________
Ib http://www.ibtest.dk/vejr/


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 9:40 pm 
Offline
User avatar

Joined: Mon Nov 23, 2009 1:34 am
Posts: 111
Location: Rugeley, Staffordshire
Weather Station: Techno-Line WS2300
Operating System: Windows 8 Consumer Preview 64bit
:clap: ....and thanks to Kevin too for your input!

Steve :clap:

And I will change the interval back to 10 secs :)

_________________
Steve J
Image Architect
http://www.imagearchitect.co.uk

Image
http://www.imagearchitect.co.uk/weather/index.htm


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Tue Jan 12, 2010 10:24 pm 
Offline
User avatar

Joined: Mon Nov 23, 2009 1:34 am
Posts: 111
Location: Rugeley, Staffordshire
Weather Station: Techno-Line WS2300
Operating System: Windows 8 Consumer Preview 64bit
Progress Report...

So far, all going well. The realtime text file is updating from cumulus every 5 secs, the update interval in the gadget is 10 secs. Occasionally I get the 'service unavailable' message, presumably when the gadget is trying to grab data whilst it is being written to the txt file, but a few seconds later it always updates ok, i.e. tries again and succeeds!

So am assuming the issue is fixed and it is now working all the time, but will post back here tomorrow to confirm this anyway.

Once again, thanks to everyone who has helped with this! :clap:

Steve

_________________
Steve J
Image Architect
http://www.imagearchitect.co.uk

Image
http://www.imagearchitect.co.uk/weather/index.htm


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Wed Jan 13, 2010 12:40 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1698
Location: World...
Weather Station: No weather station
Operating System: No operating system
For the first time since version 1.2, the gadget is displaying both the background and the weather information... :)

Thank you... :D


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Wed Jan 13, 2010 10:10 am 
Offline
User avatar

Joined: Mon Nov 23, 2009 1:34 am
Posts: 111
Location: Rugeley, Staffordshire
Weather Station: Techno-Line WS2300
Operating System: Windows 8 Consumer Preview 64bit
Just to update you all, the gadget is now running fine here too. it worked ok all yesterday evening since updating it to the newest version, and so far has done so all morning and am sure it will continue to do so.

In conclusion then, the gadget works and I'd like to thank all who contributed to helping sort out the issues with it! :clap:

Steve

_________________
Steve J
Image Architect
http://www.imagearchitect.co.uk

Image
http://www.imagearchitect.co.uk/weather/index.htm


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Wed Jan 13, 2010 10:53 am 
Offline
User avatar

Joined: Wed Sep 10, 2008 2:15 pm
Posts: 385
Location: Gilleleje, Denmark
Weather Station: Rosenborg 68700
Operating System: Win7 Ult. 32-bit
Thanks for the feedback :)

_________________
Ib http://www.ibtest.dk/vejr/


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Wed Jan 13, 2010 2:34 pm 
Offline
User avatar

Joined: Mon Nov 23, 2009 1:34 am
Posts: 111
Location: Rugeley, Staffordshire
Weather Station: Techno-Line WS2300
Operating System: Windows 8 Consumer Preview 64bit
Suggestion:

Firstly, a bit more feedback, its still working fine so the gadget is perfectly running now.

I have emailed the gadget to several friends to try out and also my mother.

They have provided feedback to say it is working OK too, but one small issue mentioned by my mother and two of my friends; the graphical look of the gadget is brilliant, however, on the daytime screens, could the text be made darker rather than white? The white text against the night screens is perfect but on the day screens, especially towards the lower edge where it grades even paler, the text for someone with poor eyesight or on a monitor with low contrast, can be slightly difficult to read.

I realise that the graphic images don't have the text on them, so I presume the text is generated and thus specified elsewhere.

Therefore, how difficult would it be to specify a dark blue or black colour for the text when it switches to using the daytime screens?

This is just passing on feedback I've received after asking those trying it out, so look forward to hearing what you think about this suggestion?

Steve

_________________
Steve J
Image Architect
http://www.imagearchitect.co.uk

Image
http://www.imagearchitect.co.uk/weather/index.htm


Top
 Profile  
 
 Post subject: Re: Cumulus Realtime Gadget
PostPosted: Wed Jan 13, 2010 5:24 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Modifying the style is not very hard.

In reality, it is just a self-contained web page.

It just uses a normal CSS file though the html file has embeded CSS that would be better moved to the style sheet for easy of modification.

You just need to know how to modify the files, and repackage it up so it can be distributed.

Ideally, you would create something like this customized for your own site with the URL and retrieval times already set so that people could download it from your weather site, install it and see "your" website automatically with no configuration.

You would most likely set the interval to something larger like every 3-5 minutes to reduce the number of hits you would get.

Then you could change the graphic to include custom graphics for your site, perhaps using your sites logo etc...

I've already been playing with this for that very purpose. I've already got it preloaded with the URL, time set to 5 minutes and it doesn't ask for configuration any more. Will start reformatting the size (too large), backgrounds, changes to date/time formats etc... kind of a fun side project. Replaced the ?uid= rand with ?t= timestamp just for kicks.

A good project to piddle arond with JavaScript with.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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