-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Issues with dynamic update / MQTT #957
Comments
further testing here seems to confirm that the loop packets are what force the disconnect. If the server-side weewxd is either not running or not sending loop packets to my MQTT the website just shows connected/waiting for updates perpetually. Once the regular loop packets come in, the web app gets disconnected and reconnects every time a loop packet arrives. The skin does not ever work as expected. |
finally was able to debug this further:
Not sure where to look next though. Does anyone have a suggestion? |
I figured out that the MQTT server was sending an "offline" message that was borking the JSON parse. It also is a "retain" message, so it's always there. I added catch to just eat the bad parses in
|
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
Try to debug the skin yourself. If you can't figure it out, please include the debug information (text, screenshots, etc.). See this guide on debugging the skin. https://github.com/poblabs/weewx-belchertown#how-to-use-debug
Describe the bug
Websockets implementation seems to have quit working.
I migrated to a new install. Fresh weewx 5.1 install, weewx-belchertown install from the current git (latest release did not work due to python locale.format_string changes). Connection flashes between:
Connected. Waiting for data. Last Updated October 27, 2024, 10:55:00 AM
and 'Lost connection ...' (can't copy the whole thing as it flashes too quickly before reconnecting and flashing the first message)
The first timestamp is my most recent archive, and it seems to flash 'lost connection' every time a loop packet arrives.
I have validated that I can connect to the mqtt broker and see the loop packets. Mosquitto logs the web app connecting and disconnecting repeatedly.
The formerly working MQTT implementation has not been changed. The issue appears to be localized to weewx/belchertown skin.
Link to your website (IMPORTANT)
https://www.insomnia.org/wxdata
Version of the skin you're using
Latest from git
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Dynamic updates via MQTT
Screenshots
If applicable, add screenshots to help explain your problem.
Device Information (please complete the following information):
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!
The text was updated successfully, but these errors were encountered: