Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

JPGraph from SQL data

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
User avatar
mcrossley
Posts: 12770
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: JPGraph from SQL data

Post by mcrossley »

Try putting the dates in the format '2009-12-19'

Mark
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: JPGraph from SQL data

Post by nitrx »

Well it works in the sql console ( it gives me 13 values thats should be ok becuase I've data from dec 19th http://www.apeldoorn.tk/weer/dayfile.php?m=12&y=2009

LogDate MaxTemp MinTemp AvgTemp
1261198800 0.0 -9.5 -8.60
1261285200 0.3 -7.5 -3.40
1261371600 -0.9 -5.0 -2.50
1261458000 3.0 -1.4 0.70
1261544400 1.4 -3.2 -0.20
1261630800 2.3 -4.3 -1.50
1261717200 4.0 0.6 2.10
1261803600 8.2 1.4 3.80
1261890000 5.7 2.5 4.20
1261976400 7.1 -1.9 2.90
1262062800 2.0 -3.5 -0.40
1262149200 2.0 -1.5 0.20
1262235600 0.4 -0.6 -0.30
1262322000 0.0 -6.6 -1.60

Not formatted very wel but I think these values can't be used by the graph in your example (anyway it was dumb from me to handle a diffrent format as the dabase :oops: ) http://www.apeldoorn.tk/weer/grafiek/grafiek4.php gives as error Bad Select Statement,
thanks anyway
Last edited by nitrx on Thu 18 Feb 2010 12:11 pm, edited 1 time in total.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: JPGraph from SQL data

Post by nitrx »

Oeps it works I selected the wrong table thanks :!:
User avatar
mcrossley
Posts: 12770
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: JPGraph from SQL data

Post by mcrossley »

I've had a quick bash at putting up a 'year to date' web page. The rainfall graph needs a bit more work though :?

http://weather.wilmslowastro.com/historicGraphs.htm
Last edited by mcrossley on Sat 06 Mar 2010 6:18 pm, edited 1 time in total.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: JPGraph from SQL data

Post by nitrx »

Looks good :!: Rainfall can give strange figures indeed if you've 60 mm on a day or 0,1 mm
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: JPGraph from SQL data

Post by daj »

Looks good Mark

I was worried it would get a bit crazy later in the year as you show a few hundred readings but it looks ok.

The last year
http://www.grantownweather.co.uk/histor ... p?days=365

Last 75 days
http://www.grantownweather.co.uk/histor ... hp?days=75

(I am still working on mine before I publish it officially as I am going to offer a range of views/day count)
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: JPGraph from SQL data

Post by nitrx »

Well David your legend is out the graphic area I still have problems with it , I think the between statement is usefull I :geek: only need to make a selector for the periods
Hillbilly
Posts: 112
Joined: Tue 26 Jan 2010 8:54 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Vista Home Premium SP2
Location: Mayenne, Pays De La Loire, France
Contact:

Re: JPGraph from SQL data

Post by Hillbilly »

I'm following this with interest, well done Mark for getting it started. David I shall look forward to your published work on a range of views. I too was worried about what a year's data would look like but agree that it looks OK on your example David. I only have 2 month's worth of data so far.

We were thinking along the lines of a bar chart for a year showing a max/min/avg temp for each month to keep it very simple and then a similar one for rainfall, but the year chart works well enough.

I've set up the graphs package and will try Mark's script to get started.

Thanks everyone. :clap:
Many thanks
Helen

La Locherie Weather
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: JPGraph from SQL data

Post by daj »

Helen

The last 500 days of weather...http://www.grantownweather.co.uk/histor ... p?days=500

I'm not sure I would show that much detail but it does prove that the Graphs can handle it
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
Hillbilly
Posts: 112
Joined: Tue 26 Jan 2010 8:54 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Vista Home Premium SP2
Location: Mayenne, Pays De La Loire, France
Contact:

Re: JPGraph from SQL data

Post by Hillbilly »

Thanks, that look surprisingly readable, but agree, unlikely to display more than a year.
Many thanks
Helen

La Locherie Weather
Post Reply