From 1b1f69835db64779dc282df0b1551ea4d08759ff Mon Sep 17 00:00:00 2001 From: vitrinekast Date: Sun, 17 Mar 2024 09:26:51 +0000 Subject: [PATCH] remove unused files --- grab-data.py | 18 ------------------ renders/output.html | 11 ----------- 2 files changed, 29 deletions(-) delete mode 100644 grab-data.py delete mode 100644 renders/output.html diff --git a/grab-data.py b/grab-data.py deleted file mode 100644 index fa9ae1a..0000000 --- a/grab-data.py +++ /dev/null @@ -1,18 +0,0 @@ -import json -import subprocess -from datetime import datetime - -## creating the JSON - -## grabbing the logged in users since yesterday -last_here = subprocess.run(["last", "-s", "today"], capture_output=True) -logged_in_today = subprocess.run(["sudo journalctl -S yesterday _COMM=systemd-logind -o json"], capture_output=True) -output = json.loads(last_here) - -print(output) - -today = datetime.today().strftime('%Y-%m-%d-%H:%M:%S') - -with open("data_" + today + ".json", 'w') as f: - print(output, file = f) - diff --git a/renders/output.html b/renders/output.html deleted file mode 100644 index 75a270a..0000000 --- a/renders/output.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - Document - - -

I am a HTML page fillllllled with data, such as the b'up 1 week, 6 hours, 32 minutes\n'

- -