Page 16 of 18
Re: Server Generated Graphs for MX
Posted: Sun 28 Jun 2020 1:29 pm
by mcrossley
BCJKiwi wrote: ↑Sun 28 Jun 2020 11:00 am
Suppose I could try php's clearstatcache()
Yep - memory triggered, that is what I had to use. But it was with a script returning data from real time files though.
Re: Server Generated Graphs for MX
Posted: Mon 29 Jun 2020 11:11 pm
by BCJKiwi
Re:- JpGraphs not updating.
Have found out what is going on.
It appears to be a limitation in the JpGraph xaxis timescale settings.
The data was actually updating but was contained within the old hour, until a new hour.
So the trace was the right length and had the right data but was out of sync with the xaxis hours.
By changing (in graphSettings.php) SetTimeAlign(MINADJ_10)
to
SetTimeAlign(HOURADJ_1);
the graph creates a new hour on the end of the graph when the first data after the hour arrives.
So when the update is on the hour, the xaxis is the same length as the hours of the data.
When the data is for say xhours + 10 or 20 minutes etc, the xaxis is one hour longer.
The trace is the right length but "slides" across the over-width graph until the next hour when the extra hour goes away until the next data arrives.
Was unable to find a better solution and noticed that there are actually examples of this behaviour in the JpGraph documentation.
At least with this configuration, the end of the trace with the latest data is always in the right hour.
Re: Server Generated Graphs for MX
Posted: Tue 30 Jun 2020 9:12 am
by mcrossley
I don't see the setting "SetTimeAlign(MINADJ_10)" in the graphSettings file?
There is a commented out "SetTimeAlign(HOURADJ_6)"
Here is my test page
https://weather.wilmslowastro.com/test/ ... empOut.php
Re: Server Generated Graphs for MX
Posted: Tue 30 Jun 2020 9:27 pm
by BCJKiwi
Hmmm that's interesting.
Have gone back through the various files I have and all have (had) a working SetTimeAlign(MINADJ_10);
Have just tested it with the SetTimeAlign(HOURADJ_1); line remmed out and it has automatically created the same chart with a 1 hour addition in the first 10 mins after the hour.
It seems that when no SetTimeAlign(xxx_xx) line is active, JpGraph must make an automatic adjustment based on the tick mark interval which is 1 hour on the image you posted and is also 1 hour on the graphs I have.
It is a pity that in all the discussion on this topic in the JpGraph documents I did not see this (or did I miss it?).
Well, live and learn.
So thanks for the feed back Mark - a big help.

Re: Server Generated Graphs for MX
Posted: Thu 06 Aug 2020 4:28 pm
by alexlc13
I'm hoping someone can point me in the right direction. My popup graph for TempOut is returning an error 25121. Not sure when it started, but it's relatively recently. All the other graphs are working ok...just the TempOut is not.
https://calderonwx.com/weather/gauges.htm
https://calderonwx.com/weather/images/graphTempOut.php
Thanks!
Re: Server Generated Graphs for MX
Posted: Thu 06 Aug 2020 5:04 pm
by sutne
My popup graph for TempOut is returning an error 25121.
I had a similar problem after upgrading to B3089.
The problem was solved by setting AppTempVisible = 1 in Cumulus.ini
Code: Select all
[Graphs]
TempVisible=1
InTempVisible=1
HIVisible=1
DPVisible=1
WCVisible=1
AppTempVisible=1
FeelsLikeVisible=1
HumidexVisible=1
InHumVisible=1
OutHumVisible=1
Restart CumulusMX and Run ‘FTP now’
Re: Server Generated Graphs for MX
Posted: Thu 06 Aug 2020 5:37 pm
by alexlc13
Thank you! The AppTempVisible was set at 1, but I did notice the Wind Chill was at 0. I changed that, and it works now. Thanks again.
Re: Server Generated Graphs for MX
Posted: Thu 06 Aug 2020 5:58 pm
by sutne
So all of them must be set to 1.
That is likely a bug.
Re: Server Generated Graphs for MX
Posted: Thu 06 Aug 2020 6:05 pm
by mcrossley
A bug it is - the scripts do not take account of the new feature in 3.7.0 to disable some graphs.
Re: Server Generated Graphs for MX
Posted: Thu 06 Aug 2020 7:20 pm
by mcrossley
Version 1.8 is now available for download - I've given it a "light" test as I don't really use these any more, and it appeared to work OK, removing UV from my solar graph.
Re: Server Generated Graphs for MX
Posted: Thu 06 Aug 2020 8:21 pm
by dazza1223
Thank u i was having this issue where do I download it from?
Re: Server Generated Graphs for MX
Posted: Thu 06 Aug 2020 8:32 pm
by water01
Mark is this an update for the JSON versions only as the SQL version doesn't appeared to have been touched?
Re: Server Generated Graphs for MX
Posted: Thu 06 Aug 2020 9:33 pm
by mcrossley
@water01 Yes, the MX changes only affect the JSON files.
@dazza See the first post of the thread
Re: Server Generated Graphs for MX
Posted: Thu 17 Sep 2020 2:17 pm
by ConligWX
Mark. I had an error getting these graphs working as I would get a Jpgraph Error 25092 all the time. yet everything was fine with my configs I found a solution which people might need if they have the same error.
only tried fixing as the MX template now has graphs...
viewtopic.php?p=146539#p146539
fix was here btw.
adding in short term fix for bug created by 2.3 libgd
Re: Server Generated Graphs for MX
Posted: Thu 17 Sep 2020 8:38 pm
by The PIT
I've got the graphs running however when you go the cloud base it displays the barometer rather than nothing as there doesn't seem to be a script for that one. Perhaps one is needed?