upper case crypto
This commit is contained in:
parent
c4d0a61ec0
commit
5c0fb44766
Binary file not shown.
BIN
final1.ppm
BIN
final1.ppm
Binary file not shown.
@ -271,11 +271,11 @@ class StockTicker():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
logos_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos')
|
logos_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos')
|
||||||
print(os.path.join(logos_path, ticker + '.png'))
|
|
||||||
logo = Image.open(os.path.join(logos_path, ticker + '.png'))
|
logo = Image.open(os.path.join(logos_path, ticker + '.png'))
|
||||||
stitchedStock = self.stitchImage([logo,midFrame])
|
stitchedStock = self.stitchImage([logo,midFrame])
|
||||||
except:
|
except:
|
||||||
print('no logo for ' + ticker)
|
|
||||||
stitchedStock = midFrame
|
stitchedStock = midFrame
|
||||||
|
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ class StockTicker():
|
|||||||
info = self.coin_info[coin]
|
info = self.coin_info[coin]
|
||||||
|
|
||||||
change = float(info[1]) #TEXT
|
change = float(info[1]) #TEXT
|
||||||
ticker = coin #TEXT
|
ticker = coin.upper() #TEXT
|
||||||
current = '%.2f' % float(info[0]) #TEXT
|
current = '%.2f' % float(info[0]) #TEXT
|
||||||
|
|
||||||
|
|
||||||
@ -299,11 +299,11 @@ class StockTicker():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
logos_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos')
|
logos_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos')
|
||||||
print(os.path.join(logos_path, ticker + '.png'))
|
|
||||||
logo = Image.open(os.path.join(logos_path, ticker + '.png'))
|
logo = Image.open(os.path.join(logos_path, ticker + '.png'))
|
||||||
stitchedStock = self.stitchImage([logo,midFrame])
|
stitchedStock = self.stitchImage([logo,midFrame])
|
||||||
except:
|
except:
|
||||||
print('no logo for ' + ticker)
|
|
||||||
stitchedStock = midFrame
|
stitchedStock = midFrame
|
||||||
|
|
||||||
image_list.append(self.blank)
|
image_list.append(self.blank)
|
||||||
@ -316,6 +316,8 @@ class StockTicker():
|
|||||||
elif updated_img == 2:
|
elif updated_img == 2:
|
||||||
finalDisplayImage.save('final1.ppm')
|
finalDisplayImage.save('final1.ppm')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Send the final stitched image to the display for set amount of time
|
#Send the final stitched image to the display for set amount of time
|
||||||
def displayStocks(self):
|
def displayStocks(self):
|
||||||
#os.system("sudo ./demo -D1 final.ppm -t " + str(displayTime) +" -m "+ str(speedDisplay) +" --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=256")
|
#os.system("sudo ./demo -D1 final.ppm -t " + str(displayTime) +" -m "+ str(speedDisplay) +" --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=256")
|
||||||
@ -427,8 +429,8 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
|
|
||||||
#stock_ticker.displayText()
|
#stock_ticker.displayText()
|
||||||
stock_ticker.getFullStockImage(1)
|
#stock_ticker.getFullStockImage(1)
|
||||||
stock_ticker.displayStocks()
|
#stock_ticker.displayStocks()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user