Skip to content
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

Wind speed shown in m/s at page load and switches to knots when MQTT connects #962

Open
thecalle opened this issue Dec 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@thecalle
Copy link

Please don't delete these questions! They are asked almost with every issue - answering them as below saves us time from asking them!

First step
Checked settings following the docs about using metric

Describe the bug
Wind metric set to knot, website shows live speed in m/s and immediately when mqtt connects, switches to knots (measurement divided by abut 2)

Link to your website (http://www.iparassiti.com)

Version of the skin you're using

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device Information (please complete the following information):

  • Device: [e.g. desktop, iPhone6]
  • OS: [e.g. Windows, Android, iOS]
  • Browser [e.g. Chrome, Safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here. Maybe a potential fix?

HELP WANTED
If you have a fix for this, please submit a pull request against the development branch!

@thecalle thecalle added the bug Something isn't working label Dec 15, 2024
@uajqq
Copy link
Contributor

uajqq commented Jan 12, 2025

Can you post your weewx.conf file? I used to have this issue too and it was due a setting in the MQTT stanza.

@thecalle
Copy link
Author

The problem in not in the MQTT stanza. Measure is in m/s when page loads. When the MQTT web socket connects and receives the first update, data are correctly shown in knots.

It seems the HTML is faulty and conversion is done when data are updated from MQTT.

The effect is a rapid change in SPEED and GUST value: when MQTT goes online, value is changed immediately. For example:
SPEED 5 / GUST 7 --> SPEED 2 / GUST 3 (m/s to knots rounded to integer)

@uajqq
Copy link
Contributor

uajqq commented Jan 18, 2025

Right — I used to have the exact same problem (for me it was mph being changed), but it wasn’t a bug, it was a configuration issue. Somewhere in your weewx.conf settings, weewx is being told to report in one unit, but MQTT is reporting in another, so the values are getting overwritten. I eventually tracked it down and fixed it. Could you post your weeewx.conf file for review? Also, which unit does your “regular” weewx page display?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants