Page 4 of 5
Re: Yearly Data Summary
Posted: Tue 08 Mar 2011 6:38 pm
by beteljuice
There are many (including the beteljuice) whose providers are still using 'old' php

, but at least you run into less problems when the globals / TZ etc. haven't been set up properly

Re: Yearly Data Summary
Posted: Tue 08 Mar 2011 6:44 pm
by SouthUistWX
beteljuice wrote:There are many (including the beteljuice) whose providers are still using 'old' php

, but at least you run into less problems when the globals / TZ etc. haven't been set up properly

Haha always something to try us eh?!
Ah well back to the JS version...
At least it wasn't me being dumb

Re: Yearly Data Summary
Posted: Tue 08 Mar 2011 7:57 pm
by daj
I'm using PHP 5.3.3 -- will try and adjust the script for earlier versions if I can.
I have also tested it on 5.2 without issue.
PS - Mr beteljuice, may I have a constructive comment rather than a swipe, or have a mis-understood the inference?

Re: Yearly Data Summary
Posted: Tue 08 Mar 2011 11:26 pm
by beteljuice
PS - Mr beteljuice, may I have a constructive comment rather than a swipe, or have a mis-understood the inference?

No swipe nor slur intended
I was referring to nearly all the 'clever' stuff in PHP5 having to be configured / initialized whatever by the (server) admin. Especially TZ functions (Inc. local ? sunrise / sunset etc.)
Most of which seem to never be done or are incomplete.
NO SLIGHT INTENDED - DAJ IS A WIZARD CHAP, blah, blah, blah

Re: Yearly Data Summary
Posted: Wed 09 Mar 2011 1:48 am
by Super-T
Thanks Dave & Dave.
I found this works but probably only because all the files are in the same directory.
$dayfile='dayfile.txt';
I'll run with DaveNZ's as it is nicer

Re: Yearly Data Summary
Posted: Wed 09 Mar 2011 8:55 am
by daj
beteljuice wrote:NO SLIGHT INTENDED
LOL, that's fine then. Hit squad cancelled
Sometimes the written word is not best to get the 'tone' of a message
Re: Yearly Data Summary
Posted: Sat 12 Mar 2011 4:00 am
by captzero
Hi daj,
I was able to add my Wind Run data to the Yearly Data Summary and have added the appropriate button to view the figures, (see:
http://www.brisbaneliveweather.com/annual.php) however, I would like to centralise the buttons above the data table as they are now slightly off centre. How can i do this?
Thanks in advance.
Re: Yearly Data Summary
Posted: Sat 12 Mar 2011 6:02 pm
by rayauger
Hi dave,
Your script wont read my dayfile. I think it is due to the fact I am using a different format. Here is how my data looks like :
16-01-11;32,2;225;14:50;-12,8;23:55;0,0;00:00;0,00;00:00;1021,14;23:55;0,0;00:00;0,0;-11,1;88,2;14,5;14:35
17-01-11;32,2;225;11:05;-19,7;07:40;-12,9;00:00;1021,20;00:00;1031,67;19:22;0,0;00:00;0,0;-16,9;161,5;16,1;10:45
What can I do ?
tkx
Yvan
Re: Yearly Data Summary
Posted: Sat 12 Mar 2011 6:31 pm
by nitrx
rayauger wrote:Hi dave,
Your script wont read my dayfile. I think it is due to the fact I am using a different format. Here is how my data looks like :
16-01-11;32,2;225;14:50;-12,8;23:55;0,0;00:00;0,00;00:00;1021,14;23:55;0,0;00:00;0,0;-11,1;88,2;14,5;14:35
17-01-11;32,2;225;11:05;-19,7;07:40;-12,9;00:00;1021,20;00:00;1031,67;19:22;0,0;00:00;0,0;-16,9;161,5;16,1;10:45
What can I do ?
tkx
Yvan
I've the same format and it works perfect did you change the delimiters ?
Re: Yearly Data Summary
Posted: Sat 12 Mar 2011 6:36 pm
by daj
Hi Yvan,
rayauger wrote:Hi dave,
David
Your script wont read my dayfile. I think it is due to the fact I am using a different format. Here is how my data looks like :
Did you do the configuration part of the setup?
http://wiki.sandaysoft.com/a/AnnualData ... _Variables
You need to edit the script to say your field delimiter is ;
and your date delimiter is -
Should work if you do that
Re: Yearly Data Summary
Posted: Sat 12 Mar 2011 6:52 pm
by daj
Hi Dan
captzero wrote:..... however, I would like to centralise the buttons above the data table as they are now slightly off centre. How can i do this?
You have inheritied some CSS styling from another stylesheet on the page.
in the weatherstyleannual.css you have set element 'ul' to margin-left: 10%; which may be needed elsewhere on the page, however in the datasummary table it is also using it.
To solve the problem, specifically tell the datasummary.css to have no margin for the ul element, so..
Look in datasummary.css for
Code: Select all
#table_menu ul {
list-style-type: none;
}
and add an extra line
Code: Select all
#table_menu ul {
list-style-type: none;
margin-left: 0px;
}
That should solve it
Re: Yearly Data Summary
Posted: Sat 12 Mar 2011 7:23 pm
by PaulMy
I have updated to the PHP version and added '(C)' in the .css file for celcius in the data heading description, but how can I add the degree sign charactor there? I tried copying the '(°C)' from your site but that gives a wrong charactor for the degree sign. Probably something very simple but another lesson to be learned
Paul
Re: Yearly Data Summary
Posted: Sat 12 Mar 2011 7:39 pm
by rayauger
Did the trick. tkx. Next time I will read the instruction. Yah sure....
yvan
Re: Yearly Data Summary
Posted: Sat 12 Mar 2011 9:57 pm
by steve
PaulMy wrote:I have updated to the PHP version and added '(C)' in the .css file for celcius in the data heading description, but how can I add the degree sign charactor there? I tried copying the '(°C)' from your site but that gives a wrong charactor for the degree sign. Probably something very simple but another lesson to be learned
You probably need to use
instead of the degree symbol.
Re: Yearly Data Summary
Posted: Sat 12 Mar 2011 10:22 pm
by PaulMy
You probably need to use
Code: °
instead of the degree symbol.
Yes, and thank you Steve,
Paul