professional display bug fix
This commit is contained in:
parent
e47b90b7ed
commit
8aa9061b65
@ -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");
|
||||
|
@ -283,7 +283,7 @@ class StockTicker():
|
||||
return kill
|
||||
|
||||
def updateMultiple(self, options):
|
||||
|
||||
print('options', options)
|
||||
for option in options:
|
||||
|
||||
|
||||
@ -447,8 +447,12 @@ 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()
|
||||
|
Loading…
Reference in New Issue
Block a user