-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] MQTT: Some stat tiles are updated to NaN #166
Comments
The skin looks for the value of There is some mismatch between the units. The stat tile shows the value as mm, but your MQTT messages contains the values in cm. Sorry, I will add this to the wiki since it's an important requirement for the live updates to work. You need to set the MQTT message to also use mm (See https://github.com/weewx/weewx/wiki/mqtt#examples for how to configure this for the weewx-mqtt extension). Something like this should work:
Can you post the part of your skin.conf where the stat tiles are configured (especially I guess there is some more mismatch since EDIT: is your website anywhere publicly accessible? I need to have a look at how the skin outputs the |
I think I have this configured correctly already. weewx.conf:
skin.conf:
I will look into why |
For Only But as a general thought: If the stat tile value is |
@nifoc Yeah I also digged around a bit.
Did not notice this yet because I just used At first I thought the I tend to only support the live update via MQTT for "sum observations" if WeeWX provides the So yes, the best bet would be to not update the value if the data is missing in the MQTT message. I attached a updated live-updates.js. Would be great if you could test this out (just replace the file in your skins directory at |
Sorry, only had time to do a quick test now. The patched file works like a charm - thank you! |
I committed the change. It will be included in the next release, thank you for spotting this one! |
Describe the bug
Skin version:
3.2.0
Weewx version:
4.10.2
Some tiles (in my case:
rain
,ET
,lightning_strike_count
) are updated toNaN
when an "update" to their value arrives via MQTT/Websockets.To Reproduce
Relevant WS messages:
Expected behavior
The value should (probably) be changed to
0.0
.Screenshots
Additional context
My guess is that this is caused by the observations being
0.0
(or being0.0
after being rounded, in the case ofET
) and the stat tiles showing the aggregate (sum?) for the day.Stat tiles that don't show the sum (
radiation
,luminosity
) and whose value is0.0
(during the night) are not affected.The text was updated successfully, but these errors were encountered: