From 986ab7ffbeaf046259ed58335b1cdd72f390a155 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 24 Nov 2021 20:54:03 +0000 Subject: [PATCH] started blank config file generation --- log.txt | 7 +++++++ setup.sh | 30 ------------------------------ setup_config_files.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 30 deletions(-) create mode 100644 setup_config_files.sh diff --git a/log.txt b/log.txt index e69de29..0c3eb33 100755 --- a/log.txt +++ b/log.txt @@ -0,0 +1,7 @@ +list index out of range. file: stockTicker.py. line: 2459. type: + Traceback (most recent call last): + File "stockTicker.py", line 2459, in + stock_ticker = StockTicker() + File "stockTicker.py", line 50, in __init__ + line = settings.readlines()[1] +IndexError: list index out of range diff --git a/setup.sh b/setup.sh index 3543c80..fce6b32 100755 --- a/setup.sh +++ b/setup.sh @@ -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 diff --git a/setup_config_files.sh b/setup_config_files.sh new file mode 100644 index 0000000..266458a --- /dev/null +++ b/setup_config_files.sh @@ -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