Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - 28 November 2014
Latest Cumulus MX release v3.0.0 build 3046 - 02 January 2019. See the Wiki for download

Server Generated Graphs for MX

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

Moderator: mcrossley

User avatar
mcrossley
Posts: 5315
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley » Tue 27 Jan 2015 5:07 pm

Yep, thanks David, I'll update the zip - again :bash: It looks like that is the last one?

water01
Posts: 1491
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Server Generated Graphs for MX

Post by water01 » Tue 27 Jan 2015 5:16 pm

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!!!!!!

User avatar
mcrossley
Posts: 5315
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley » Tue 27 Jan 2015 5:26 pm

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.

User avatar
mcrossley
Posts: 5315
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley » Tue 27 Jan 2015 5:28 pm

I just looked up the JQuery release history, 1.3.2 was released February 20th, 2009 :o

User avatar
steve
Cumulus Author
Posts: 26717
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Server Generated Graphs for MX

Post by steve » Tue 27 Jan 2015 5:34 pm

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.
Steve

water01
Posts: 1491
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Server Generated Graphs for MX

Post by water01 » Tue 27 Jan 2015 5:45 pm

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.

User avatar
mcrossley
Posts: 5315
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley » Tue 27 Jan 2015 5:50 pm

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.

User avatar
mcrossley
Posts: 5315
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley » Tue 27 Jan 2015 5:54 pm

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.

water01
Posts: 1491
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Server Generated Graphs for MX

Post by water01 » Tue 27 Jan 2015 5:58 pm

Whoops I must have overwritten my main .htaccess file while trying to get these to work.

Ho Hum!!

water01
Posts: 1491
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Server Generated Graphs for MX

Post by water01 » Tue 27 Jan 2015 6:02 pm

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.

User avatar
laulau
Posts: 522
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Server Generated Graphs for MX

Post by laulau » Tue 27 Jan 2015 8:46 pm

Hi Mark,
I guess it's possible to get the data to feed jpgraphs with realtimeLogSql.php script ?
Laurent

Image

User avatar
mcrossley
Posts: 5315
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley » Tue 27 Jan 2015 8:53 pm

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 :lol: I don't have MX uploading the json files, just my tag files, so yes I just query my real time MySQL table.

n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: Server Generated Graphs for MX

Post by n9mfk » Tue 27 Jan 2015 9:03 pm

Hi Mark so what the trick if you do not went to use the jnos files
thanks beau

User avatar
steve
Cumulus Author
Posts: 26717
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Server Generated Graphs for MX

Post by steve » Tue 27 Jan 2015 9:20 pm

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.
Steve

User avatar
nitrx
Posts: 1292
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Server Generated Graphs for MX

Post by nitrx » Wed 28 Jan 2015 11:33 am

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.

Post Reply