From dd0c53bea03bb8cbac4db3d3b624f8fdc96cb11d Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Tue, 4 Feb 2020 20:12:52 -0600 Subject: [PATCH] Reverse bitcoin log output --- rootfs/standard/var/www/mynode/device_info.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootfs/standard/var/www/mynode/device_info.py b/rootfs/standard/var/www/mynode/device_info.py index 600fbeb5..a5f0ac52 100644 --- a/rootfs/standard/var/www/mynode/device_info.py +++ b/rootfs/standard/var/www/mynode/device_info.py @@ -128,6 +128,11 @@ def get_system_uptime(): uptime = uptime.strip() return uptime +def get_system_date(): + date = subprocess.check_output('date', shell=True) + date = date.strip() + return date + def get_device_serial(): serial = subprocess.check_output("cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2", shell=True) serial = serial.strip()