Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.6.5 (build 3081) - 28 May 2020 (please see important announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

See the Wiki to download the software or click on the Downloads link in the Forum Banner.

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

f4phlyer
Posts: 43
Joined: Sun 13 Feb 2011 7:12 pm
Weather Station: Davis Vantage Pro 2
Operating System: RaspBerry Pi Win 10 OSx
Location: Spring, Texas USA
Contact:

Re: Server Generated Graphs for MX

Post by f4phlyer »

Thanks again, I'll upload the new work.

Now I'm working on realtimelogSql.php, it fails on the DB query.
Steve
retreat at augusta pines weather
CumulusMX on Raspberry π 3
WeatherUnderground KTXSPRIN538
http://augusta-pines-weather.com

User avatar
laulau
Posts: 631
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Server Generated Graphs for MX

Post by laulau »

Hi,
Am i right that the windrose script needs the pro version of JpGraph ?
Capture.JPG
You do not have the required permissions to view the files attached to this post.
Laurent

Image

User avatar
mcrossley
Posts: 6469
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post 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?...

User avatar
BeaumarisWX
Posts: 207
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris Tasmania
Contact:

Re: Server Generated Graphs for MX

Post 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,
Tony

User avatar
mcrossley
Posts: 6469
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post 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.

User avatar
mcrossley
Posts: 6469
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley »

Tony, I think I have found the problem with the windrose, version 1.2 is now on GitHub.

User avatar
BeaumarisWX
Posts: 207
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris Tasmania
Contact:

Re: Server Generated Graphs for MX

Post 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,
Tony

User avatar
BeaumarisWX
Posts: 207
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris Tasmania
Contact:

Re: Server Generated Graphs for MX

Post 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,
You do not have the required permissions to view the files attached to this post.
Tony

master1986
Posts: 15
Joined: Fri 08 Jul 2016 6:14 am
Weather Station: Lacrosse 2350
Operating System: Windows 8.1
Location: Italia

Re: Server Generated Graphs for MX

Post 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?

User avatar
mcrossley
Posts: 6469
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post 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.

User avatar
mcrossley
Posts: 6469
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley »

Actually, it doesn't matter, I figured it out from the 4x error messages, now to debug...

User avatar
mcrossley
Posts: 6469
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post 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.

User avatar
mcrossley
Posts: 6469
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post 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.

BCJKiwi
Posts: 945
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Server Generated Graphs for MX

Post 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

User avatar
mcrossley
Posts: 6469
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley »

Doh! OK, I see a possible issue, I'll send you a test version a bit later today...

Post Reply