Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.2.1 (build 4043) - 19 October 2024

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Server Generated Graphs for MX

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

water01
Posts: 3487
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Server Generated Graphs for MX

Post by water01 »

Mark how much data is required before the graphs are generated (MySql version)?
David
Image
User avatar
mcrossley
Posts: 13566
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley »

Two entries? The minimum to plot a graph I guess?
water01
Posts: 3487
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Server Generated Graphs for MX

Post by water01 »

Where does the pop-up graph get the size of the image it displays from?
David
Image
User avatar
mcrossley
Posts: 13566
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley »

Which pop-up David? On the gauges? If so there is a CSS setting to control the size - actually 2 settings iirc because the WindRose is normally a square plot.
water01
Posts: 3487
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Server Generated Graphs for MX

Post by water01 »

I meant the pop-up graphs them selves that appear when you run the mouse over a dial.

I have started a new website at our new home, but on comparing the pop-ups for the UV and ozone with my old site they are not sizing correctly, and for the life of me I cannot remember what I did to make this happen. :D
David
Image
water01
Posts: 3487
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Server Generated Graphs for MX

Post by water01 »

OK thanks Mark figured it out, there was some additional code to change the CSS that I forgot to put into the latest version of gauges.js.

You nudged me to look in the correct place!!
David
Image
senapsys
Posts: 24
Joined: Sun 22 Nov 2015 10:43 am
Weather Station: Davis VP2 Plus
Operating System: CentOS
Location: Wolumla
Contact:

Re: Server Generated Graphs for MX

Post by senapsys »

Hi there
I've been using the server side graphs that are generated using jpGraph for a number of years. After doing an update for PHP to 7.3.16, they suddenly stopped working and I now get a jpGraph error of 25092. This error suggests there is a configuration problem with TrueType or a problem with access the DejaVuSans.ttf file. I've double checked both and I can't see any issues. Further the jpGraph error message also out having basedir set as a restriction in php but I don't have this set.
I'm a little torn about whether to invest further time into these or whether I should phase them out as hover graphs over my SS gauges and look at integrating the HighChart graphs instead.
I thought I'd check to see if anyone else has come across this error before making a decision.
Thanks in advance.
Richard
richard_newberry
Posts: 484
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Server Generated Graphs for MX

Post by richard_newberry »

I have the same issue mate.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
richard_newberry
Posts: 484
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Server Generated Graphs for MX

Post by richard_newberry »

Anyone got any idea how to sort this out.

One minute its working then its not.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
Laephis
Posts: 9
Joined: Mon 08 Jun 2020 7:58 pm
Weather Station: Ecowitt GW1000
Operating System: Win10

Re: Server Generated Graphs for MX

Post by Laephis »

Having some trouble getting this to work 100% and hoping another pair of eyes will spot the problem.

I've got jpgraph working on my hosted webserver and confirmed using their suite of check scripts. E.g:


I'm also able to run the graphing script directly and have an output file created in my cache folder:



However, when I mouseover the dial, I still get a broken image:


I've been banging my head against the wall trying to figure this out and feel like I'm missing something obvious at this point, so any help is greatly appreciated.
Last edited by Laephis on Sun 14 Jun 2020 7:29 pm, edited 1 time in total.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Server Generated Graphs for MX

Post by sfws »

I think this is same problem as viewtopic.php?f=40&t=18171&p=143415
Laephis
Posts: 9
Joined: Mon 08 Jun 2020 7:58 pm
Weather Station: Ecowitt GW1000
Operating System: Win10

Re: Server Generated Graphs for MX

Post by Laephis »

sfws wrote: Sun 14 Jun 2020 5:22 pm I think this is same problem as viewtopic.php?f=40&t=18171&p=143415
Thanks, this was the tip I needed. Gauges.js was the culprit, and changing imgPathURL to the correct location fixed the issue.
BCJKiwi
Posts: 1256
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Server Generated Graphs for MX

Post by BCJKiwi »

JpGraphs not updating.

Have JpGraphs for gauges (and elsewhere) working fine BUT even though the .json files and the timestamp on the graphs in the cache are updating every 10 minutes, the graph image only changes every hour.
With no cache, the graph is generated but still only to the hour.

All the usual browser "cache busting" tricks have been applied without a resolution.
All references to this in JpGraph website manual etc and general searches did not cover this issue.

Surely the graphs should update every 10 minutes?

Have been unable to find a solution to this.
I presume there is a simple answer somewhere but have not found it.
Any help gratefully received, thanks.
User avatar
mcrossley
Posts: 13566
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley »

Is it a PHP file read caching issue perhaps? Though an hour seems a awful long time. I remember once upon a time having to put a read cache defeat into one of my scripts.
BCJKiwi
Posts: 1256
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Server Generated Graphs for MX

Post by BCJKiwi »

Thanks,

Suppose I could try php's clearstatcache() if I can figure out where to put it ! :?
It affect the jpgraphs used by gauges as well.
Post Reply