Page 2 of 18
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 5:07 pm
by mcrossley
Yep, thanks David, I'll update the zip - again

It looks like that is the last one?
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 5:16 pm
by water01
I think so. I have got all the others working once I got my head around the .htaccess and what it did and more importantly where it should be!!
It didn't help that I set up a directory called jgraph rather than jpgraph!!!!! Couldn't understand why it couldn't find the code, my eyes just did not see the missing p. Sat there for nearly 20 minutes trying to figure out why it couldn't find the includes!!!!!!
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 5:26 pm
by mcrossley
Hi David, your gauges page doesn't work for me, I think the version of JQuery (1.3.2) you have included in the header is too old - it does not support the .on() functionality. I use version 1.11.1 by default with the gauge page.
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 5:28 pm
by mcrossley
I just looked up the JQuery release history, 1.3.2 was released February 20th, 2009

Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 5:34 pm
by steve
mcrossley wrote:It obviously does work

Steve tested it for me and implemented the graphs on his web site too.
And it's obviously dead easy to set up because even I managed it. I didn't have the PHP compatibility issues to contend with, though.
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 5:45 pm
by water01
Hi David, your gauges page doesn't work for me, I think the version of JQuery (1.3.2) you have included in the header is too old - it does not support the .on() functionality. I use version 1.11.1 by default with the gauge page.
Mark did you mean me as I can see gauges fine at
http://www.dmjsystems.co.uk/weather/gauges-ss.php with the graphs now.
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 5:50 pm
by mcrossley
Ah, that page does work! I followed the link from your home page which took me to..
http://www.dmjsystems.co.uk/weather/gauges-ss.htm
which doesn't.
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 5:54 pm
by mcrossley
If you follow the link in your signature, you get to index.htm rather than index.php
So
http://www.dmjsystems.co.uk/weather/ defaults to the index.htm page. Is that intentional?
If not, you need to either change your Apache config, or edit/add a .htaccess file in your root weather folder to make index.php the default.
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 5:58 pm
by water01
Whoops I must have overwritten my main .htaccess file while trying to get these to work.
Ho Hum!!
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 6:02 pm
by water01
Fixed now. Thank god for nightly backups!!
I really must clean up my server and get rid of all the .htm files as it is now a total PHP site.
Using MX though I am going to get some .htm files uploaded though for the moment as the option to just upload .json files and not the .htm files does not yet exist.
Let Steve complete the Beta first as it is not that important.
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 8:46 pm
by laulau
Hi Mark,
I guess it's possible to get the data to feed jpgraphs with realtimeLogSql.php script ?
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 8:53 pm
by mcrossley
laulau wrote:Hi Mark,
I guess it's possible to get the data to feed jpgraphs with realtimeLogSql.php script ?
Guess how I do mine

I don't have MX uploading the json files, just my tag files, so yes I just query my real time MySQL table.
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 9:03 pm
by n9mfk
Hi Mark so what the trick if you do not went to use the jnos files
thanks beau
Re: Server Generated Graphs for MX
Posted: Tue 27 Jan 2015 9:20 pm
by steve
water01 wrote:Using MX though I am going to get some .htm files uploaded though for the moment as the option to just upload .json files and not the .htm files does not yet exist.
Let Steve complete the Beta first as it is not that important.
That's a fairly easy and useful change, though, so I'll look at doing that.
Re: Server Generated Graphs for MX
Posted: Wed 28 Jan 2015 11:33 am
by nitrx
Hi Mark,
where do I upload your php files and the jpgrah library ?
I've cumulusMX running in apeldoornmeteo.nl/cumulus
oploaded your php files in this dir (apeldoornmeteo.nl/cumulus) and made a dir apeldoornmeteo.nl/cumulus/jpgraph with the jpgraph library in it and also made the cache folder in the last one but nothing happens ergo no files in the images dir are created.