Belchertown, MQTT and Danish Characters

145 views
Skip to first unread message

Gert Andersen

unread,
Mar 5, 2020, 9:35:48 PM3/5/20
to weewx-user
Hi
I have a weird issue.
System: ubuntu 18.04, da-dk utf8 locale, Mosquitto, weewx 3.9.2 and Belchertown 1.0.1

For wind directions, I'm using danish characters and have them inserted in weewx.conf. The first time I'm bringing up the webpage, everything is fine (screenshot Before Update). When the page is updated by MQTT, I have funny characters in the wind direction field (screenshot After Update).

Furthermore the Wind Rose has funny characters for the wind directions with the danish characters.(screenshot Wind Rose)

Any ideas?

Thanks
Gert 
Wind Rose.png
After Update.png
Before Update.png

Pat

unread,
Mar 6, 2020, 7:43:36 PM3/6/20
to weewx-user
HI Gert, I think this is resolved in the development version. You can install the development version just like you did 1.0.1 by downloading the current development zip file and following the install instructions. 

After, restart weewx and see if it helps after a couple of archive intervals. 

Gert Andersen

unread,
Mar 7, 2020, 3:54:28 PM3/7/20
to weewx-user
Hi Pat

Thanks for your answer.

Upgrading to version 1.1b9 seems to have solved the problem with the funny characters and the wind directions. I still have an issue with the Windrose. as you can see here:

Thanks for your support and for this skin.

Rgds
Gert

Pat

unread,
Mar 7, 2020, 4:35:03 PM3/7/20
to weewx-user
I don't know what's causing that one. Those labels come from weewx.conf under StdReport -> Defaults -> Units -> Ordinates -> directions or under skin.conf Units -> Ordinates -> directions. 

Do you have special characters in this variable in either of these files?

Gert Andersen

unread,
Mar 7, 2020, 5:58:02 PM3/7/20
to weewx-user
Hi Pat

This is my ordinates from weewx.conf:

[[[[Ordinates]]]]
                
                # Ordinal directions. The last one is for no wind direction
                directions = N, NNØ, NØ, ØNØ, Ø, ØSØ, SØ, SSØ, S, SSV, SV, VSV, V, VNV, NV, NNV, N/A

Gert

Pat

unread,
Mar 7, 2020, 10:01:59 PM3/7/20
to weewx-user
This was an interesting one because of Python 2 and Python 3 unicode slight differences and accommodating both. I think I've solved it based on your directions example. Re-download the development branch again, re-install it, and restart weewx. See if that helps. 

Gert Andersen

unread,
Mar 7, 2020, 11:53:36 PM3/7/20
to weewx-user
Hi Pat

Working perfect, thanks a lot.

Gert

Gert Andersen

unread,
Mar 9, 2020, 5:45:19 AM3/9/20
to weewx-user
Hi Pat

I was to fast.

I have upgraded with mqtt and first time the webpage is upgrade by mqtt, I have these characters again. The page is working without mqtt


I have also attached a screenshot.

I'm running: Belchertown 1.11b9 
 Thanks
Gert
On Sunday, March 8, 2020 at 4:01:59 AM UTC+1, Pat wrote:
2020-03-09.png

Pat

unread,
Mar 9, 2020, 8:56:03 AM3/9/20
to weewx-user
Is it just the wind direction showing the problem? 

Pat

unread,
Mar 9, 2020, 8:59:41 AM3/9/20
to weewx-user
I think I found it. Please re-download the development zip, reinstall, restart weewx and let me know. Thanks!

Gert Andersen

unread,
Mar 9, 2020, 11:16:23 AM3/9/20
to weewx-user

Hi Pat

Yes, it was only the wind  direction not working.

I have now installed the latest version and it's working perfect with mqtt.

Thanks a lot for your great support .

Rgds
Gert
Reply all
Reply to author
Forward
0 new messages