diff --git a/csv/last_updates.json b/csv/last_updates.json index e69de29..2e74a54 100644 --- a/csv/last_updates.json +++ b/csv/last_updates.json @@ -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"} \ No newline at end of file diff --git a/display_images/news.ppm b/display_images/news.ppm index 0050757..13c983b 100755 Binary files a/display_images/news.ppm and b/display_images/news.ppm differ diff --git a/stockTicker.py b/stockTicker.py index 0d941a8..d3bdca9 100644 --- a/stockTicker.py +++ b/stockTicker.py @@ -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')