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 4017) - 17 March 2024

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 drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

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: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
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: 260
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: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
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: 260
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: 260
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: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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: 260
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: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
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
The it guy
Posts: 29
Joined: Fri 22 Feb 2019 12:46 am
Weather Station: Davis
Operating System: Windows 10

Re: Server Generated Graphs for MX

Post by The it guy »

Hi i know this is old but ive been looking to change color of the charts ive look every where and the fonts but i dont know what file to edit? :bash:
Capture.PNG
thank you
You do not have the required permissions to view the files attached to this post.
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Server Generated Graphs for MX

Post by water01 »

Are you talking about the graphs that appear when you run the mouse over a gauge in the SteelSeries gauges as this looks way to big for that graph? If you are then you can change the colour in the jpgraph code.
David
Image
The it guy
Posts: 29
Joined: Fri 22 Feb 2019 12:46 am
Weather Station: Davis
Operating System: Windows 10

Re: Server Generated Graphs for MX

Post by The it guy »

yh thay are bit big arnt there and i cant see when i can make them bit small and i had a look in the code but i cant see where ;)
Cambium
Posts: 271
Joined: Wed 03 Aug 2011 11:19 pm
Weather Station: ProWeatherTP3000
Operating System: Windows10
Location: Coastal CT, USA
Contact:

Re: Server Generated Graphs for MX

Post by Cambium »

water01 wrote: Sat 13 Mar 2021 12:24 pm Are you talking about the graphs that appear when you run the mouse over a gauge in the SteelSeries gauges as this looks way to big for that graph? If you are then you can change the colour in the jpgraph code.
Just seeing this... Where do i find this jpgraph code?
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Server Generated Graphs for MX

Post by water01 »

As per the first post in this Topic https://github.com/mcrossley/Cumulus-MX-Gauge-Graphs/
David
Image
Benji60
Posts: 67
Joined: Mon 11 Oct 2021 12:38 pm
Weather Station: HP1000 Froggit Pro
Operating System: Windows 10

Re: Server Generated Graphs for MX

Post by Benji60 »

Hello,
I managed to get and modify a script to make highchart with a SQL database completed with CumulusMX.


If some are interested I can share but beware I'm bad at coding so everything I did has to be redone I think to work everywhere and have something clean.
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Server Generated Graphs for MX

Post by mcrossley »

@benji60 - it's a long thread but... viewtopic.php?f=18&t=8672
Post Reply