I have done some more research.

It have tried again with standard skin, and it is doing the same thing 
whether I use standard or byteweather, so my challenge is not about 
Byteweather skin. So far so good.

And as Tom suggests looking in the logfile, there are some things that 
suggests that the system is not running with the right locale:

log snippet:
engine: Locale is 
'LC_CTYPE=en_US.UTF-8;LC_NUMERIC=de_DE.UTF-8;LC_TIME=de_DE.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=de_DE.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=de_DE.UTF-8;LC_ADDRESS=de_DE.UTF-8;LC_TELEPHONE=de_DE.UTF-8;LC_MEASUREMENT=de_DE.UTF-8;LC_IDENTIFICATION=de_DE.UTF-8'

I have tried changing the locale the way you suggest, but with no effect, 
because if I do a echo $LANG it responds with da_DK.utf8 (I wrote it wrong 
in my post without the underscore, but it IS with an underscore).

So no doubt the problem is within the server, not weewx. But I'm still on a 
learning curve on linux (and weewx), but I love it (both actually). :-)

Bent





torsdag den 27. september 2018 kl. 15.17.20 UTC+2 skrev gjr80:
>
> I looked through the byteweather repo earlier and it is essentially the 
> same core template code (ie tags etc) as Standard but with different 
> css/layout applied. Can't really see it being the problem.
>
> Gary
>
> On Thursday, 27 September 2018 22:40:40 UTC+10, Thomas Keffer wrote:
>>
>> If you have this problem with both the Byteweather and the standard WeeWX 
>> skin (make sure!!), then the problem must be in your system configuration.
>>
>> When WeeWX first starts up, it will log the locale it plans to use in the 
>> system log. Take a look. It will look something like this:
>>
>> Sep 27 05:24:12 nuc weewx[23119]: engine: Initializing weewx version 
>> 3.9.0a1
>> Sep 27 05:24:12 nuc weewx[23119]: engine: Using Python 2.7.12 (default, 
>> Dec  4 2017, 14:50:18) #012[GCC 5.4.0 20160609]
>> Sep 27 05:24:12 nuc weewx[23119]: engine: Platform 
>> Linux-4.4.0-135-generic-x86_64-with-Ubuntu-16.04-xenial
>> Sep 27 05:24:12 nuc weewx[23119]: engine: Locale is 'en_US.utf8'
>> Sep 27 05:24:12 nuc weewx[23119]: engine: Using configuration file 
>> /home/weewx/weewx.conf
>> Sep 27 05:24:12 nuc weewx[23119]: engine: Debug is 1
>> Sep 27 05:24:12 nuc weewx[23119]: engine: Initializing engine
>>
>> Make sure it indicates a Danish locale. If it does not, then the 
>> environment variable LANG has not been set properly. One thing I noticed 
>> is that you listed your Danish locale as "da-DK.utf8", while the proper 
>> name is "da_DK.utf8". Note the underscore. Try running WeeWX with an 
>> explicit LANG:
>>
>> *cd /home/weewx*
>> *LANG=da_DK.utf8 ./bin/weewxd weewx.conf*
>>
>> and see what locale is listed in the system log. (The above assumes you 
>> used the setup.py install method. If not, adjust accordingly)
>>
>> If after all this, you have a Danish locale listed in the system log, and 
>> you still get German names for *both* Byteweather and the Standard WeeWX 
>> skin, then I've run out of ideas. If you get German names for *just* the 
>> Byteweather skin, then it must have the names hard coded into it somewhere.
>>
>> -tk
>>
>> On Thu, Sep 27, 2018 at 4:22 AM Bent Jensen <neu...@bnjpro.dk> wrote:
>>
>>> Byteweather is one of the stock skins installed along the weewx.
>>>
>>> But unfortunately no matter what I do with locales, or skins, (I also 
>>> tried switching back to standard skin), the weekdays names are in german. 
>>> Could they be hardcoded somewhere? Am I the only one experiencing this?
>>>
>>> The locale is changed to da-DK.UTF8, and weewx restarted, but still in 
>>> german.
>>>
>>> Bent
>>>
>>>
>>>
>>>
>>> torsdag den 27. september 2018 kl. 02.34.44 UTC+2 skrev Thomas Keffer:
>>>>
>>>> I am not familiar with the Byteweather skin, but if I had to guess, I'd 
>>>> say you are using a German locale. To see the locale you are using, type 
>>>> this:
>>>>
>>>> *echo $LANG*
>>>>
>>>> See the section *Environment variable LANG* in the Customizing Guide 
>>>> for more information.
>>>>
>>>> -tk
>>>>
>>>> On Wed, Sep 26, 2018 at 11:50 AM Bent Jensen <neu...@bnjpro.dk> wrote:
>>>>
>>>>> I'm using Byteweather skin for the time being.
>>>>>
>>>>> I have customised it into danish. But when looking at the weekly stats 
>>>>> (and the month names in the main page), the daynames are in german. 
>>>>> Howcome, and where do 'i change that? It must be some localisation 
>>>>> setting 
>>>>> I'm missing somewhere.
>>>>>
>>>>> I have tried to find it on my own, but without success.
>>>>>
>>>>> Cheers
>>>>> Bent
>>>>>
>>>>> -- 
>>>>> 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.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> -- 
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to