BelchertownWeather MQTT Error

102 views
Skip to first unread message

Alan Bryant

unread,
Jul 10, 2024, 8:24:01 PMJul 10
to weewx-user
Hello all,

I'm having an issue with Belchertown Weather connecting and displaying MQTT data.

Here are the relevant versions:

WeeWX: 5.1.0
Belchertown Weather: Development version as of 2024/07/09
mosquitto: 2.0.18

WeeWX is sending data to my MQTT server and as you will see from the debug console data, Belchertown is able to receive it. I am getting an error that I was not able to find searching the internet.

Any help is appreciated it.

Browser_Debug_Console.txt

Graham Eddy

unread,
Jul 10, 2024, 10:34:28 PMJul 10
to WeeWX User
i think the error message you refer to is “MQTT: 2024-07-10T19:13:52-05:00: mqtt Connection Lost: AMQJS0005E Internal error. Error Message: invalid language tag: "C", Stack trace: No Error Stack Available belchertown.js:1577:17”, you didn’t actually say

hints from searches of similar errors point to fixing it by using a locale other than C - i suggest setting a system-wide locale (en_AU.UTF-8 in my case) and not overriding it elsewhere

but that simply addresses it saying "i have an error but i can’t tell you what it is” - can only look at the real error once it spits out the real error message
⊣GE⊢

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6033ff5c-0be8-408a-acf4-b3675fc856aen%40googlegroups.com.
<Browser_Debug_Console.txt>

Message has been deleted

Alan Bryant

unread,
Jul 12, 2024, 7:04:25 AMJul 12
to weewx-user
Thank you very much for pointing me in the right direction. As you said, my system locale was set to "C". I changed it to "en_US.UTF-8", but even after a reboot, nothing changed as far as the errors. Once I changed the weewx.conf config for the belchertown_locale to en_US.UTF-8, the problem is now resolved.

The site is connecting back to my mqtt server as it is supposed to.

Again, thank you so much!
Reply all
Reply to author
Forward
0 new messages