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 Custom Upload b4067

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. 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
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

MySql Custom Upload b4067

Post by billy »

Under b4064 (and for several version prior to this) a MySQL Custom upload - Minute interval was set to 1 minute intervals.

After updating to b4067, no errors were recorded but the upload interval somehow became every 10 minutes immediately after restarting.

Cumulus.ini setting CustomMySqlMinutesIntervalIdx was =0 prior to the update, then =6 afterwards. Changing it back to 0 resolved the issue.

I have CMX running on two RPis and this bug/spontaneous mutation arose on both during their updating. One uploads to an external webserver and the other to a local one.

For the first time, the attached (crude) script was used to manage updating.

Cumulus.ini and log files can be provided if necessary.

Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 14384
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 Custom Upload b4067

Post by mcrossley »

There is a bug in the code that writes the ini file that has been there since v3.20.0 - b3202 :o

Since then, the value of the interval for the Custom uploads has been written to CustomMySqlMinutesIntervalIdx, but read from CustomMySqlMinutesIntervalIndex. Previously it was read and written to CustomMySqlMinutesIntervalIndex.

So, for v3.20.0, you should make sure the required value is in CustomMySqlMinutesIntervalIndex - the settings page will write it to CustomMySqlMinutesIntervalIdx.

I'll fix this in the next release so that CustomMySqlMinutesIntervalIndex is used by both read and write in the future.
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: MySql Custom Upload b4067

Post by billy »

Thanks for the explanation and the fix :clap:

CustomMySqlMinutesIntervalIndex is absent from Cumulus.ini in both my installations.
And how the updating of CustomMySqlMinutesIntervalInd to =6 translates to a 10 minute upload frequency is a mystery I don't need an explanation for :?
Post Reply