bug fixed
This commit is contained in:
parent
07c672bf64
commit
5d3dc0d832
@ -0,0 +1 @@
|
||||
{"stocks": "08/07/2021 15:27:24", "crypto": "08/07/2021 15:27:24", "news": "08/07/2021 15:27:24", "weather": "08/07/2021 15:27:24", "forex": "08/07/2021 21:27:24", "sports": "08/07/2021 15:27:24"}
|
Binary file not shown.
@ -57,6 +57,9 @@ class StockTicker():
|
||||
options.gpio_slowdown = 3
|
||||
self.matrix = RGBMatrix(options = options)
|
||||
self.points = True # display crypto change in points or percent
|
||||
self.functions = {'stocks': self.getStockImage, 'crypto': self.getCryptoImage, 'forex': self.getForexImage,
|
||||
'daily_weather':self.getDailyWeatherImage, 'today_weather': self.getTodayWeatherImage, 'league_table': self.getLeagueTableImage,
|
||||
'league_games': self.getLeagueImage, 'news':self.getNewsImage, 'text': self.getUserText, 'display_image': self.getUserImage, 'display_gif':self.getUserGIF} #put this somewhere else
|
||||
|
||||
|
||||
def openImage(self, image_file):
|
||||
@ -1963,9 +1966,7 @@ class StockTicker():
|
||||
|
||||
elif msg == 'A': #everything
|
||||
|
||||
self.functions = {'stocks': self.getStockImage, 'crypto': self.getCryptoImage, 'forex': self.getForexImage,
|
||||
'daily_weather':self.getDailyWeatherImage, 'today_weather': self.getTodayWeatherImage, 'league_table': self.getLeagueTableImage,
|
||||
'league_games': self.getLeagueImage, 'news':self.getNewsImage, 'text': self.getUserText, 'display_image': self.getUserImage, 'display_gif':self.getUserGIF} #put this somewhere else
|
||||
|
||||
|
||||
userSettings = ['display_gif', 'text', 'display_image', 'stocks', 'crypto', 'forex', 'today_weather', 'daily_weather', 'league_table', 'league_games', 'news'] # these wil be read from csv, just for demo
|
||||
#userSettings = [ 'daily_weather']
|
||||
@ -2014,7 +2015,7 @@ if __name__ == '__main__':
|
||||
'''
|
||||
|
||||
#
|
||||
#stock_ticker.process_msg('N')
|
||||
#stock_ticker.process_msg('S')
|
||||
#stock_ticker.process_msg('G')
|
||||
#stock_ticker.process_msg('f')
|
||||
#stock_ticker.process_msg('W')
|
||||
|
Loading…
Reference in New Issue
Block a user