started blank config file generation

This commit is contained in:
Your Name 2021-11-24 20:54:03 +00:00
parent 0191c185b0
commit 986ab7ffbe
3 changed files with 48 additions and 30 deletions

View File

@ -0,0 +1,7 @@
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

@ -26,33 +26,3 @@ sudo apt-get remove bluez bluez-firmware pi-bluetooth triggerhappy pigpio
sudo apt autoremove
cd ..
mkdir csv
cd csv
touch coin_list.json last_update.csv scroll_text.csv crypto_settings.json last_updates.json settings.csv
touch currency.json league_tables.json
mkdir sports
touch current_weather.json league.txt stocks_settings.json daily_weather.json live_games.json table_league.txt
touch display_settings.json message_settings.json upcoming_games.json forex_settings.json multiple.csv weather_location.txt
touch GIF_settings.json news_settings.json image_settings.json past_games.json
cd sports
mkdir NBA
mkdir NFL
mkdir NHL
mkdir 'Premier League'
cd NBA
touch future_games.json live_games.json past_games.json team_info.csv team_stats.json
cd ..
cd NFL
touch future_games.json live_games.json past_games.json team_info.csv team_stats.json
cd ..
cd NHL
touch future_games.json live_games.json past_games.json team_info.csv team_stats.json
cd ..
cd 'Premier League'
touch future_games.json live_games.json past_games.json team_info.csv team_stats.json

41
setup_config_files.sh Normal file
View File

@ -0,0 +1,41 @@
rm -rf csv
mkdir csv
cd csv
touch coin_list.json last_update.csv scroll_text.csv crypto_settings.json last_updates.json settings.csv
touch currency.json league_tables.json
mkdir sports
touch current_weather.json league.txt stocks_settings.json daily_weather.json live_games.json table_league.txt
touch display_settings.json message_settings.json upcoming_games.json forex_settings.json multiple.csv weather_location.txt
touch GIF_settings.json news_settings.json image_settings.json past_games.json
filenames="coin_list.json last_update.csv scroll_text.csv crypto_settings.json last_updates.json settings.csv currency.json league_tables.json current_weather.json league.t$
for file in $filenames
do
echo $file
echo [] >> $file
done
echo [\"Standard\", []] >> display_settings.json
cd sports
mkdir NBA
mkdir NFL
mkdir NHL
mkdir 'Premier League'
cd NBA
touch future_games.json live_games.json past_games.json team_info.csv team_stats.json
cd ..
cd NFL
touch future_games.json live_games.json past_games.json team_info.csv team_stats.json
cd ..
cd NHL
touch future_games.json live_games.json past_games.json team_info.csv team_stats.json
cd ..
cd 'Premier League'
touch future_games.json live_games.json past_games.json team_info.csv team_stats.json