Re: [weewx-user] locale in user/extensions.py failed

2019-06-04 Thread Chris Richmond
Thanks. Not sure *dpkg-reconfigure locales helped exactly, but I think the problem* *was trying to set things in .cshrc to a locale that didn't exist (ASCII). I commented* *all those out, and logged in again and get this:* *pi2c:~> locale* *LANG=C.UTF-8* *LANGUAGE=en_US.UTF-8*

Re: [weewx-user] locale in user/extensions.py failed

2019-06-03 Thread Thomas Keffer
I would guess that your RPi does not have a default locale set. To see what locales it has been set to, use a simple "locale" command. Here's what I get: pi@RPi-bug ~ $ *locale* LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8"

[weewx-user] locale in user/extensions.py failed

2019-06-03 Thread Chris Richmond
I'm sure this is simply, but I'm setting up a new RPi for a VantageVue and tweaking extensions.py to check for good time. When I ran this stand-alone, locale.setlocale(locale.LC_ALL, '') failed. pi2c_/home/weewx/bin/user> python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0