Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post 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.
User avatar
mcrossley
Posts: 5037
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Postby mcrossley » Tue Jan 27, 2015 5:07 pm

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

water01
Posts: 1408
Joined: Sat Aug 13, 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

Postby water01 » Tue Jan 27, 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: 5037
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Postby mcrossley » Tue Jan 27, 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: 5037
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Postby mcrossley » Tue Jan 27, 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: 26369
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in Spain
Contact:

Re: Server Generated Graphs for MX

Postby steve » Tue Jan 27, 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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

water01
Posts: 1408
Joined: Sat Aug 13, 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

Postby water01 » Tue Jan 27, 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: 5037
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Postby mcrossley » Tue Jan 27, 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: 5037
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Postby mcrossley » Tue Jan 27, 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: 1408
Joined: Sat Aug 13, 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

Postby water01 » Tue Jan 27, 2015 5:58 pm

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

Ho Hum!!

water01
Posts: 1408
Joined: Sat Aug 13, 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

Postby water01 » Tue Jan 27, 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: 525
Joined: Tue Oct 13, 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Server Generated Graphs for MX

Postby laulau » Tue Jan 27, 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: 5037
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Postby mcrossley » Tue Jan 27, 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 May 10, 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

Postby n9mfk » Tue Jan 27, 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: 26369
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in Spain
Contact:

Re: Server Generated Graphs for MX

Postby steve » Tue Jan 27, 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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

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

Re: Server Generated Graphs for MX

Postby nitrx » Wed Jan 28, 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.


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 5 guests