setup config files script

This commit is contained in:
Neythen 2021-11-26 15:14:03 +00:00
parent 986ab7ffbe
commit 40986eaba3
13 changed files with 46 additions and 17 deletions

View File

@ -165,7 +165,7 @@ def updateCrypto():
#coin_list = coingecko_client.get_coins_list() #coin_list = coingecko_client.get_coins_list()
#json.dump(coin_list, open('csv/coin_list.json', 'w+')) #json.dump(coin_list, open('csv/coin_list.json', 'w+'))
f = open('csv/coin_list.json', 'r') f = open('coin_list.json', 'r')
coin_list = json.load(f) coin_list = json.load(f)
f.close() f.close()

1
coin_list.json Normal file

File diff suppressed because one or more lines are too long

0
csv/coin_list.json Normal file
View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +0,0 @@
list index out of range. file: stockTicker.py. line: 2459. type: <class 'IndexError'>
Traceback (most recent call last):
File "stockTicker.py", line 2459, in <module>
stock_ticker = StockTicker()
File "stockTicker.py", line 50, in __init__
line = settings.readlines()[1]
IndexError: list index out of range

View File

@ -1,3 +1,4 @@
sudo ./setup_config_files.sh
sudo apt-get install python3-pip sudo apt-get install python3-pip
pip3 install finnhub-python pip3 install finnhub-python
pip3 install flask pip3 install flask
@ -26,3 +27,5 @@ sudo apt-get remove bluez bluez-firmware pi-bluetooth triggerhappy pigpio
sudo apt autoremove sudo apt autoremove

50
setup_config_files.sh Normal file → Executable file

File diff suppressed because one or more lines are too long