Top label size

193 views
Skip to first unread message

Mario Romanello

unread,
Jan 28, 2016, 1:07:27 AM1/28/16
to weewx-user
Hi, I am trying to make the font sizes bigger in the graphs, but I am not seeing any change in the generated images. For example, I have changed the "top_label_font_size" to 18 from 12, but the font size in the image is unchanged. I did "sudo /etc/init.d/weewx reload" but still nothing has changed. Any ideas?

Andrew Milner

unread,
Jan 28, 2016, 1:31:03 AM1/28/16
to weewx-user
where did you make the change - in skin.conf or weewx.conf?  If in skin.conf check that there is no font setting in weewx.conf which is overriding the skin!  Also you could try a stop and start of weewx rather than just a reload of weewx.conf.

Mario Romanello

unread,
Jan 28, 2016, 2:26:15 AM1/28/16
to weewx-user
sudo /etc/init.d/weewx stop ->The change in the file skin.conf, and after -> sudo /etc/init.d/weewx start

[ImageGenerator]

# This section lists all the images to be generated, what SQL types are to
# be included in them, along with many plotting options, such as color or
# font. There's a default for almost everything, if not specified below.
# Nevertheless, I have explicitly put in values, to make it easy to see
# and understand the options.
#
# Fonts can be anything accepted by the Python Imaging Library (PIL), which
# is currently 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). 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 = 800
image_height = 300
image_background_color = 0xffffff

chart_background_color = 0xffffff
chart_gridline_color = 0xdbdbdb

top_label_font_path = /usr/share/fonts/truetype/droid/DroidSans-Bold.ttf
top_label_font_size = 18

unit_label_font_path = /usr/share/fonts/truetype/droid/DroidSans-Bold.ttf
unit_label_font_size = 10
unit_label_font_color = 0x000000

bottom_label_font_path = /usr/share/fonts/truetype/droid/DroidSans-Bold.ttf
bottom_label_font_size = 12
bottom_label_font_color = 0x000000

axis_label_font_path = /usr/share/fonts/truetype/droid/DroidSans-Bold.ttf
axis_label_font_size = 10
axis_label_font_color = 0x000000

Andrew Milner

unread,
Jan 28, 2016, 3:09:13 AM1/28/16
to weewx-user
Is the font droid/DroidSans-Bold.ttf actually installed on your system?

Mario Romanello

unread,
Jan 28, 2016, 3:12:33 AM1/28/16
to weewx-user
I actually followed the path and folder in my system does not exist!

Andrew Milner

unread,
Jan 28, 2016, 3:42:33 AM1/28/16
to weewx-user
Either install the font, or use one of the fonts that does exist on your system.  My images are using /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf but I guess it depends on what you have got installed!!

Mario Romanello

unread,
Jan 28, 2016, 3:46:26 AM1/28/16
to weewx-user
Thanks Andrew, in the afternoon i do it!

mwall

unread,
Jan 28, 2016, 8:12:16 AM1/28/16
to weewx-user

when you make a change to a skin.conf, there is no need to restart weewx; the change you make will be picked up the next time that the report generator runs.

when you make a change to weewx.conf, you must restart weewx, or tell it to reload weewx.conf.

the customization guide explains some reasons why you might modify a skin by changing values in weewx.conf versus when you would simply modify a skin.conf directly.

m

Mario Romanello

unread,
Jan 29, 2016, 4:39:23 AM1/29/16
to weewx-user
Perfect,work now!!!
Thanks

Mario Romanello

unread,
Jan 29, 2016, 4:53:17 PM1/29/16
to weewx-user
And for increase thick graphic lines?

Andrew Milner

unread,
Jan 30, 2016, 12:01:18 AM1/30/16
to weewx-user
I thinhk that is chart_line_width

Andrew Milner

unread,
Jan 30, 2016, 12:04:29 AM1/30/16
to weewx-user
sorry -
width = 1 for thin (default) or width = 2 is thicker.  Not sure what chart_line_width is without trying it myself!!

Mario Romanello

unread,
Jan 30, 2016, 4:45:19 AM1/30/16
to weewx-user
This is correct tag:

# Default plot and aggregation. Can get overrid$ plot_type = line
aggregate_type = none
width = 3
time_length = 86400 # == 24 hours
Reply all
Reply to author
Forward
0 new messages