From 8aa9061b658ab7ae65aa134295dab7b4145b58e0 Mon Sep 17 00:00:00 2001 From: Neythen Date: Sat, 4 Dec 2021 14:52:34 +0000 Subject: [PATCH] professional display bug fix --- static/app.js | 4 ++-- stockTicker.py | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/static/app.js b/static/app.js index 3c9e56b..fd8182f 100644 --- a/static/app.js +++ b/static/app.js @@ -1360,8 +1360,8 @@ window.onload = () => { (hostNameInput.value = getHostName); getBrightness && (brightnessInput.value = getBrightness); - getWifiSsid && (wifiSsidInput.value = getWifiSsid); - getWifiPass && (wifiPassInput.value = getWifiPass); + //getWifiSsid && (wifiSsidInput.value = getWifiSsid); + //getWifiPass && (wifiPassInput.value = getWifiPass); getCountryCode && (countryCodeInput.value = getCountryCode); let getDispayFormat = localStorage.getItem("displayFormat"); diff --git a/stockTicker.py b/stockTicker.py index 8e1359f..5009c0d 100644 --- a/stockTicker.py +++ b/stockTicker.py @@ -283,7 +283,7 @@ class StockTicker(): return kill def updateMultiple(self, options): - + print('options', options) for option in options: @@ -447,7 +447,11 @@ class StockTicker(): self.double_buffer = self.matrix.CreateFrameCanvas() update_process = Process(target = self.updateMultiple, args = ([top[(i1+1) % len(top)]+ ' Prof', bottom[(i2+1) % len(bottom)]+ ' Prof' ],)) + update_process.start() + + self.updateMultiple([top[i1 % len(top)]+ ' Prof', bottom[i2 % len(bottom)]+ ' Prof' ]) + image1 = self.openImage('./display_images/' + top[i1 % len(top)] +' Prof.ppm') image1 = image1.convert('RGB') @@ -507,7 +511,7 @@ class StockTicker(): offset_x1 = 0 update_process.join() - update_process = Process(target = self.updateMultiple, args = ([top[i1 % len(top)]+ ' Prof'],)) + update_process = Process(target = self.updateMultiple, args = ([top[(i1+1) % len(top)]+ ' Prof'],)) update_process.start() image1 = self.openImage('./display_images/' + top[i1 % len(top)] +' Prof.ppm') image1 = image1.convert('RGB') @@ -530,7 +534,7 @@ class StockTicker(): update_process.join() update_process = Process(target = self.updateMultiple, args = ([bottom[i2 % len(bottom)]+ ' Prof'],)) update_process.start() - image2 = self.openImage('./display_images/' + bottom[i2 % len(bottom)] +' Prof.ppm') + image2 = self.openImage('./display_images/' + bottom[(i2+1) % len(bottom)] +' Prof.ppm') image2 = image2.convert('RGB') img_width2, img_height2 = image2.size @@ -979,11 +983,6 @@ class StockTicker(): ticker, base = cb.split(',') current = coin_info[cb]["current"] change = coin_info[cb]["24hr_change"] - - - - - arrow, change = self.getArrow(change, professional=True) if all_crypto_settings["point"]: @@ -2467,13 +2466,14 @@ if __name__ == '__main__': stock_ticker.resetMatrix() #stock_ticker.getLeagueImage('NHL', 'future') - stock_ticker.getCryptoImage() + #stock_ticker.getCryptoImage() # #stock_ticker.process_msg('G') #stock_ticker.process_msg('f') #stock_ticker.process_msg('W') + stock_ticker.process_msg('A') while True: msg = getInput()