|
|
@ -57,9 +57,8 @@ ip_address_show = subprocess.run(["ip", "addr", "show", "end0"], check=True, cap
|
|
|
|
ip_address = run_command(['awk', '$1 == "inet" {gsub(/\/.*$/, "", $2); print $2}' ], based=ip_address_show.stdout)
|
|
|
|
ip_address = run_command(['awk', '$1 == "inet" {gsub(/\/.*$/, "", $2); print $2}' ], based=ip_address_show.stdout)
|
|
|
|
|
|
|
|
|
|
|
|
print("start running the service commands, this sometimes takes longer");
|
|
|
|
print("start running the service commands, this sometimes takes longer");
|
|
|
|
logins_today_log = subprocess.run(["sudo", "journalctl","_COMM=systemd-logind","-r" , "--output-fields=MESSAGE", "-S", "today", "-g", "'New session'" ], capture_output=True)
|
|
|
|
logins_today_log = subprocess.run(["sudo", "journalctl","_COMM=systemd-logind", "-S", "today", "-g", "New session" ], check=True, capture_output=True)
|
|
|
|
print(logins_today_log)
|
|
|
|
logins_today = run_command(['grep', '-v', "Boot"], based=logins_today_log.stdout).splitlines()
|
|
|
|
logins_today = run_command(['grep', '-v', "'Boot'"], based=logins_today_log.stdout)
|
|
|
|
|
|
|
|
kitchen_services = run_command(["sudo", "journalctl", "-S", "today", "-u", "kitchen-stove.service", "-u", "kitchen-bin.service", "-u", "kitchen-fridge.service", "-r", "-n"]).splitlines()
|
|
|
|
kitchen_services = run_command(["sudo", "journalctl", "-S", "today", "-u", "kitchen-stove.service", "-u", "kitchen-bin.service", "-u", "kitchen-fridge.service", "-r", "-n"]).splitlines()
|
|
|
|
|
|
|
|
|
|
|
|
# loading the jinja template environment
|
|
|
|
# loading the jinja template environment
|
|
|
|