changed mnt path

This commit is contained in:
2021-08-03 14:29:47 +01:00
parent 3721ad746d
commit 019b504211
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ def draw_scn(channel):
ssid = subprocess.check_output("iwgetid --raw | awk '{printf \"WiFi:%s\", $0}'", shell = True)
freq = subprocess.check_output("iwgetid --freq | awk '{gsub(/Frequency:/,\"\"); printf \" %.1f %s\", $2,$3}'", shell = True)
LINE1 = subprocess.check_output("hostname -I | awk '{printf \"IP: %s\", $1}'", shell = True )
LINE2 = subprocess.check_output("df -h /mnt/usb | awk '$NF==\"/mnt/usb\"{printf \"Disk:%s/%s %s\", $3,$2,$5}'", shell = True )
LINE2 = subprocess.check_output("df -h /data | awk '$NF==\"/data\"{printf \"Disk:%s/%s %s\", $3,$2,$5}'", shell = True )
LINE3 = ssid + freq
LINE4 = subprocess.check_output("cat /sys/class/thermal/thermal_zone0/temp | awk '{printf \"Temp:%.1fC\", $1/1000}'", shell = True )
draw.rectangle((0,61,84,63), outline=255, fill=1)
+3 -1
View File
@@ -26,6 +26,8 @@ RST_PIN = 25 #Reset
CS_PIN = 8
DC_PIN = 24
GPIO.setwarnings(False)
serial = spi(device=0, port=0, bus_speed_hz = 8000000, transfer_size = 4096, gpio_DC = DC_PIN, gpio_RST = RST_PIN)
device_used = sh1106(serial, rotate=2) #sh1106
@@ -82,4 +84,4 @@ if __name__ == "__main__":
pass
GPIO.cleanup()
GPIO.cleanup()