Skip to content

Commit

Permalink
Bugfix for IAQ tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mkgeiger authored May 1, 2022
1 parent e7c1e93 commit e6e4a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weatherclock_rpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def update_staticiaq():
global icon_iaq

canvas.delete('staticiaq')
canvas.create_rectangle(staticiaq_x, staticiaq_y, staticiaq_x + 160, staticiaq_y + 160, fill="#202020", tags=('static iaq'))
canvas.create_rectangle(staticiaq_x, staticiaq_y, staticiaq_x + 160, staticiaq_y + 160, fill="#202020", tags=('staticiaq'))
if (mqtt_staticiaq != "---.-"):
if (float(mqtt_staticiaq) < 100.0):
icon_iaq = ImageTk.PhotoImage(Image.open("./Icons/IAQ_good.png"))
Expand All @@ -251,7 +251,7 @@ def update_staticiaq():
else:
icon_iaq = ImageTk.PhotoImage(Image.open("./Icons/IAQ_bad.png"))

canvas.create_image(staticiaq_x + 16, staticiaq_y + 16, anchor = NW, image = icon_iaq, tags=('static iaq'))
canvas.create_image(staticiaq_x + 16, staticiaq_y + 16, anchor = NW, image = icon_iaq, tags=('staticiaq'))

def update_pressure():
global icon_pre
Expand Down

0 comments on commit e6e4a80

Please sign in to comment.