From 42ceab33635e62cba3d09f9d0ebcf0c84463633c Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 11 Apr 2023 19:27:50 +0800 Subject: [PATCH] Update stockTicker.py --- stockTicker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index af34977..bd0ec0d 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -5132,9 +5132,9 @@ class StockTicker(): image = Image.new('RGB', (128, 32)) hostname = str(os.popen('hostname').read()).strip() + ".local:1024" - ip_add = str(os.popen('hostname -I').read()).replace(" ", "").strip() + ":1024" mac_add = str(os.popen('cat /sys/class/net/wlan0/address').read()).replace(" ", "").strip() - + ip_add = str(os.popen('hostname -I').read()).replace(" ", "").strip() + ":1024" + hostname_img = self.textImage(hostname, font, r = 255, g = 255 , b = 255) ip_img = self.textImage(ip_add, font, r = 255, g = 255 , b = 255) mac_img = self.textImage(mac_add, font, r = 255, g = 255 , b = 255) @@ -5321,9 +5321,9 @@ class StockTicker(): self.displayGIF(start_GIF, delay = 0.02, repeat = False) #stock_ticker.setImage(start_image) - time.sleep(5) + time.sleep(10) self.resetMatrix() - time.sleep(4) + time.sleep(2) self.ip_viewer() time.sleep(2) self.resetMatrix()