Page 1 of 1

No Is Raining alarm and LastRainTip not updating

Posted: Wed 20 Jul 2022 4:50 pm
by rogerthn
We did get some rain on the 17th of July, 1,3mm but no alarm.
I do have Is Raining trigger: Use station rainfall for 'Is Raining' trigger selected.
On Alarm Setting "Is Raining" has Enabled, Notify, Email and Latches (1 hr).

Checking a bit more (grep -R LastRainTip CumulusMX/*) I do e.g. get
CumulusMX/web/websitedata.json:"LastRainTip":"8 July",
CumulusMX/web/websitedata.json:"LastRainTipISO":"2022-07-08 06:05"
From mysql Dayfile
SELECT LogDate, MaxRainRate, TotRainFall, HighHourRain, THighHourRain FROM Dayfile WHERE LogDate LIKE '2022-07%';

Code: Select all

+------------+-------------+-------------+--------------+---------------+
| LogDate    | MaxRainRate | TotRainFall | HighHourRain | THighHourRain |
+------------+-------------+-------------+--------------+---------------+
| 2022-07-01 |        18.0 |        13.9 |          6.2 | 03:02         |
| 2022-07-02 |         0.0 |         0.0 |          0.0 | 10:00         |
| 2022-07-03 |        12.6 |        11.2 |          5.9 | 05:11         |
| 2022-07-04 |         8.4 |         6.1 |          2.2 | 09:21         |
| 2022-07-05 |        12.0 |         2.6 |          2.4 | 13:55         |
| 2022-07-06 |         3.6 |         3.8 |          1.3 | 07:14         |
| 2022-07-07 |         1.8 |         0.4 |          0.3 | 06:06         |
| 2022-07-08 |         0.0 |         0.0 |          0.0 | 10:00         |
| 2022-07-09 |         0.0 |         0.0 |          0.0 | 10:00         |
| 2022-07-10 |         0.0 |         0.0 |          0.0 | 10:00         |
| 2022-07-11 |         0.0 |         0.0 |          0.0 | 10:00         |
| 2022-07-12 |         0.0 |         0.0 |          0.0 | 10:00         |
| 2022-07-13 |         0.0 |         0.0 |          0.0 | 10:00         |
| 2022-07-14 |         0.0 |         0.1 |          0.1 | 23:57         |
| 2022-07-15 |         0.0 |         0.2 |          0.2 | 05:21         |
| 2022-07-16 |         0.0 |         0.0 |          0.0 | 10:00         |
| 2022-07-17 |         0.0 |         1.3 |          1.3 | 09:32         |
| 2022-07-18 |         0.0 |         0.0 |          0.0 | 10:00         |
| 2022-07-19 |         0.0 |         0.0 |          0.0 | 10:00         |
+------------+-------------+-------------+--------------+---------------+
No rain rate on the 17th?

Re: No Is Raining alarm and LastRainTip not updating

Posted: Wed 20 Jul 2022 5:40 pm
by mcrossley
I just tested it by poking a screwdriver into my old Fine Offset transmitters rain socket, it registered 3.3 mm or rain, and the Is Raining alarm also triggered. So it does seem to work.

But re-reading your message, are you expecting the alarm to trigger for rain events in the past? It will only trigger when the event occurs.

Re: No Is Raining alarm and LastRainTip not updating

Posted: Wed 20 Jul 2022 6:04 pm
by rogerthn
mcrossley wrote: Wed 20 Jul 2022 5:40 pm But re-reading your message, are you expecting the alarm to trigger for rain events in the past? It will only trigger when the event occurs.
No, I do not expect rain alarm for rain events in the past.
I'm not 100% sure but I do think that I did enabled the Is Raining Alarm prior to 2022-07-18 09:32, rollover 9am/10am.
Last rainfall 2022-07-08 06:05 also makes me puzzled.
We'll see, we might have some rain on Friday.

Re: No Is Raining alarm and LastRainTip not updating

Posted: Wed 20 Jul 2022 6:40 pm
by rogerthn
There was some ??? around that time

Code: Select all

2022-07-18 09:30:06.834 Error closing TCP port: Cannot access a disposed object.
2022-07-18 09:30:10.328 GetLiveData: Invalid response
2022-07-18 09:30:14.434 GetLiveData: Error - Value cannot be null.
2022-07-18 09:30:18.499 GetLiveData: Error - Value cannot be null.
2022-07-18 09:30:22.564 GetLiveData: Error - Value cannot be null.
2022-07-18 09:30:26.650 GetLiveData: Error - Value cannot be null.
2022-07-18 09:30:30.675 GetLiveData: Error - Value cannot be null.
2022-07-18 09:30:34.699 GetLiveData: Error - Value cannot be null.
2022-07-18 09:30:36.834 Error reconnecting Ecowitt Gateway: Cannot access a disposed object.
2022-07-18 09:30:38.700 GetLiveData: Invalid response
2022-07-18 09:30:42.700 GetLiveData: Invalid response
2022-07-18 09:30:46.701 GetLiveData: Invalid response
2022-07-18 09:30:50.701 GetLiveData: Invalid response
2022-07-18 09:30:54.702 GetLiveData: Invalid response
2022-07-18 09:30:58.702 GetLiveData: Invalid response
2022-07-18 09:31:02.703 GetLiveData: Invalid response
2022-07-18 09:31:06.703 GetLiveData: Invalid response
2022-07-18 09:31:06.834 Error closing TCP port: Cannot access a disposed object.
2022-07-18 09:31:10.704 GetLiveData: Invalid response
I've now connected my GW1000 to a more "dedicated" AP and so far, not a single Error or Invalid in MX-diag.
We do need some rain for more than one reason :lol:

Re: No Is Raining alarm and LastRainTip not updating

Posted: Wed 20 Jul 2022 6:52 pm
by freddie
Isn't the alarm triggered by a non-zero rain rate? Your max rain rate for the 17th was zero. So I wouldn't think the alarm would have been triggered.

Re: No Is Raining alarm and LastRainTip not updating

Posted: Wed 20 Jul 2022 7:06 pm
by rogerthn
freddie wrote: Wed 20 Jul 2022 6:52 pm Isn't the alarm triggered by a non-zero rain rate? Your max rain rate for the 17th was zero. So I wouldn't think the alarm would have been triggered.
But there is 1.3 mm in mysql Dayfile and in MX-diag I do have
2022-07-18 08:50:00.403 Writing today.ini, LastUpdateTime = 18/07/2022 08:50:00 raindaystart = 329.3 rain counter = 329.3
2022-07-18 09:35:00.215 Writing today.ini, LastUpdateTime = 18/07/2022 09:35:00 raindaystart = 329.3 rain counter = 330.6
There are no Writing today.ini between 08:50 and 09:35, after that I do have one every 5th minute.
Let's blame the WiFi ;)

Re: No Is Raining alarm and LastRainTip not updating

Posted: Wed 20 Jul 2022 7:38 pm
by mcrossley
freddie wrote: Wed 20 Jul 2022 6:52 pm Isn't the alarm triggered by a non-zero rain rate? Your max rain rate for the 17th was zero. So I wouldn't think the alarm would have been triggered.
Non zero rain rate OR a bucket tip

Re: No Is Raining alarm and LastRainTip not updating

Posted: Wed 20 Jul 2022 7:39 pm
by freddie
Yes, but if the tips are well spaced you won't get a rain rate - which is what triggers the alarm.

Re: No Is Raining alarm and LastRainTip not updating

Posted: Wed 20 Jul 2022 7:40 pm
by freddie
Ah okay, thanks Mark - I had it wrong :)

Re: No Is Raining alarm and LastRainTip not updating

Posted: Fri 22 Jul 2022 4:42 pm
by rogerthn
Something strange do happens when it's raining.
Normal running from 2022-07-20 17:45:44.519 until it starts to rain
2022-07-20 17:45:44.519 Normal running
2022-07-22 18:27:44.064 2022-07-22 18:27:44 Connected to station
Enclosing ServiceConsoleLog and zipped MX-diag
The first? error

Code: Select all

2022-07-22 18:29:43.531 Reading live data
2022-07-22 18:29:43.635 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-07-22 18:29:43.635 Received: FF-FF-27-00-40-01-01-0E-06-32-08-27-4F-09-27-8A-02-00-AE-07-5C-0A-00-D7-0B-00-0D-0C-00-0D-15-00-00-2A-30-16-00-00-17-00-19-00-4A-0E-00-06-10-00-01-11-00-0E-12-00-00-01-CA-13-00-00-0C-EB-0D-00-01-44
2022-07-22 18:29:43.636 LiveData: Wind Decode >> Last=1.3, LastDir=215, Gust=1.3, (MXAvg=0.9)
2022-07-22 18:29:43.637 GetLiveData: Error - Value cannot be null.

Re: No Is Raining alarm and LastRainTip not updating

Posted: Fri 22 Jul 2022 4:52 pm
by rogerthn
Disabled Is Raining trigger: seems to fix the issue.

Re: No Is Raining alarm and LastRainTip not updating

Posted: Sat 23 Jul 2022 8:10 am
by mcrossley
Thanks for the log, I have extracted the data from your station from it and replayed into my test install and I cannot reproduce this error. I think it must be some setting you have in your config that I do not.

Could you make a copy of your Cumulus,ini and put dummy values in for any passwords etc that are private and then PM it to me?

Re: No Is Raining alarm and LastRainTip not updating

Posted: Sat 23 Jul 2022 11:38 am
by rogerthn
Thanks!
PM sent

Re: No Is Raining alarm and LastRainTip not updating

Posted: Sun 24 Jul 2022 3:10 pm
by mcrossley
OK, found the problem. The Is Raining alarm is not setting a default email message. So if you have email alerting enabled it crashes. :bash:

Re: No Is Raining alarm and LastRainTip not updating

Posted: Sun 24 Jul 2022 5:59 pm
by rogerthn
OK
I'll disable email alerting and try when we have the next rain.
Could be some mm tomorrow