Different Rain Values if It Rains between 23:55 and 00:00
Opened this issue · 18 comments
Describe the bug
If it rains between 23:55 and 00:00, the rain value displayed in the station observation section is different from the rain value displayed in snapshots section of the home page.
I did some debugging and found that hint in the WeeWX comments regarding dayRain
:
# NB: The WU considers the archive with time stamp 00:00
# (midnight) as (wrongly) belonging to the current day
# (instead of the previous day). But, it's their site,
# so we'll do it their way. That means the SELECT statement
# is inclusive on both time ends:
So dayRain
(which is sent by MQTT) is calculated different than $day.rain.sum
:
dayRain
: 23:55:01 up to now$day.rain.sum
: 00:00:01 up to now
The correct value is the latter.
Link to your website (IMPORTANT)
https://www.woellsdorf-wetter.de
Version of the skin you're using
1.2
To Reproduce
You need to wait for a day when it rains between 23:55:01 and 00:00:00. Then you see the problem without further action.
Expected behavior
The daily rain is to be calculated for the time range from 00:00:01 up to now.
Device Information (please complete the following information):
- Device: independent of device
- OS: independent of OS
- Browser: indepentend of Browser
- Version: not applicable
Additional context
I guess the solution involves introducing a second observation type for daily rain. That could be implemented by an XType extension. Such an XType extension value would be included in the MQTT output automatically.
HELP WANTED
I could try to write a fix for that, but I would do so on request only, as it is some work to do.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem still persists. And I think the reason is in the special behavior of dayRain
. What do you think?
It is still open.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem is still there.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still actual
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The PR I issued to weewx-mqtt is still not recognized by Matthew. So this is still actual.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Matthew is not sure he will include the PR into the MQTT extension. If not, a solution inside the Belchertown skin is required.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
There are no news about the weewx-mqtt extension. The problem persists.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
There are no news about the weewx-mqtt extension. The problem persists.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
There are no news about the weewx-mqtt extension. The problem persists.