Skip to content

Commit

Permalink
Meteoalarm - use description instead of title
Browse files Browse the repository at this point in the history
  • Loading branch information
pskowronek committed Oct 8, 2023
1 parent b047085 commit f77e925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def draw_weather(self, buf, red_buf, weather, airly, prefer_airly_local_temp, bl

storm_distance_warning = self.storm_distance_warn

if weather.alert_title is not None:
if weather.alert_description is not None:
top_y = top_y + 3
caption = "[!] {}".format(weather.alert_title.lower())
caption = "[!] {}".format(weather.alert_description.lower())
draw.rectangle((215, top_y + 5, self.CANVAS_WIDTH - 10, top_y + 95), 255, 255)
red_draw.rectangle((215, top_y + 5, self.CANVAS_WIDTH - 10, top_y + 95), 0, 0)
if black_on_red:
Expand Down

0 comments on commit f77e925

Please sign in to comment.