it's from saratoga-weather.org Legacy Weather PHP scripts Anole's 
wxgraphic.php script version 6.3
the only way i found to get past that utf-8 for ° was to move it to the php 
file
also i used the clientraw.txt file
yes the $station.location was to long for type=avatar, but then i like the 
banners better

On Friday, September 30, 2022 at 5:44:36 AM UTC-5 Glenn McKechnie wrote:

> 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/668f808c-d0d1-420f-97fc-1bf7dcb8d5e2n%40googlegroups.com.

Reply via email to