lohivol basic setup

This commit is contained in:
Justin 2023-08-03 19:24:42 +08:00 committed by GitHub
parent 206fd96dcd
commit 7874186761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1964,6 +1964,18 @@ class StockTicker():
else:
stitchedStock = midFrame
try:
if all_stocks_settings['lohivol']:
font = ImageFont.load("./fonts/5x8.pil")
try:
day_low = '%.2f' % float(info['day_low'])
day_high = '%.2f' % float(info['day_high'])
volume = info['volume']
except:
pass
except:
pass
try:
if all_stocks_settings['prepost']:
font = ImageFont.load("./fonts/6x13.pil")
@ -2128,7 +2140,14 @@ class StockTicker():
pass
image_list.append(stitchedStock)
try:
if all_stocks_settings['lohivol']:
try:
image_list.append(lohivol_img)
except:
pass
except:
pass
try:
if all_stocks_settings['prepost']:
try:
@ -2137,7 +2156,6 @@ class StockTicker():
pass
except:
pass
try:
if all_stocks_settings['chart'] and (symbol in portfolio_settings):
try: