Page 15 of 18
Re: Server Generated Graphs for MX
Posted: Sat 08 Feb 2020 11:43 am
by water01
Mark how much data is required before the graphs are generated (MySql version)?
Re: Server Generated Graphs for MX
Posted: Sun 09 Feb 2020 12:38 pm
by mcrossley
Two entries? The minimum to plot a graph I guess?
Re: Server Generated Graphs for MX
Posted: Sat 04 Apr 2020 8:25 am
by water01
Where does the pop-up graph get the size of the image it displays from?
Re: Server Generated Graphs for MX
Posted: Sat 04 Apr 2020 4:31 pm
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.
Re: Server Generated Graphs for MX
Posted: Sat 04 Apr 2020 7:24 pm
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.

Re: Server Generated Graphs for MX
Posted: Sat 04 Apr 2020 8:02 pm
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!!
Re: Server Generated Graphs for MX
Posted: Thu 16 Apr 2020 7:02 am
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
Re: Server Generated Graphs for MX
Posted: Tue 28 Apr 2020 1:59 am
by richard_newberry
I have the same issue mate.
Re: Server Generated Graphs for MX
Posted: Tue 28 Apr 2020 3:30 pm
by richard_newberry
Anyone got any idea how to sort this out.
One minute its working then its not.
Re: Server Generated Graphs for MX
Posted: Sun 14 Jun 2020 4:42 pm
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.
Re: Server Generated Graphs for MX
Posted: Sun 14 Jun 2020 5:22 pm
by sfws
Re: Server Generated Graphs for MX
Posted: Sun 14 Jun 2020 6:43 pm
by Laephis
Thanks, this was the tip I needed. Gauges.js was the culprit, and changing imgPathURL to the correct location fixed the issue.
Re: Server Generated Graphs for MX
Posted: Sun 28 Jun 2020 12:59 am
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.
Re: Server Generated Graphs for MX
Posted: Sun 28 Jun 2020 8:55 am
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.
Re: Server Generated Graphs for MX
Posted: Sun 28 Jun 2020 11:00 am
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.