OK, try this. Edit your Seasons skin config file (skins/Seasons/skins.conf) 
and locate the [ImageGenerator] stanza, it should look something like this:

# The ImageGenerator creates image plots of data. 

[ImageGenerator] 

# This section lists all the images to be generated, what SQL types are to 
# be included in them, along with many plotting options. There is a default 
# for almost everything. Nevertheless, values for most options are included 
# to make it easy to see and understand the options. 
# 
# Fonts can be anything accepted by the Python Imaging Library (PIL), which 
# includes truetype (.ttf), or PIL's own font format (.pil). See 
# http://www.pythonware.com/library/pil/handbook/imagefont.htm for more 
# details. Note that "font size" is only used with truetype (.ttf) 
# fonts. For others, font size is determined by the bit-mapped size, 
# usually encoded in the file name (e.g., courB010.pil). A relative path 
# for a font is relative to the SKIN_ROOT. If a font cannot be found, 
# then a default font will be used. 
# 
# Colors can be specified any of three ways: 
# 1. Notation 0xBBGGRR; 
# 2. Notation #RRGGBB; or 
# 3. Using an English name, such as 'yellow', or 'blue'. 
# So, 0xff0000, #0000ff, or 'blue' would all specify a pure blue color. 

image_width = 500 
image_height = 180 
image_background_color = "#ffffff" 

chart_background_color = "#ffffff" 
chart_gridline_color = "#d0d0d0" 

# Setting to 2 or more might give a sharper image with fewer jagged edges 
anti_alias = 1 

top_label_font_path = font/OpenSans-Bold.ttf 
top_label_font_size = 14 

unit_label_font_path = font/OpenSans-Bold.ttf 
unit_label_font_size = 12 
unit_label_font_color = "#787878" 

bottom_label_font_path = font/OpenSans-Regular.ttf 
bottom_label_font_size = 12 
bottom_label_font_color = "#787878" 
bottom_label_offset = 3 

axis_label_font_path = font/OpenSans-Regular.ttf 
axis_label_font_size = 10 
axis_label_font_color = "#787878" 

# Options for the compass rose, used for progressive vector plots 
rose_label = N 
rose_label_font_path = font/OpenSans-Regular.ttf 
rose_label_font_size = 9 rose_label_font_color = "#222222"

Take note of the various xxxx_font_path settings, in this case there are 
five different settings and I have highlighted them in the above extract. 
Now open your SteelSeries skin config file (skins/ss/skin.conf) and locate 
the [ImageGenerator] stanza, it would have originally looked something like 
this:

[ImageGenerator]
    image_width = 720
    image_height = 196
    image_background_color = 0xffffff
    chart_background_color = 0xffffff
    chart_gridline_color = 0xeaeaea

    top_label_font_path = 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf
    top_label_font_size = 10

    unit_label_font_path = 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf
    unit_label_font_size = 10
    unit_label_font_color = 0xaaaaaa

    bottom_label_font_path = 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf
    bottom_label_font_size = 10
    bottom_label_font_color = 0xaaaaaa

    axis_label_font_path = 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf
    axis_label_font_size = 10
    axis_label_font_color = 0xaaaaaa

    rose_label = N
    rose_label_font_path = 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf
    rose_label_font_size  = 8
    rose_label_font_color = 0x888888
    rose_color = 0xaaaaaa

but may be different now if you have already changed some/all of the 
xxxx_font_path settings. Irrespective, go though and change each of the 
xxxx_font_path settings (I have again highlighted them) to be the same as 
the corresponding setting in your Seasons skin config file. Save the 
modified skin.conf. The SteelSeries plots should be re-generated on the 
next report cycle, check them after the report cycle is complete. That 
should fix the problem. If it does not please:

1. post copies of your Seasons skin and SteelSeries skin config files (
skins/Seasons/skin.conf and skins/ss/skin.conf respectively), and

2. post a startup debug log. To do this edit weewx.conf, set debug = 1, 
save weewx.conf and restart WeeWX. Let WeeWX run for at least two archive 
periods and then take a log extract covering from when WeeWX was just 
restarted through until the two archive periods have elapsed. Post the log 
without modification making sure you capture the entire WeeWX startup. If 
you run into problems refer to the Help! Posting to weewx user 
<https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user> wiki 
entry in the first instance. 

Gary
On Monday, 7 December 2020 at 08:55:05 UTC+10 [email protected] wrote:

>
> editing the /ss/skin.config. here my settings but the weird fonts remaing 
> after the page circle
> Στις Δευτέρα, 7 Δεκεμβρίου 2020 στις 12:45:04 π.μ. UTC+2, ο χρήστης Greg 
> from Oz έγραψε:
>
>> The font OpenSans-Regular.ttf is here in my install:
>> /etc/weewx/skins/Seasons/font/OpenSans-Regular.ttf
>>
>> Gary is saying edit this file: skins/ss/skin.conf 
>> And make the changes.
>>
>>
>>
>>
>> On Monday, 7 December 2020 at 09:26:00 UTC+11 [email protected] wrote:
>>
>>> im sorry for that, but i cant clear understund the line replace 
>>>
>>> replace  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf  
>>> with  /usr/share/fonts/truetype/font/OpenSans-Regular.ttf  ?  with only  
>>> font/OpenSans-Regular.ttf  ?
>>>
>>> Στις Κυριακή, 6 Δεκεμβρίου 2020 στις 10:57:16 μ.μ. UTC+2, ο χρήστης 
>>> gjr80 έγραψε:
>>>
>>>> Hi,
>>>>
>>>> The issue will be the font being used by the SteelSeries skin image 
>>>> generator. The font used in the SteelSeries plots is based on the font 
>>>> used 
>>>> by the Standard skin (the default skin at the time) when the SteelSeries 
>>>> skin was first developed. WeeWX now uses Seasons as the default skin which 
>>>> uses a different font. Most likely what is happening is the SteelSeries 
>>>> font does not exist and a substitute font is being used and that font does 
>>>> not support the characters you are using. 
>>>>
>>>> Try editing skins/ss/skin.conf and replace:
>>>>
>>>> -  all occurrences of 
>>>> ‘/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf’ with 
>>>> ‘font/OpenSans-Regular.ttf
>>>> -  all occurrences of 
>>>> ‘/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf’ with 
>>>> ‘font/OpenSans-Bold.ttf’
>>>>
>>>> To be consistent with the Seasons skin plot format you might want to 
>>>> change the unit_label_font_path setting to ‘font/OpenSans-Bold.ttf’
>>>>
>>>> Once you save skin.conf the plots should come good on the next report 
>>>> cycle.
>>>>
>>>> I will arrange for appropriate changes to the SteelSeries Weather 
>>>> Gauges repo.
>>>>
>>>> Gary
>>>> On Monday, 7 December 2020 at 01:03:33 UTC+10 [email protected] 
>>>> wrote:
>>>>
>>>>> in my weather page of weewx with steelseries gauges, weird font 
>>>>> appears in tooltip graphs. the page is
>>>>>
>>>>> http://kolxiko.epizy.com/live/
>>>>>
>>>>> in weewx page all the greek characters appears mormal
>>>>>
>>>>> http://kolxiko.epizy.com/
>>>>>
>>>>>

-- 
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/ddbea6f3-790a-4f39-bdbe-a581dc51922cn%40googlegroups.com.

Reply via email to