Hi,

Provided your system is set to use the German locale you can display an 
abbreviated day name using the strptime() %a formatting directive 
<https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior>.
 
How you use the %a directive depends on what you want to achieve.

If you have a tag in a template, say $month.dewpoint.mintime and you want 
it to display just the abbreviated day name then something like 
$month.dewpoint.mintime.format("%a") will display (just) the abbreviated 
day name for the time the month minimum dewpoint occurred. I suspect though 
that the example you have given may in fact come from a template that uses 
a format that is picked up from the [StdReport] [[Defaults]] [[[Units]]] 
[[[[TimeFormats]]]] stanza or perhaps a similar stanza in a skin config 
file (skin.conf). You can certainly change the default setting in the 
[[[[TimeFormats]]]] stanza but be aware this will likely change the format 
used throughout a number of templates and skins. So it may not be what you 
want.

It might help if you tell us which template this is from or show us what 
template code you are using.

Gary

On Sunday, 29 March 2020 04:32:31 UTC+10, Astrid wrote:
>
> Hello!
>
> I am using weewx 3.9.2, german language.
>
> Is it possible that e.g. for $month.dewpoint.mintime
> not to get
> Taupunkt min    -9,2 °C    19:50:00 (Mittwoch)
> instead to get
> Taupunkt min    -9,2 °C    19:50:00 (Mi)
> to save a little bit the linelengh?
>
> Regards, Astrid
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2d5488ed-e557-4921-809f-322d42bdfb16%40googlegroups.com.

Reply via email to