This commit is contained in:
Neythen 2021-06-21 17:41:18 +01:00
parent 1affe0f330
commit eb3d52a071
9 changed files with 11 additions and 19 deletions

View File

@ -1,3 +1,3 @@
symbol,name,base,current,24hr change symbol,name,base,current,24hr change
BTC,bitcoin,usd,32687,-5.959078724239707 BTC,bitcoin,usd,32709,-5.776193166295658
ETH,ethereum,gbp,1419.67,-7.467260572537722 ETH,ethereum,gbp,1419.48,-7.468105883111548

1 symbol name base current 24hr change
2 BTC bitcoin usd 32687 32709 -5.959078724239707 -5.776193166295658
3 ETH ethereum gbp 1419.67 1419.48 -7.467260572537722 -7.468105883111548

View File

@ -1 +1 @@
{"main_weather": "Clouds", "description": "overcast clouds", "temp": 29.9, "min_temp": 27.98, "max_temp": 30.74, "feels_like": 36.9, "humidity": 88, "clouds": 100, "wind_speed": 0.45, "wind_direction": 257, "visibility": 10000, "uv": 0, "rain_chance": 0.74} {"main_weather": "Clouds", "description": "overcast clouds", "temp": 29.78, "min_temp": 27.98, "max_temp": 30.21, "feels_like": 36.78, "humidity": 88, "clouds": 100, "wind_speed": 0.89, "wind_direction": 278, "visibility": 10000, "uv": 0, "rain_chance": 0.74}

View File

@ -1 +1 @@
21/06/2021 12:36:08 21/06/2021 12:41:07

1 21/06/2021 12:36:08 21/06/2021 12:41:07

View File

@ -1,4 +1,4 @@
name,current,opening name,current,opening
MSFT,262.3758,259.82 MSFT,262.3,259.82
NFLX,494.8007,501.64 NFLX,495.166,501.64
GOOG,2530.35,2514.8 GOOG,2529.965,2514.8

1 name current opening
2 MSFT 262.3758 262.3 259.82
3 NFLX 494.8007 495.166 501.64
4 GOOG 2530.35 2529.965 2514.8

BIN
final.ppm

Binary file not shown.

BIN
full.ppm

Binary file not shown.

View File

@ -1,9 +0,0 @@
'Sheffield United'. file: stockTicker.py. line: 1402. type: <class 'KeyError'>
Traceback (most recent call last):
File "stockTicker.py", line 1402, in <module>
stock_ticker.process_msg('P')
File "stockTicker.py", line 1361, in process_msg
img = self.getLeagueImage('premier_league', 'past')
File "stockTicker.py", line 680, in getLeagueImage
h_colour = mcolors.to_rgb(sports_info[home_team]['colour'].replace(' ', ''))
KeyError: 'Sheffield United'

View File

@ -37,7 +37,7 @@ ALLOWED_EXTENSIONS = {'csv', 'png'}
#time.sleep(10) # let api calls finish #time.sleep(10) # let api calls finish
ticker = pexpect.spawn("sudo -E python3 stockTicker.py") ticker = pexpect.spawn("sudo -E python3 stockTicker.py")
ticker.sendline('S') # run by default ticker.sendline('A') # run by default
#stock_ticker = StockTicker() #stock_ticker = StockTicker()
def allowed_file(filename): def allowed_file(filename):

View File

@ -599,7 +599,7 @@ class StockTicker():
sports_info = self.readSportsCSV(league) sports_info = self.readSportsCSV(league)
print(sports_info)
buff_size = 25 buff_size = 25
@ -1398,6 +1398,7 @@ if __name__ == '__main__':
with open('log.txt', "w") as log: with open('log.txt', "w") as log:
try: try:
stock_ticker = StockTicker()