From 787418676112a0e5954de8ab4d274053e07289cb Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 3 Aug 2023 19:24:42 +0800 Subject: [PATCH] lohivol basic setup --- stockTicker.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index 85eabad..04837b9 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -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: