diff --git a/csv/last_update.csv b/csv/last_update.csv index 94f2a06..8d1d4d6 100644 --- a/csv/last_update.csv +++ b/csv/last_update.csv @@ -1 +1 @@ -16/06/2021 14:19:52 +17/06/2021 13:21:55 diff --git a/csv/tickers.csv b/csv/tickers.csv index 3cd5bc9..76de664 100644 --- a/csv/tickers.csv +++ b/csv/tickers.csv @@ -1,4 +1,4 @@ name,current,opening -MSFT,254.9199,259.4 -NFLX,486.83,495 -GOOG,2494.04,2524.95 +MSFT,260.61,256.065 +NFLX,501.255,490.25 +GOOG,2528.78,2510.46 diff --git a/final.ppm b/final.ppm index 093470a..e42c575 100755 Binary files a/final.ppm and b/final.ppm differ diff --git a/league.ppm b/league.ppm index 7999cd4..3047778 100755 Binary files a/league.ppm and b/league.ppm differ diff --git a/stockTicker.py b/stockTicker.py index dd6f4e3..072d603 100644 --- a/stockTicker.py +++ b/stockTicker.py @@ -588,7 +588,7 @@ class StockTicker(): def getLeagueImage(self): img = Image.new('RGB', (10000, 32)) - league_info = json.load(open('/home/pi/Desktop/stock_ticker/csv/sports/premier_league/past_games.json', 'r')) + league_info = json.load(open('csv/sports/premier_league/past_games.json', 'r')) print(league_info[0].keys()) small_font = ImageFont.load("./fonts/5x7.pil") large_font = ImageFont.load("./fonts/10x20.pil") @@ -617,7 +617,7 @@ class StockTicker(): print(home_team) try: - away_logo = Image.open('/home/pi/Desktop/stock_ticker/logos/sports/premier_league/' + away_team +'.png') + away_logo = Image.open('logos/sports/premier_league/' + away_team +'.png') except: away_logo = self.textImage(away_team.replace(' ', '\n'), small_font, r = 255, g = 255, b = 255) @@ -654,7 +654,7 @@ class StockTicker(): def getTeamsImage(self): img = Image.new('RGB', (10000, 32)) - team_info = json.load(open('/home/pi/Desktop/stock_ticker/csv/sports/premier_league/team_stats.json', 'r')) + team_info = json.load(open('csv/sports/premier_league/team_stats.json', 'r')) small_font = ImageFont.load("./fonts/5x7.pil") med_font = ImageFont.load("./fonts/7x14.pil") @@ -664,7 +664,7 @@ class StockTicker(): x_offset = 0 for team in team_info: try: - logo = Image.open('/home/pi/Desktop/stock_ticker/logos/sports/premier_league/' + team['name'] +'.png') + logo = Image.open('logos/sports/premier_league/' + team['name'] +'.png') img.paste(logo, (x_offset, 0)) x_offset += logo.size[0] + 2 except: diff --git a/teams.ppm b/teams.ppm index f8fb578..b2fec30 100755 Binary files a/teams.ppm and b/teams.ppm differ diff --git a/weather.ppm b/weather.ppm index 94a2f70..bbec94f 100755 Binary files a/weather.ppm and b/weather.ppm differ