Page 1 of 1

Message WU upload fails while it is correct

Posted: Mon 17 May 2021 8:55 am
by HansR
I get the following in my MXdiags:

Code: Select all

2021-05-17 10:30:00.032 Writing today.ini, LastUpdateTime = 17-5-2021 10:30:00 raindaystart = 299,4 rain counter = 299,6
2021-05-17 10:30:00.302 Wunderground: Response = OK: success

2021-05-17 10:30:00.302 SendEmail: Sending email, to [abc.efg@gmail.com], subject [Cumulus MX Alarm], body ["A Cumulus MX alarm has been triggered.\r\nHTTP uploads are failing.\r\nLast error: Wu" +
    "nderground: HTTP response - OK"]...
And I get the following email message:
A Cumulus MX alarm has been triggered. HTTP uploads are failing. Last error: Wunderground: HTTP response - OK
I don't think this is correct ;)

Re: Message WU upload fails while it is correct

Posted: Mon 17 May 2021 10:04 am
by mcrossley
|| and && reversal in the logic :oops:

Re: Message WU upload fails while it is correct

Posted: Mon 17 May 2021 10:12 am
by HansR
mcrossley wrote: Mon 17 May 2021 10:04 am || and && reversal in the logic :oops:
Thought something like that :lol:
Happens to the best ;)

Re: Message WU upload fails while it is correct

Posted: Tue 18 May 2021 11:13 am
by mcrossley
The WUnderground is complicated by the fact that Rapid Fire can be enabled - and you don't want an Alarm triggering every 5 seconds.

I've changed the code such that if rapid fire is enabled it takes 12 failures in a row (1 minute) to trigger the alarm logic and count as a single "tick" towards the threshold.

Re: Message WU upload fails while it is correct

Posted: Tue 18 May 2021 12:34 pm
by ConligWX
I fixed all my WU issues by removing WU from the equation :lol:

Re: Message WU upload fails while it is correct

Posted: Tue 18 May 2021 2:12 pm
by mcrossley
ConligWX wrote: Tue 18 May 2021 12:34 pm I fixed all my WU issues by removing WU from the equation :lol:
Same here! That's why I didn't pick this up in testing!