Page 10 of 18

Re: Server Generated Graphs for MX

Posted: Sun 31 Jan 2016 5:32 pm
by f4phlyer
Thanks again, I'll upload the new work.

Now I'm working on realtimelogSql.php, it fails on the DB query.

Re: Server Generated Graphs for MX

Posted: Sun 31 Jan 2016 6:01 pm
by laulau
Hi,
Am i right that the windrose script needs the pro version of JpGraph ?
Capture.JPG

Re: Server Generated Graphs for MX

Posted: Sun 31 Jan 2016 6:34 pm
by mcrossley
No, it is included in the free version. Never noticed that table before, but the free download does include the windrose module, whether by accident or design?...

Re: Server Generated Graphs for MX

Posted: Sat 07 May 2016 1:12 am
by BeaumarisWX
mcrossley wrote:OK, a new version of the Windrose scripts is now available (and associated graphSettings.php).

Most windrose settings moved to graphSettings.php
Windrose can now be configured for 8 or 16 compass points
Windows compass point now localised
Wind speed unit put into the title
Image caching enabled

I think it all works, but I'll expect I hear if it doesn't!
Hi Mark,

Installed the latest : graphWindRose.php
.json : http://hrvistaweather.com/wxshare/graphWindRose.php 48hr
SQL : http://hrvistaweather.com/wxshare/graphWindRoseSql.php 48hr

However I feel they are way off (seem flipped / rotated) or something like.

When compared to my :

.json : (Wind Direction) http://hrvistaweather.com/wxshare/graphWdir.php 48hr (I believe displays correctly).
SQL: : (Wind Direction) http://hrvistaweather.com/wxshare/graphWdirSQL.php 48hr (I believe displays correctly).

SQL: (Wind Rose) Highcharts : http://hrvistaweather.com/weather/wxwindrose.php select 48hr (I believe displays correctly).

regards,

Re: Server Generated Graphs for MX

Posted: Sat 07 May 2016 11:31 am
by mcrossley
Thanks Tony, I'll have a look at this later - deep joy, debugging some else's code!

Mine does seem to roughly correspond to my Highcharts graph, so some investigation is requried.

Re: Server Generated Graphs for MX

Posted: Mon 09 May 2016 10:17 am
by mcrossley
Tony, I think I have found the problem with the windrose, version 1.2 is now on GitHub.

Re: Server Generated Graphs for MX

Posted: Sat 14 May 2016 12:37 pm
by BeaumarisWX
Hi Mark,

Sorry late reply, been off the planet for a while (bad Viral Chest infection) .

Greatly appreciated, all seems to be correct now, installed both json and sql.

Kind regards,

Re: Server Generated Graphs for MX

Posted: Fri 08 Jul 2016 11:37 pm
by BeaumarisWX
Hi Mark,

Sorry, having more issues with : graphWindRose.php

We have been in a near dead calm state wind wise recently 90(+)% over 48hrs, and i am wondering if all of a sudden this is the cause of the graphWindRose.php failing again.

i.e. mainly ( 0 or 0.0 ) data in the .json files. (Note same error occuring with the Sql Version which makes me think it is the 0's)
I have saved copies of the .json files as at time of post (just in case the wind increases and results in error going away).

http://hrvistaweather.com/wdirdata_calm.json
http://hrvistaweather.com/winddata_calm.json

.json : http://hrvistaweather.com/wxshare/graphWindRose.php 48hr
SQL : http://hrvistaweather.com/wxshare/graphWindRoseSql.php 48hr

Kind Regards,

Re: Server Generated Graphs for MX

Posted: Sat 09 Jul 2016 10:06 am
by master1986
hello , I would be interested to save data to MySQL and read .

However, the aim should be to generate a graph of a precise period , then selecting the start and end of the period .

It's possible?

Re: Server Generated Graphs for MX

Posted: Sat 09 Jul 2016 4:03 pm
by mcrossley
HRVistaWeather wrote: i.e. mainly ( 0 or 0.0 ) data in the .json files. (Note same error occuring with the Sql Version which makes me think it is the 0's)
I have saved copies of the .json files as at time of post (just in case the wind increases and results in error going away).

http://hrvistaweather.com/wdirdata_calm.json
http://hrvistaweather.com/winddata_calm.json

.json : http://hrvistaweather.com/wxshare/graphWindRose.php 48hr
SQL : http://hrvistaweather.com/wxshare/graphWindRoseSql.php 48hr

Kind Regards,
Tony, could you send me your graphWindRose.php and graphSettings.php files please? The line numbers in your error messages do not time up with the latest versions.

Re: Server Generated Graphs for MX

Posted: Sat 09 Jul 2016 4:17 pm
by mcrossley
Actually, it doesn't matter, I figured it out from the 4x error messages, now to debug...

Re: Server Generated Graphs for MX

Posted: Sat 09 Jul 2016 4:18 pm
by mcrossley
master1986 wrote:hello , I would be interested to save data to MySQL and read .

However, the aim should be to generate a graph of a precise period , then selecting the start and end of the period .

It's possible?
Sounds like it should be, once you have the data in MySQL you can extract pretty much whatever you want.

Re: Server Generated Graphs for MX

Posted: Sun 10 Jul 2016 12:08 pm
by mcrossley
Well, that was interesting! I think the WindRose may finally be sorted out, the 'help' and documentation on the JPGraph site leaves shall we say a little to be desired, I had to reverse engineer the classes to work some of it out. The code was not plotting calm conditions at all.

Anyway ver 1.4+ is on GitHub, give it a whirl.

Re: Server Generated Graphs for MX

Posted: Mon 11 Jul 2016 3:43 am
by BCJKiwi
Not used the windrose graph before.

Just downloaded and updated the set from GitHub and tweaked all the ones I was already using and all are OK.
Tried to get the windrose working without success - everything else is OK.
Yes I did mod the jpgraph_windrose.php file to remove the import of 'jpgraph_glayout_vh.inc.php'.
The caching fix was already applied.

When I run the graphWindRose.php directly on the local dev server with 'errors on' I see
Undefined index: NNE in C:\wamp64\www\wxshare\graphWindRose.php on line 78 (and the corresponding errors any other directions in play) with corresponding
Invalid argument supplied for foreach() in C:\wamp64\www\wxshare\graphWindRose.php on line 82
Doing this on the public webserver only shows the foreach() errors.

The paths are all set to my particular setup and are correct.

Any suggestions?
Thanks

Re: Server Generated Graphs for MX

Posted: Mon 11 Jul 2016 10:31 am
by mcrossley
Doh! OK, I see a possible issue, I'll send you a test version a bit later today...