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

Bugs MX release 3.20.0 build 3199 - changes to MySQL settings (CLEARED 3.21.1 - b3205)

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
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Bugs MX release 3.20.0 build 3199 - changes to MySQL settings (CLEARED 3.21.1 - b3205)

Post by sfws »

Edited SUBJECT on 6 Sept to say BUGS CLEARED
When I swapped from legacy Cumulus to MX I was able to use the Custom SQL at rollover functionality. I had multiple queries with semi-colons in-between typed into the very small input box on the "MySQL Settings" page. There were conditionals included and MX was successfully running the appropriate queries at each end of day totally reliably up to release 3.19.3 build 3196.

Your release announcement for 3.20.0 stated that up to 10 URLs for HTTP calls, and up to 10 SQL specifications for Custom Seconds/Minutes/Rollover processing by MySqlConnect could now be entered. So I put my queries in individual boxes on the MySQL setting screen in 3.20.0, as separating the commands made it easier to see the various conditionals, but otherwise did not change the MySQL settings. My database tables were successfully updated for the week until I installed new release 3.20.1 build 3203 onto my RPi on 29 August.

On further investigation, your build 3199 coded both the 10 URLs for HTTP calls, and the 10 SQL specifications for Custom Seconds/Minutes/Rollover processing by MySqlConnect, to be read from the "HTTP" section of Cumulus.ini, (the SQL specifications should however be read from "MySQL" section of Cumulus.ini). A further bug tests whether "custom minutes SQL" (should be testing "custom rollover SQL") is enabled to determine if the "custom rollover SQL" should be saved to "MySQL" section of Cumulus.ini. Effectively, MX is not actually saving whatever is typed into the 10 "custom rollover SQL" boxes, so this is a warning to others don't lose your inputs as I did.

After I installed 3.20.1, I stopped then restarted the MX service so it picked up new code. Due to supervising tradespeople on some major work here, I did not check my databases during the 5 days. Today, 2 September, I discovered MX has not even tried to run any of my multiple rollover SQL commands for those 5 days because my SQL typed into the settings page no longer exists due to these bugs I had to find my Cumulus.ini for 3.19.3, which fortunately was backed up, to recover my multiple queries with conditionals.

(I wanted to report this before you release 3.21.0 so have not yet investigated exact extent of the work I now need to do to work out what should have been stored on my various database table rows on each of those 5 days when nothing was stored).
Last edited by sfws on Tue 06 Sep 2022 7:38 am, edited 1 time in total.
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: Bug - changes to MySQL settings

Post by mcrossley »

Dah, 3.21 is released!

I'll take a look at this later. Even though you can now have separate SQL statements, the old scheme of separating them on one line with semicolons will still work.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Bug - changes to MySQL settings

Post by freddie »

mcrossley wrote: Fri 02 Sep 2022 11:48 am Even though you can now have separate SQL statements, the old scheme of separating them on one line with semicolons will still work.
I can vouch for that, as I had totally forgotten about the separate SQL statements in settings - all of my custom queries have multiple statements separated by semicolons.
Freddie
Image
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Bug - changes to MySQL settings

Post by sfws »

Both, I don't need telling old approach still works, that is what I already reverted to. I simply reported new functionality has bug, so nobody else gets caught by trying what was announced.
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: Bug - changes to MySQL settings

Post by mcrossley »

I get that, I was providing a workaround for everyone until I push the next patch release.
The issues have been found and fixed btw.
Post Reply