Update stockTicker.py

This commit is contained in:
Justin 2023-04-11 19:27:50 +08:00 committed by GitHub
parent bd6281de8f
commit 42ceab3363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()