On Monday, 10 February 2020 14:00:09 UTC+10, Thomas Carlin wrote: > > So there is no simple or easy way to modify it or assign it to a different > group in the config as to effect each template without having to touch > everything? > > No. The groups are used to set the 'unit group' for an observation, so outTemp is typically assigned to group_temperature indicating (to WeeWX) that outTemp is a temperature which could be degree_C, degree_F or degree_E. You can then assign default formats for each unit, so you could have degree_C formatted with one decimal place and degree_F with no decimal places. This means you can use shortened tags that do not specify the formatting to use, for example $current.outTemp.degree_C would display the current outside temperature in C with one decimal place. If you change the default format for a given unit it will applies everywhere you use tags (in that skin/report) that have implicit formatting, which is most places in the Standard and Seasons skins. If you want to step outside this for particular fields/tags you need to use explicit formatting such as $current.outTemp.degree_C.format(format_string="%.2f") if you want to display the current outside temperature in C with two decimal places.
Gary -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/59fc3633-88d7-4b13-90bd-d0968cdeb601%40googlegroups.com.