Sandaysoft

Support forum for Cumulus weather station software
It is currently Fri May 24, 2013 8:50 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  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Cumulus HTM and PHP - fully validated
PostPosted: Sun Aug 16, 2009 11:25 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
-deleted-


Last edited by gemini06720 on Thu May 02, 2013 4:36 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Sun Aug 16, 2009 12:29 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17611
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Nice site, Ray.

Steve


Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Sun Aug 16, 2009 12:35 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Hi Ray:

The beteljuice ajax is in permanent flux :roll:
I originally modified Kens script to work with HeavyWeather, but moved onto Cumulus !

BTW some of the more important routine changes were fed back to Ken ;)

I decided early on to work with just the realtime.txt so that novices didn't have to concern themselves with a new template and how to upload it. In a similar fashion I decided not to use (server side) php script, as not everyone has that capability.

As realtime.txt is effectively current data with a few extras, my idea was that people would still use Cumulus template method for less time sensitive data.

A lot of the code is involved with muli-unit o/p (In hindsight pershaps unecessary - I am now experimenting with introducing a set of 'native' variables), and different language capability, also there are a LOT of now redundant data checks as Cumulus quickly evolved and people were running different versions !

Currently (and very slowly - as time permits) working on an Ajaxed Cumulus template builder and some new graphics - all JavaScript, as people seem to want the Cumulus style pages and some individual tweaks - or at least until they start experimenting with html / css / JavaScript :shock:

WIP:
http://www.dickie.webfusion.co.uk/betel ... oard2.html
http://www.dickie.webfusion.co.uk/betel_cumulus/

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


Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Sun Aug 16, 2009 11:02 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
-deleted-


Last edited by gemini06720 on Thu May 02, 2013 4:36 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Sun Aug 16, 2009 11:33 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
-deleted-


Last edited by gemini06720 on Thu May 02, 2013 4:37 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Sun Aug 16, 2009 11:39 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
-deleted-


Last edited by gemini06720 on Thu May 02, 2013 4:37 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Mon Aug 17, 2009 12:31 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
It was probably over a year ago that I informed Ken of the tweaks to help stop unecessary code execution and graphic 'flicker' - so if he did any mods they should be present by now.

If you mean my Cumulus ajax zipped files, they currently don't have the IE8 'fixes' described in the thread.
Quote:
I have been trying hard to understand JavaScript (by adding functions to Ken True's 'ajaxWDwx.js' Ajax JavaScript) but I have not found an easy way for the JavaScripts to indicate when and where I have accidently committed an error
That isn't the JavaScript per se, that's one of the 'problems' working in an Ajax loop, Some errors may be reported, others not - because the data is asynchronous you have to handle things within the loop call or go away to external functions - if something fails either the call carries on regardless (effectively 'overwriting' any error report) or it all hangs :?

Quite often it's the html that's wrong !
One of the best ways to work out where thing are going wrong is to have a table of your html 'variables' in the order that the code produces them, normally (but not always !) if one fails, those below it fail as well.

As you may have noticed - debugging by producing an alert with your chosen content doesn't seem to work (because of reasons above ;) ), BUT (sometimes) it will work if you call it as an external function - look at the end of beteljuice ajax to find one.

use would be:
...
x = (y*4.2),toFixed(2);
betel('x is ' + x);
......

Graphics - NP, just a further illustration of what can be done, strangely people who use php usually keep everything text style apart from a few advisories :?:

I am always willing to assist, but I do prefer to suggest and give snippets and let others run with their imagination

There are others on the forum who already are producing php / ajax hybrids, and also pinto who wrote the original Ajax call routine that Ken uses !

Somebody, somewhere, should be able to assist / guide you in pretty much anything you wish to acheive.

PS. How I animate my php banner is 'Out Of Bounds' :lol:

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


Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Mon Aug 17, 2009 7:50 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17611
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
gemini06720 wrote:
I do hope you meant the 'original'


Yes indeed - in fact the Cumulus pages look a bit 'twee' in comparison ;)

Quote:
If you do not mind, I would like to use this tread to share my notions of PHP when adapted to something like weather Web pages and possibly motivate other users in using PHP.


Yes, please do - although it may be better to move to a thread in the 'website development' section. I suspect that many people who don't own Davis stations don't read this section.

Quote:
And, who knows, PHP templates might even be available from within the Cumulus distribution package... ;)


It was always my intention to switch to PHP pages (even if only for myself; I know some people can't use PHP), but I was too busy with developing Cumulus itself, and then other people started producing alternative versions of the pages using things like PHP, so i never got around to it. I haven't even had time to try out any of the many alternatives!

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


Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Mon Aug 17, 2009 7:56 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17611
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
gemini06720 wrote:
Would you have an up-to-date list of all the tags that are being used in Cumulus - so far, my 'cumulustags' file contains 166 tags. I have attached the file to this message...


I think the list in the help file is up to date (I do try to keep the help file correct with each release, even the betas) which I guess is where you got your list? The help in the latest 1.8.8 beta should be correct.

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


Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Mon Aug 17, 2009 10:10 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
-deleted-


Last edited by gemini06720 on Thu May 02, 2013 4:37 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Mon Aug 17, 2009 10:34 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
-deleted-


Last edited by gemini06720 on Thu May 02, 2013 4:38 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Mon Aug 17, 2009 11:33 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17611
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
gemini06720 wrote:
Well, you might review your 'thinking' ... as there were at least 4 tags (that I can remember of) that were not mentioned in the help file... :(


There are 167 web tags - list attached, extracted from the code. As far as I can tell, these are all documented in the 1.8.8 help.


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

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


Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Mon Aug 17, 2009 8:26 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
The Cumulus Wiki contains details on all 167 webtags too

http://sandaysoft.com/wiki/index.php?title=Webtags

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Mon Aug 17, 2009 8:46 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17611
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
daj wrote:
The Cumulus Wiki contains details on all 167 webtags too


Hey - nice job!

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


Top
 Profile  
 
 Post subject: Re: Cumulus HTM and PHP - fully validated
PostPosted: Tue Aug 18, 2009 1:39 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
-deleted-


Last edited by gemini06720 on Thu May 02, 2013 4:38 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  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