minor fixes
This commit is contained in:
parent
4ba23566bc
commit
e8ce635312
@ -839,8 +839,8 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(str(e))
|
||||||
raise e
|
|
||||||
exc_type, exc_obj, exc_tb = sys.exc_info()
|
exc_type, exc_obj, exc_tb = sys.exc_info()
|
||||||
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
|
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
|
||||||
logf.write(str(e))
|
logf.write(str(e))
|
||||||
|
11
server.py
11
server.py
@ -131,8 +131,15 @@ def index():
|
|||||||
GIF_settings = json.load(open('csv/GIF_settings.json', 'r'))
|
GIF_settings = json.load(open('csv/GIF_settings.json', 'r'))
|
||||||
message_settings = json.load(open('csv/message_settings.json', 'r'))
|
message_settings = json.load(open('csv/message_settings.json', 'r'))
|
||||||
general_settings = json.load(open('csv/general_settings.json', 'r'))
|
general_settings = json.load(open('csv/general_settings.json', 'r'))
|
||||||
api_keys = api_key2[1]
|
try: # incase this doesnt exist
|
||||||
wifi_SSID = wifiline[5][6:].replace('"','')
|
api_keys = api_key2[1]
|
||||||
|
except:
|
||||||
|
api_keys = ''
|
||||||
|
|
||||||
|
try:
|
||||||
|
wifi_SSID = wifiline[5][6:].replace('"','')
|
||||||
|
except:
|
||||||
|
wifi_SSID = ''
|
||||||
|
|
||||||
|
|
||||||
templateData = {
|
templateData = {
|
||||||
|
@ -21,7 +21,7 @@ filenames="crypto_settings.json last_updates.json league_tables.json current_wea
|
|||||||
|
|
||||||
echo '{"update_available": false, "first_boot": true}' >> system_info.json
|
echo '{"update_available": false, "first_boot": true}' >> system_info.json
|
||||||
echo [\"Standard\", [[\"Stocks\", \"Crypto\", \"Forex\"]]] >> display_settings.json
|
echo [\"Standard\", [[\"Stocks\", \"Crypto\", \"Forex\"]]] >> display_settings.json
|
||||||
echo '{"stocks": {"time": "06/03/2022 04:12:09", "force": true}, "crypto": {"time": "06/03/2022 04:10:39", "force": true}, "news": {"time": "06/03/2022 04:07:09", "force": true}, "weather": {"time": "06/03/2022 04:08:20", "force": true}, "forex": {"time": "06/03/2022 03:54:02", "force": true}, "sports": {"time": "06/03/2022 04:10:09", "force": true}}' >> last_updates.json
|
echo '{"stocks": {"time": "07/03/2022 12:33:06", "force": true}, "crypto": {"time": "07/03/2022 12:28:51", "force": true}, "news": {"time": "07/03/2022 12:28:51", "force": true}, "weather": {"time": "07/03/2022 12:28:51", "force": true}, "forex": {"time": "07/03/2022 12:28:51", "force": true}, "sports_l": {"time": "07/03/2022 12:32:46", "force": true}, "sports_p": {"time": "07/03/2022 12:32:26", "force": true}, "sports_u": {"time": "07/03/2022 12:31:55", "force": true}, "sports_t": {"time": "07/03/2022 12:32:56", "force": true}}' >> last_updates.json
|
||||||
|
|
||||||
|
|
||||||
echo '{"feature": "Stocks", "speed": "medium","speed2": "medium", "animation": "down", "percent": false, "point": true, "logos": true, "chart": false, "title": true, "symbols": {"ETH,USD": {"current": "2629.32", "24hr_change": "-27.6432", "percent_change": "-1.04"}, "BTC,USD": {"current": "38161.00", "24hr_change": "-50.8386", "percent_change": "-0.13"}, "BNB,USD": {"current": "372.57", "24hr_change": "0.4140", "percent_change": "0.11"}, "ADA,BTC": {"current": "0.0000", "24hr_change": "-0.0000", "percent_change": "-3.74"}}}' >> crypto_settings.json
|
echo '{"feature": "Stocks", "speed": "medium","speed2": "medium", "animation": "down", "percent": false, "point": true, "logos": true, "chart": false, "title": true, "symbols": {"ETH,USD": {"current": "2629.32", "24hr_change": "-27.6432", "percent_change": "-1.04"}, "BTC,USD": {"current": "38161.00", "24hr_change": "-50.8386", "percent_change": "-0.13"}, "BNB,USD": {"current": "372.57", "24hr_change": "0.4140", "percent_change": "0.11"}, "ADA,BTC": {"current": "0.0000", "24hr_change": "-0.0000", "percent_change": "-3.74"}}}' >> crypto_settings.json
|
||||||
|
@ -2777,7 +2777,7 @@ if __name__ == '__main__':
|
|||||||
msg = getInput()
|
msg = getInput()
|
||||||
stock_ticker.process_msg(msg)
|
stock_ticker.process_msg(msg)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(str(e))
|
||||||
|
|
||||||
exc_type, exc_obj, exc_tb = sys.exc_info()
|
exc_type, exc_obj, exc_tb = sys.exc_info()
|
||||||
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
|
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
|
||||||
|
@ -2865,7 +2865,7 @@
|
|||||||
|
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
|
|
||||||
<!-- <button id="weather-api-btn" class="btn set-btn">Add</button> -->
|
<button id="weather-api-btn" class="btn set-btn">Add</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user