Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
PHP graphs using CumulusMX json data files
Moderator: daj
-
broadstairs
- Posts: 1184
- Joined: Thu 14 Aug 2008 7:17 am
- Weather Station: Ecowitt GW2000/GW3000
- Operating System: Linux openSUSE LEAP
- Location: Broadstairs, Kent, UK
- Contact:
PHP graphs using CumulusMX json data files
I decided to attempt to convert my PHP based graphs which I developed years ago for Weather Display to use the json files from CumulusMX. Not all of the WD graphs will convert because so far I've not found the right data in any json files but the few I have done can be viewed at https://www.stella-maris.org.uk/Cumulus ... test1.html this page is not linked to my main site. These are far from finished but thought I'd show what is possible with PHP and JPGraph (free version). I do intend over the next few weeks to try to convert as many more as possible and clean them up somewhat. They are not as flexible as Highcharts but at least it is an alternative.
Stuart
Stuart
Last edited by broadstairs on Sun 28 Jul 2024 11:35 am, edited 1 time in total.
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
-
broadstairs
- Posts: 1184
- Joined: Thu 14 Aug 2008 7:17 am
- Weather Station: Ecowitt GW2000/GW3000
- Operating System: Linux openSUSE LEAP
- Location: Broadstairs, Kent, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
I have now added a few more graphs to this. I am slowly adding other graphs as I find the time. The graphs for the last twelve months rainfall that were available with WD clientraw file data will require extra work to extract the data but I think most of the others can be done fairly easily - albeit slowly
Stuart
Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
-
Weerhaas
- Posts: 25
- Joined: Mon 31 Aug 2015 6:31 am
- Weather Station: Vantage Pro 2 Plus
- Operating System: Windows Pro 10 64b
- Location: Zaandam, Nederland
- Contact:
Re: PHP graphs using CumulusMX json data files
Nice work.
Yes, it will take time.
Yes, it will take time.
- mcrossley
- Posts: 14382
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
I created some simple JPGraph graphs for MX years ago, I'll see if I can dig them out - they may give you a start...
- mcrossley
- Posts: 14382
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
Ah yes! They are on github: https://github.com/mcrossley/Cumulus-MX-Gauge-Graphs
They probably need loads of updates by now.
They probably need loads of updates by now.
-
broadstairs
- Posts: 1184
- Joined: Thu 14 Aug 2008 7:17 am
- Weather Station: Ecowitt GW2000/GW3000
- Operating System: Linux openSUSE LEAP
- Location: Broadstairs, Kent, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
Thanks Mark I'll take a look.mcrossley wrote: ↑Fri 19 Jul 2024 6:04 pm Ah yes! They are on github: https://github.com/mcrossley/Cumulus-MX-Gauge-Graphs
They probably need loads of updates by now.
So far I've probably taken the easiest route and done the graphs where all I really needed to do was figure out which JSON files I needed to extract from and replace my clientraw data. Some others are going to need more thought. One issue I have is that my CMX data only goes back to 2022 but my WD data goes back to 2005 and so combining the data will be an issue I have for me to do things like average monthly rainfall where I need all the data to be considered!
Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
- mcrossley
- Posts: 14382
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
My next little project is writing some data converters. It something that has been missing in MX. C1 did have a WeatherLink convertor, but with v4 that now means potentially doing a double conversation. Steve didn't leave the source code for it though.
So I'll be starting with WeatherLink, then once a framework is in place probably WeatherCat and Weather Display. The WeatherLink convertor isn't far off the testing stage.
So I'll be starting with WeatherLink, then once a framework is in place probably WeatherCat and Weather Display. The WeatherLink convertor isn't far off the testing stage.
-
broadstairs
- Posts: 1184
- Joined: Thu 14 Aug 2008 7:17 am
- Weather Station: Ecowitt GW2000/GW3000
- Operating System: Linux openSUSE LEAP
- Location: Broadstairs, Kent, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
Mark that'll be great. When the time comes for WD let me know if you need some data to test with as I have years of it!
Stuart
Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
-
broadstairs
- Posts: 1184
- Joined: Thu 14 Aug 2008 7:17 am
- Weather Station: Ecowitt GW2000/GW3000
- Operating System: Linux openSUSE LEAP
- Location: Broadstairs, Kent, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
Mark I have tested all your graphs and they still work with JPGraph V4.4.2 and PHP V8, except the wind rose one as they no longer support it in the free version only in the professional version!
Stuart
Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
- mcrossley
- Posts: 14382
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
iirc there used to be a workaround for that, from what I remember the polar chart code was included in the free version, just the call to it was missing, it was a minor edit to enable it. They may have closed that loophole since though.
-
broadstairs
- Posts: 1184
- Joined: Thu 14 Aug 2008 7:17 am
- Weather Station: Ecowitt GW2000/GW3000
- Operating System: Linux openSUSE LEAP
- Location: Broadstairs, Kent, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
Yes the polar chart is included just not the separate WindRose one.
Stuart
Last edited by broadstairs on Mon 22 Jul 2024 12:20 pm, edited 1 time in total.
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
- wurzelmac
- Posts: 298
- Joined: Mon 03 Jun 2024 5:30 pm
- Weather Station: Vantage Pro2 plus w 24/h fan
- Operating System: MacOS Sequoia 15.2
- Location: Prägraten am Großvenediger, Tyrol, Austria
- Contact:
Re: PHP graphs using CumulusMX json data files
Sounds very cool, I am very excited about the WeatherCat importer.mcrossley wrote: ↑Sat 20 Jul 2024 9:13 am My next little project is writing some data converters. It something that has been missing in MX. C1 did have a WeatherLink convertor, but with v4 that now means potentially doing a double conversation. Steve didn't leave the source code for it though.
So I'll be starting with WeatherLink, then once a framework is in place probably WeatherCat and Weather Display. The WeatherLink convertor isn't far off the testing stage.
-
broadstairs
- Posts: 1184
- Joined: Thu 14 Aug 2008 7:17 am
- Weather Station: Ecowitt GW2000/GW3000
- Operating System: Linux openSUSE LEAP
- Location: Broadstairs, Kent, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
I have added some graphs to the original set and changed the URL sightly the new page is https://www.stella-maris.org.uk/Cumulus ... test1.html and the old URL will no longer work. (I have edited the original URL on the first post
) These graphs need more work to clean them up and automate some more variable but work well enough to show what is possible. I intend to add more but some of the data WD used to produce is not done by CMX in JSON files so I am looking at extracting some from elsewhere but the issue is that the data is held in places which are not uploaded to the website so I will have to look at alternative ways to obtain and upload it.
Stuart
Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
- Dador
- Posts: 352
- Joined: Thu 24 Nov 2011 2:22 pm
- Weather Station: Davis VP2 Plus & Ecowitt
- Operating System: Windows 10
- Location: Rybnik, Poland
- Contact:
Re: PHP graphs using CumulusMX json data files
With all due respect to your work, but I can't imagine that cumulus will return to the static charts that the original version from Steve offered.
-
broadstairs
- Posts: 1184
- Joined: Thu 14 Aug 2008 7:17 am
- Weather Station: Ecowitt GW2000/GW3000
- Operating System: Linux openSUSE LEAP
- Location: Broadstairs, Kent, UK
- Contact:
Re: PHP graphs using CumulusMX json data files
I am not doing this to suggest Mark replaces Highcharts with static. I must admit I am not a fan of dynamic charts but fine for those who like them. I do wonder how much they get used by the general public on viewing weather websites. My experience of running mine since 2005 in a seaside holiday location is that mostly all folks want to see is the current conditions and a forecast for the next few days!
However for those who might like static charts or those who do not appreciate the Highcharts business practices there is an alternative and I enjoy a project. I have also discovered that there is data missing in the JSON files which I particularly like and feel it is useful even if in a static chart.
Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
