Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Cumulus HTM and PHP - fully validated

Discussion specific to Davis weather stations
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Cumulus HTM and PHP - fully validated

Post by gemini06720 »

-deleted-
Last edited by gemini06720 on Thu 02 May 2013 4:36 pm, edited 1 time in total.
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus HTM and PHP - fully validated

Post by steve »

Nice site, Ray.

Steve
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Cumulus HTM and PHP - fully validated

Post by beteljuice »

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 !
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Cumulus HTM and PHP - fully validated

Post by gemini06720 »

-deleted-
Last edited by gemini06720 on Thu 02 May 2013 4:36 pm, edited 1 time in total.
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Cumulus HTM and PHP - fully validated

Post by gemini06720 »

-deleted-
Last edited by gemini06720 on Thu 02 May 2013 4:37 pm, edited 1 time in total.
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Cumulus HTM and PHP - fully validated

Post by gemini06720 »

-deleted-
Last edited by gemini06720 on Thu 02 May 2013 4:37 pm, edited 1 time in total.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Cumulus HTM and PHP - fully validated

Post by beteljuice »

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.
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 !
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus HTM and PHP - fully validated

Post by steve »

gemini06720 wrote:I do hope you meant the 'original'
Yes indeed - in fact the Cumulus pages look a bit 'twee' in comparison ;)
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.
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
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus HTM and PHP - fully validated

Post by steve »

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
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Cumulus HTM and PHP - fully validated

Post by gemini06720 »

-deleted-
Last edited by gemini06720 on Thu 02 May 2013 4:37 pm, edited 1 time in total.
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Cumulus HTM and PHP - fully validated

Post by gemini06720 »

-deleted-
Last edited by gemini06720 on Thu 02 May 2013 4:38 pm, edited 1 time in total.
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus HTM and PHP - fully validated

Post by steve »

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
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Cumulus HTM and PHP - fully validated

Post by daj »

The Cumulus Wiki contains details on all 167 webtags too

http://sandaysoft.com/wiki/index.php?title=Webtags
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus HTM and PHP - fully validated

Post by steve »

daj wrote:The Cumulus Wiki contains details on all 167 webtags too
Hey - nice job!
Steve
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Cumulus HTM and PHP - fully validated

Post by gemini06720 »

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