Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get the name of the font
Browse files Browse the repository at this point in the history
bdamokos committed Dec 7, 2024
1 parent 5c6ff1b commit 8873636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic.py
Original file line number Diff line number Diff line change
@@ -238,7 +238,7 @@ def update_display(epd, weather_data, bus_data, error_message=None, stop_name=No
logger.warning(f"No DejaVu fonts found, using default: {font_large}, {font_medium}, {font_small}. Install DeJaVu fonts with \n sudo apt install fonts-dejavu\n")

weather_icon = WEATHER_ICONS.get(weather_data['description'], '')
logger.debug(f"Weather icon: {weather_icon}, description: {weather_data['description']}, font: {font_small}")
logger.debug(f"Weather icon: {weather_icon}, description: {weather_data['description']}, font: {font_small.getname()}")
temp_text = f"{weather_data['temperature']}°"
weather_text = f"{weather_icon} {temp_text}"
weather_bbox = draw.textbbox((0, 0), weather_text, font=font_small)

0 comments on commit 8873636

Please sign in to comment.