tomdotorg / docker-weewx

Docker image for weewx weather software
https://hub.docker.com/r/mitct02/weewx/
Apache License 2.0
23 stars 13 forks source link

errors in container after chanching belchertown_locale setting (weewx.conf) for 24h time format #8

Open ervu opened 4 months ago

ervu commented 4 months ago

Hi,

I am based in europe and using the 24h time schema instead of 12AM/PM. The belchertown skin has an option to switch to a different local in the weewx.conf by changing the setting "belchertown_locale = auto" to belchertown_locale = "en_GB.UTF-8". This will displays all the graphs to 24h time format.

The container show (in the log) multiple errors. But despite the error the output in the graphs is 24h format,

2024-07-14 18:16:27,037 weewxd[8] ERROR user.belchertown: Locale: Error using locale en_GB.UTF-8. This locale may not be installed on your system and you may see unexpected results. Belchertown skin JavaScript will try to use this locale. Full error: unsupported locale setting

I think that adding the locals package and preconfigure some locals could solve this issue. In my lab setup the errors disappear These are the commands i used: apt-get install locales and dpkg-reconfigure locales option 87 option 3

https://serverfault.com/questions/362903/how-do-you-set-a-locale-non-interactively-on-debian-ubuntu

Thanks... and also thanks for the new 5.1 distri... Looks great and run with better performance and lower CPU impact.

https://weerstationalmere.xplain.org/