Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.9.0 (build 3095) - 09 October 2020 (please see 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)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

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

water01
Posts: 1983
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Server Generated Graphs for MX

Post by water01 »

Mine has a cloudbase graphic, it is the first rewrite rule in the .htaccess file.

Code: Select all

RewriteRule ^cloudbase.png$ graphCloudbase.php [NC,L]
David
Image

The PIT
Posts: 117
Joined: Thu 10 Dec 2009 6:15 pm
Weather Station: Davis VP2 Wireless
Operating System: Windows 7 32 bit
Location: England
Contact:

Re: Server Generated Graphs for MX

Post by The PIT »

There isn't any php script for it and I couldn't see any reference in gauges script when I last looked.
Based in Sunny Old Sheffield South Yorkshire England

www.sheffieldweather.co.uk

water01
Posts: 1983
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Server Generated Graphs for MX

Post by water01 »

Just realised that is because I am using the SQL version and the graphCloudbase.php is in there.

Now the funny thing is that I know the cloudbase graph is produced for the JSON version as I helped add them to a standard JSON site I just cannot remember what produces them.
David
Image

The PIT
Posts: 117
Joined: Thu 10 Dec 2009 6:15 pm
Weather Station: Davis VP2 Wireless
Operating System: Windows 7 32 bit
Location: England
Contact:

Re: Server Generated Graphs for MX

Post by The PIT »

Yeh the json file for cloudbase is missing so it isn't getting uploaded.

Interesting the files in jpgraph cache folder all have the original date stamp when they were first created. Even if I delete them they come back with the same date stamp yet if I open the file the data within it has changed.

I'm just leaving it running and seeing what the graphs do for now.

Of course I could just see when the file was modified which tells it was modified the last time the script was run.

It also means the documentation is misleading or wrong as it says that the way I've got it set it should always create a new file.
Based in Sunny Old Sheffield South Yorkshire England

www.sheffieldweather.co.uk

The PIT
Posts: 117
Joined: Thu 10 Dec 2009 6:15 pm
Weather Station: Davis VP2 Wireless
Operating System: Windows 7 32 bit
Location: England
Contact:

Re: Server Generated Graphs for MX

Post by The PIT »

Any chance of getting the cloud based script working on the none sql scripts?
Based in Sunny Old Sheffield South Yorkshire England

www.sheffieldweather.co.uk

User avatar
mcrossley
Posts: 7009
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 »

The cloudbase data is not stored by Cumulus so there is no data to graph. Using SQL provides the historic data required.

The PIT
Posts: 117
Joined: Thu 10 Dec 2009 6:15 pm
Weather Station: Davis VP2 Wireless
Operating System: Windows 7 32 bit
Location: England
Contact:

Re: Server Generated Graphs for MX

Post by The PIT »

Hi the answer provided Water01 suggests the code is in there already.
So from your answer I take it that the other json files are created from the realtime files rather from the data stored within cumulusmx
Anyway got the other cloudbase graphic working took me a while as I know sod all about php but got there in the end.
Based in Sunny Old Sheffield South Yorkshire England

www.sheffieldweather.co.uk

water01
Posts: 1983
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Server Generated Graphs for MX

Post by water01 »

I am using the MySQL version so the data is there in the database as per Mark's answer.
David
Image

Post Reply