On 30/09/2022, an oldman <> wrote: > i ran the config.txt through cheetah as config.txt.tmpl > > #raw > ...... > #end raw > $barom_units = "$unit.label.pressure"; > $rain_units = "$unit.label.rain"; > $degree_units_type = "$unit_system"; > $wind_units = "$unit.label.wind"; > #raw > #raw > > in wxgraphic.php added
wxgraphic.php ? That's an early version. If it's from this repo then you're an early adopter - no medal, but definitely a 'nod and a tip of the hat' to you. If it's not then you're an even earlier adopter ! ;-) > if ($degree_units_type === 'us' || $degree_units_type === 'US') { > $degree_units = ' °F'; > } else { > $degree_units = ' °C'; > } > That's a neat way of doing it . I'm pulling them from the weewx-wxgraphic.txt file but having trouble with the utf-8 for ° > #end raw > imagecenteredtext(90, 12, "$station.location", 3, 10, $color2, 0); > #raw I was avoiding that one as there is a possibility that the string is too long for the graphic (mine is). Entering it as an option is a chance to reword it to suit the space. It could / should be offered as the default value, then overwritten if desired. -- Cheers Glenn rorpi - read only raspberry pi & various weewx addons https://github.com/glennmckechnie -- 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/CAAraAzhF-2o_hpGsgAxUqYXuecWNDPxrYGZURHsKritmyJrq7g%40mail.gmail.com.