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

third party http upload - unexpected behavio(u)r

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
User avatar
Gyvate
Posts: 377
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650/HP2553/GW2000/3000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

third party http upload - unexpected behavio(u)r

Post by Gyvate »

over the past weeks I noticed double postings by two of my CMX instances - sent to the same web site.
of course only one was supposed to be posted, but CMX didn't behave as (by common sense I think) expected:

instance 1: in the by minute field the URL was entered, "enabled" was tagged and the page saved
result: the posting worked

I switched the posting to instance 2:
I untagged the "enabled" box in instance 1 and saved (the URL was still in the field - and why not - so I thought)
instance 2: in the by minute seconds field the URL was entered, "enabled" was tagged and the page saved
result: the posting worked
HOWEVER - instance 1 kept on posting even though the "enabled" was untagged

after the saving, each time the respective instance was restarted

The only way I got it stop was doing the following steps:
- tag enabled
- field cleared of URL, saved
not enough
in addition
- tag disabled (untaged) with empty URL field
- saved
only then it would stop posting - otherwise the URL was not removed from Cumulus.ini and the posts were done again after a restart even though the option was untagged

Now I know what to do, but isn't that behaviour somewhat misleading ?

My expectation was (still is) that I can have a URL in the field and the "enabled" untagged and it wouldn't post. Like this I can disable the post without losing the URL (which can be a very long string of sensor data) and re-enable it by just tagging it again - otherwise, what's the point of the "enabled" field to be tagged/untagged if the untag doesn't work ?
untagging and saving alone won't do the job ... :? - For enabling tagging, putting URL and save works ...
EDIT: changed minute to seconds as that was the field in question
Last edited by Gyvate on Sun 20 Mar 2022 5:34 pm, 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: third party http upload - unexpected behavio(u)r

Post by mcrossley »

Hmm, I had a look at the code and could not see a problem, and tried to reproduce this and failed.

The only bit that isn't quite working correctly is the disable of the Seconds HTTP.
That currently requires a restart of CMX.

The rest: enable seconds, enable/disable the Minutes HTTP work OK.

The logic in the code is simple, the Minute calls are contained with an IF that checks the enabled flag.

The Seconds enables or disables a timer based on the enabled flag - bar the issue that it did not disable it without a restart - now fixed.
User avatar
Gyvate
Posts: 377
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650/HP2553/GW2000/3000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

Re: third party http upload - unexpected behavio(u)r

Post by Gyvate »

:clap: - it was in fact the disabling (untagging of selection) of the seconds field - I corrected/edited my earlier post correspondingly.
Post Reply