Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Yearly Data Summary PHP Page - HTML Errors

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
Hillbilly
Posts: 112
Joined: Tue 26 Jan 2010 8:54 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Vista Home Premium SP2
Location: Mayenne, Pays De La Loire, France
Contact:

Yearly Data Summary PHP Page - HTML Errors

Post by Hillbilly »

Hi David, thanks for this great add-on. Very neat. I'm going to use it with highlighting to show the frost days at a glance, for the gardener in the family.

I notice that when the PHP version is rendered in Firefox it shows 730 errors.
line 172 column 24 - Warning: <td> proprietary attribute "datarow"
line 172 column 24 - Warning: <td> proprietary attribute "datacol"

Tag contains an attribute that is proprietary to IE or Netscape.

Is there any way round this to get my green tick, or is JS the answer?
Many thanks
Helen

La Locherie Weather
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: Yearly Data Summary PHP Page - HTML Errors

Post by daj »

Hi Helen,

I take it you have some kind of validator installed on FF? It certainly renders fine in FF so no one else need panic!

The warnings are because I am using custom attributes to tag each cell in the table -- when you hover over a value in the table Javascript will use the attributes to get the location and highlight the column and row header.

Does exactly the same in the JS version but it will validate perfectly as I insert the table into the html document after the page has fully loaded, and most validator do not care about what happens at that point :D

I can maybe look at re-working the php version a little
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
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: Yearly Data Summary PHP Page - HTML Errors

Post by daj »

Helen

Don't say I am not good to you :lol: ...... a new readDayfile.php which fully validates and works as per the existing version but with a bit more sophisticated coding to remove the need for custom attributes in the HTML

(remember to check the variables at the top -- $dayfile, and the delimiters)
You do not have the required permissions to view the files attached to this post.
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
Hillbilly
Posts: 112
Joined: Tue 26 Jan 2010 8:54 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Vista Home Premium SP2
Location: Mayenne, Pays De La Loire, France
Contact:

Re: Yearly Data Summary PHP Page - HTML Errors

Post by Hillbilly »

Good grief. I was just replying to say the page did indeed render fine, I just use the FF HTML validator plug in to validate my HTML, I was very grateful for what you had produced and whether you did any rework was of course up to you.

But you beat me to it, you're a genius - and so fast. Thanks so much for your work. :clap: You are indeed very good to all of us.
Many thanks
Helen

La Locherie Weather
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Yearly Data Summary PHP Page - HTML Errors

Post by Synewave »

Hillbilly wrote:You are indeed very good to all of us.
He is, all in 58 minutes! :clap:
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: Yearly Data Summary PHP Page - HTML Errors

Post by daj »

LOL. After I replied to Helen the problem was irritating me so I thought "I better just get it fixed" !! :P
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Yearly Data Summary PHP Page - HTML Errors

Post by gemini06720 »

daj wrote:LOL. After I replied to Helen the problem was irritating me so I thought "I better just get it fixed" !! :P
Good thing you did ... otherwise you would have heard (read) from me... :mrgreen:

I have not tried the latest release yet (will do that later on), but it better validate properly with W3C... :twisted:

I have modified the (old) PHP code somewhat and have included the yearly data into the 'PHP/AJAX Website Template Set' as seen on this [link removed] page. Oh, full credit is also given to the designer... :D
Last edited by gemini06720 on Wed 22 May 2013 10:35 pm, edited 1 time in total.
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: Yearly Data Summary PHP Page - HTML Errors

Post by daj »

gemini06720 wrote:
daj wrote:I have not tried the latest release yet (will do that later on), but it better validate properly with W3C... :twisted:
Indeed it does :D

http://validator.w3.org/check?uri=http% ... ummary.php
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yearly Data Summary PHP Page - HTML Errors

Post by steve »

daj wrote:Indeed it does :D
Phew. Potential international incident nicely avoided.
Steve
Hillbilly
Posts: 112
Joined: Tue 26 Jan 2010 8:54 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Vista Home Premium SP2
Location: Mayenne, Pays De La Loire, France
Contact:

Re: Yearly Data Summary PHP Page - HTML Errors

Post by Hillbilly »

Synewave wrote:
Hillbilly wrote:You are indeed very good to all of us.
He is, all in 58 minutes! :clap:
But of course we all know David has banks of support staff wearing headsets, so a couple of them were probably free and did it for him while he was watching the footie. ;)

No errors in FF now, very happy thanks David.
Many thanks
Helen

La Locherie Weather
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Yearly Data Summary PHP Page - HTML Errors

Post by gemini06720 »

steve wrote:Phew. Potential international incident nicely avoided.
And who knows, it might have eventually lead to a complete international meltdown... :twisted:
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Yearly Data Summary PHP Page - HTML Errors

Post by gemini06720 »

daj wrote:
gemini06720 wrote:
daj wrote:I have not tried the latest release yet (will do that later on), but it better validate properly with W3C... :twisted:
Indeed it does :D
David, please correct me if I have missed something here... :o

I looked at the time you released the 'readDayfile.zip' file ... the message indicates it was 14:06 on March 15th, 2011, that would be your time (and not my time as I am always 7 hours too early) ... were you not suppose to be at work at that time and earning some money to feed your starving family members... :mrgreen:
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yearly Data Summary PHP Page - HTML Errors

Post by steve »

gemini06720 wrote:were you not suppose to be at work at that time and earning some money to feed your starving family members... :mrgreen:
David probably does the same as I do and multi-tasks during the day, which is how I manage to do Cumulus support at all hours of the day, assuming I'm awake. It does mean (in my case, anyway) that my working day is effectively extended to compensate.
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: Yearly Data Summary PHP Page - HTML Errors

Post by gemini06720 »

steve wrote:...multi-tasks during the day, which is how I manage to do Cumulus support at all hours of the day, assuming I'm awake. It does mean (in my case, anyway) that my working day is effectively extended to compensate.
Steve, are you not 'working' from your little corner of paradise called home? :D
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Yearly Data Summary PHP Page - HTML Errors

Post by gemini06720 »

David, an international incident has been avoided... :D

I have incorporated the modifications you made Tuesday to the 'readDayfile.php' script into my own customised script, added the required translation functions and now have a fully bilingual (english and french) [link removed] page for the 'PHP/AJAX Website Template Set' ... ;)
Last edited by gemini06720 on Wed 22 May 2013 10:36 pm, edited 1 time in total.
Post Reply