transition animations added and sports tidied up

This commit is contained in:
Neythen
2021-06-22 20:05:56 +01:00
parent eb3d52a071
commit 2bee635511
32 changed files with 369 additions and 243 deletions

View File

@@ -451,12 +451,14 @@ if __name__ == '__main__':
finnhubAPIkey = "c24qddqad3ickpckgg80" #Finnhub
finnhubsandboxAPIkey = "sandbox_c24qddqad3ickpckgg8g" #Finnhub
stock_time = 2 #minutes
crypto_time = 10 #minutes
news_time = 30 #minutes
weather_time = 10 #minutes
# TODO: different update times for stocks, weather and news
finnhubClient = finnhub.Client(api_key=finnhubAPIkey)
max_stocks = 200
max_crypto = 100
iexAPIkey = 'pk_68ef6a15902c41f887f0b544a0ca17cf' #IEX
iexSandboxAPIkey = 'Tpk_0078dff413ef4f979137f7111452dc4b'
@@ -478,7 +480,7 @@ if __name__ == '__main__':
symbols, stock_info = readCSV('csv/tickers.csv', max_stocks)
updateStockPrices(symbols)
updateUpdate(NY_time)
coins, coin_info, unique_bases = readCryptoCSV('csv/crypto.csv', max_stocks)
coins, coin_info, unique_bases = readCryptoCSV('csv/crypto.csv', max_crypto)
weather_key = 'bd5d5096a5ba30bbcfb57ead42ab3fee'