From 019b50421198ee1be0f553ac5d891c4fae9d1c91 Mon Sep 17 00:00:00 2001 From: Gorden Mende Date: Tue, 3 Aug 2021 14:29:47 +0100 Subject: [PATCH] changed mnt path --- imgtank.py | 2 +- matrix.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/imgtank.py b/imgtank.py index 79e92e2..8ebba9e 100644 --- a/imgtank.py +++ b/imgtank.py @@ -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) diff --git a/matrix.py b/matrix.py index 36d7d34..a44a279 100644 --- a/matrix.py +++ b/matrix.py @@ -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() \ No newline at end of file +GPIO.cleanup()