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

MySQL database not updating correctly in Build 3202

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

Post Reply
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

MySQL database not updating correctly in Build 3202

Post by flort »

I updated to the latest build and have found an issue when updating with the Dayfile editor. Changes to Chill Hours, High 24 Hour Rain, and High 24 Hour Rain Time are not being written to the MySQL database. The following screenshots demonstrate what I am seeing -

CMX prior to making any changes
CMX before change.jpg
Database prior to making any changes
SQL before change.jpg
CMX after changes
CMX after change.jpg
Database after changes
SQL after change.jpg
Also, if I decide to only populate some of the fields the ones left as null value are changed as below -

Selected CMX fields updated
CMX update humidex and 24 hour rain only.jpg
Resulting change in Database
SQL after humidex and 24 hour rain only.jpg
Regards,
Trevor
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: MySQL database not updating correctly in Build 3202

Post by mcrossley »

Can you try flushing your browser cache please.- I tested the dayfile editor, and checked it again just now and it works OK for me.
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: MySQL database not updating correctly in Build 3202

Post by flort »

Hi Mark,

I flushed everything but still no change. The changes are saved in CMX but not being reflected in MySQL for those 3 fields. All other fields are updating fine.

Regards,
Trevor
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: MySQL database not updating correctly in Build 3202

Post by mcrossley »

Ah, I understand now. Yes, the database update on edit for the new fields got missed, now fixed for the next release.
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: MySQL database not updating correctly in Build 3202

Post by flort »

Thanks Mark. The other thing I highlighted was that if you update a record that has null values and you only update some of the fields then it changes the null values to -9999.0. Is that the expected behaviour or should it leave it as a null value? Refer back to the last 2 screenshots to understand what I'm talking about.

Regards,
Trevor
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: MySQL database not updating correctly in Build 3202

Post by mcrossley »

It's expected, but not ideal. Unfortunately this version of Cumulus like C1 has no concept of null values, so I'll have to add code to cope with that.
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: MySQL database not updating correctly in Build 3202

Post by flort »

Hi Mark,

Just confirming that Chill Hours, High 24 Hour Rain, and High 24 Hour Rain Time are now updating in the MySQL Database. Also, it is handling null values correctly.

Thanks for the changes.

Regards,
Trevor
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: MySQL database not updating correctly in Build 3202

Post by mcrossley »

:thumbsup:
Post Reply