Update stockTicker.py
This commit is contained in:
parent
09a0b8b2bf
commit
4e2859923c
@ -2075,11 +2075,8 @@ class StockTicker():
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
temp = current_weather['temp']
|
temp = self.convertTemp(current_weather['temp'], all_settings['temp'])
|
||||||
if all_settings['temp'] == 'kelvin':
|
|
||||||
temp = current_weather['temp'] + 273.15
|
|
||||||
elif all_settings['temp'] == 'fahrenheit':
|
|
||||||
temp = current_weather['temp']*9/5 + 32
|
|
||||||
|
|
||||||
temp_img = self.textImage(str("{0:.0f}".format(temp)), font)
|
temp_img = self.textImage(str("{0:.0f}".format(temp)), font)
|
||||||
img.paste(temp_img, (x_offset,3))
|
img.paste(temp_img, (x_offset,3))
|
||||||
|
Loading…
Reference in New Issue
Block a user