Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
fixed issues with wxAlert board.
Browse files Browse the repository at this point in the history
  • Loading branch information
riffnshred committed Aug 9, 2020
1 parent ecf1690 commit 8f51e11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/boards/wxAlert.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def wxDrawAlerts(self):
self.matrix.clear()
#offscreen_canvas = self.matrix.CreateFrameCanvas()

if self.data.config.weather_alert_feed.lower() == "nws":
if self.data.config.wxalert_alert_feed.lower() == "nws":
top_title = self.data.wx_alerts[4]
else:
top_title = "Weather"
Expand Down Expand Up @@ -88,7 +88,7 @@ def wxDrawAlerts(self):
)

elif self.data.wx_alerts[1] == "watch":
if self.data.config.weather_alert_feed.lower() == "nws":
if self.data.config.wxalert_alert_feed.lower() == "nws":
self.matrix.draw.rectangle([0, 0, self.matrix.width, 8], fill=(255,165,0)) # watch
self.matrix.draw.rectangle([0, self.matrix.height - 8, self.matrix.width, self.matrix.height], fill=(255,165,0)) # watch
else:
Expand All @@ -105,7 +105,7 @@ def wxDrawAlerts(self):
)
else:
if self.data.wx_alerts[1] == "advisory":
if self.data.config.weather_alert_feed.lower() == "nws":
if self.data.config.wxalert_alert_feed.lower() == "nws":
self.matrix.draw.rectangle([0, 0, self.matrix.width,8], fill=(255,255,0)) #advisory
self.matrix.draw.rectangle([0, self.matrix.height - 8, self.matrix.width, self.matrix.height], fill=(255,255,0)) #advisory
else:
Expand Down

0 comments on commit 8f51e11

Please sign in to comment.