Tiny letters despite font being installed

64 views
Skip to first unread message

Auchtermuchty Weather

unread,
Mar 8, 2021, 12:56:14 PM3/8/21
to weewx-user
My skin uses FreeMonoBold.ttf:

skins/Images/skin.conf:    top_label_font_path = /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
skins/Images/skin.conf:    unit_label_font_path = /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
skins/Images/skin.conf:    bottom_label_font_path = /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
skins/Images/skin.conf:    axis_label_font_path = /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
skins/Images/skin.conf:    rose_label_font_path = /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf

It's installed:
pi@muchtyweather:/home/weewx $ ls -l /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
-rw-r--r-- 1 root root 300848 Jan 21  2019 /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf

But I have miniscule letters in the graphs:

It was OK on the test Pi and I coped /home/weewx across preserving the permissions.  Where have I gone wrong?

michael.k...@gmx.at

unread,
Mar 9, 2021, 1:14:02 AM3/9/21
to weewx-user
Currently it looks OK to me...

Michael

unread,
Mar 9, 2021, 2:58:54 AM3/9/21
to weewx-user
This is what your page looks like after you open it. Everything OK

Screenshot 2021-03-09 085408.png

But I still have one question:
How did you integrate the tabular weather data: "Current Weather", "Last 24 hours" etc.?
Are the live data also included there?


Auchtermuchty Weather

unread,
Mar 9, 2021, 4:56:00 AM3/9/21
to weewx-user
It healed up.  I saw small letters, remembered to install the fonts and I'm not sure that was picked up until I restarted - I restarted the whole Pi.

michael.k...@gmx.at

unread,
Mar 15, 2021, 2:37:07 PM3/15/21
to weewx-user
>But I still have one question:
>How did you integrate the tabular weather data: "Current Weather", "Last 24 hours" etc.?
>Are the live data also included there?

It's a skin called "bootstrap", you can get it here: https://github.com/brewster76/fuzzy-archer/tree/liveCharts. To show live data, you need a working MQTT setup.

Michael

unread,
Mar 16, 2021, 2:58:04 AM3/16/21
to weewx-user
I have been using the "new" bootstrap skin for about 4 weeks now. When "Auchtermuchty Weather" asked a question about the character size, I saw that he had modified the skin to display current data in tabular form. Since I am also very interested in this type of display, I wanted to know from him how/what he has modified. Unfortunately, there was no answer from him.
2021-03-16 07_49_04-Auchtermuchty Weather.png

michael.k...@gmx.at

unread,
Mar 16, 2021, 12:17:36 PM3/16/21
to weewx-user
You can look in the template "stats.html.tmpl", then you should get an idea of how it's done.
For instance, when you insert the following into the "station info" table in livegauges.html.tmpl:
[...]
<tr>
<td>$BootstrapLabels.history_tables.max_temp</td>
<td>$day.outTemp.max</td>
</tr>
[...]
You should get the Max Temp of the current day shown.
Reply all
Reply to author
Forward
0 new messages