Page 6 of 18

Re: Server Generated Graphs for MX

Posted: Fri 19 Jun 2015 9:21 pm
by Big Daddy
Thanks Mark. Anything helps at the moment, I just tend to be going round in circles. Love a challenge and will not give in until its solved.

Andy

Re: Server Generated Graphs for MX

Posted: Fri 19 Jun 2015 10:03 pm
by Big Daddy
Mark,

I didnt even see the error logs. :oops: Once I looked for them and found them I could see that the directory I was using (public_html/weather/jpgraph) was incorrect even though I thought this was the full directory. There were another 2 directories to put before the public_html/weather/jpgraph. Now it all seems to be working 100% and caching.

I really appreciate your help and much prefer to be pointed rather than told. That way I learn.

Once again, many thanks. :clap:

Andy

Re: Server Generated Graphs for MX

Posted: Sun 21 Jun 2015 2:36 am
by Werk_AG
Hi Mark

One more time, thank you for sharing your work.
I installed the jpgraph today. Everything is working fine, except an annoying thing: I can't manage to get km/h as units label for wind speed graphs.

Code: Select all

$GRAPH['uom']            = array('temp'=>'C', 'rain'=>'mm', 'wind'=>'km/h', 'baro'=>'hPa', 'cloudbase'=>'meter');
What I'm doing wrong? I tried Km/h, km/h, kmp, and never get any units label.
Don't know if it's important, I'm using the Mysql version of the script, with Cumulus 1


Regards
Werk_AG

Re: Server Generated Graphs for MX

Posted: Mon 22 Jun 2015 5:53 pm
by Big Daddy
Does anybody by chance have a php script for displaying min/max/avg temperatures on a daily basis and also one for daily rainfall, similar to what was available in Cumulus 1.

I have been using Marks excellent scripts and managed to work out how to get the data in there and create some new graphs (one line graph and one bar graph) but I am stuck on generating just the daily date on the x-axis. I have been through the JPgraph manual and it is way way over my head. I have posted my graphsettings and php scripts below.

Really am stuck.......again and my head is about to explode.

Thanks
Andy

Re: Server Generated Graphs for MX

Posted: Mon 22 Jun 2015 8:09 pm
by mcrossley
Werk_AG wrote:Hi Mark

One more time, thank you for sharing your work.
I installed the jpgraph today. Everything is working fine, except an annoying thing: I can't manage to get km/h as units label for wind speed graphs.

Code: Select all

$GRAPH['uom']            = array('temp'=>'C', 'rain'=>'mm', 'wind'=>'km/h', 'baro'=>'hPa', 'cloudbase'=>'meter');
What I'm doing wrong? I tried Km/h, km/h, kmp, and never get any units label.
Don't know if it's important, I'm using the Mysql version of the script, with Cumulus 1


Regards
Werk_AG
Yep, the UOM isn't being used for the Wind graph. In graphWind.php line 27 needs to be changed...

Code: Select all

From:
$graph->title->Set('Wind (' . $data['units']. ')');

to:
$graph->title->Set('Wind (' . $GRAPH['uom']['wind']. ')');
I'll update the zip file shortly.

Re: Server Generated Graphs for MX

Posted: Mon 22 Jun 2015 8:48 pm
by water01
Does anybody by chance have a php script for displaying min/max/avg temperatures on a daily basis and also one for daily rainfall, similar to what was available in Cumulus 1.
As of MX v3025 Steve made Daily Temp and Rain available as standard in the Trends web page.

Re: Server Generated Graphs for MX

Posted: Mon 22 Jun 2015 9:04 pm
by Werk_AG
mcrossley wrote:
Werk_AG wrote:Hi Mark
Yep, the UOM isn't being used for the Wind graph. In graphWind.php line 27 needs to be changed...
Thank you Mark :D

Re: Server Generated Graphs for MX

Posted: Mon 22 Jun 2015 9:43 pm
by Big Daddy
An apology, as I don't normally use the Cumulus web pages I hadn't really looked in there so I will try and look at incorporating this into my website which started life as a weatherbyyou php based site. I think it would still be nice to have the php scripts for using with JPgraph as a great alternative.

Andy

Re: Server Generated Graphs for MX

Posted: Fri 26 Jun 2015 9:53 pm
by Big Daddy
Success. Am now using the MX / Highgraph templates for the graphs and charts and they really add a new dimension.

Have even managed to manipulate the files to tailor the graphs to blend in with my website theme. Not bad for a complete novice, even if I say so myself.

Thanks everyone for your support and pointers.

Andy

Re: Server Generated Graphs for MX

Posted: Thu 09 Jul 2015 9:58 am
by KetteringUK
Implemented MX now as full replacement for my cumulus 1 - love the graphs.

Thanks

Re: Server Generated Graphs for MX

Posted: Wed 19 Aug 2015 11:07 am
by Sadgit
Hello,

I have spent the last hour trying to get this to work and it just fails to do anything for me :S
Any idea what I am doing wrong please? I just get a blank page when testing

http://www.marton-weather.co.uk/images/graphTempOut.php

Cheers
Mark

Re: Server Generated Graphs for MX

Posted: Wed 19 Aug 2015 1:51 pm
by mcrossley
Nope, remote users cannot see anything, you will need to check the PHP error log on your web server for a clue.

Re: Server Generated Graphs for MX

Posted: Wed 19 Aug 2015 2:16 pm
by water01
Viewing the source of the page shows

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv="Content-Type"
content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
So as Mark says you will need to look at your PHP error log.

Re: Server Generated Graphs for MX

Posted: Wed 19 Aug 2015 2:43 pm
by Sadgit
thanks.. that is the problem, nothing is being logged in the error log for it :(

Re: Server Generated Graphs for MX

Posted: Wed 19 Aug 2015 3:48 pm
by water01
Would it be possible to upload the PHP source of graphTempOut.php so we can take a look and see if we can spot anything?