From 123cef3b55407701d8ea637a0377d785f75a4a95 Mon Sep 17 00:00:00 2001 From: Scott Hanson Date: Sun, 27 Feb 2022 17:00:36 -0500 Subject: [PATCH] added hostname and ipaddress to stats --- frigate/stats.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frigate/stats.py b/frigate/stats.py index bc92907cd..562f7f293 100644 --- a/frigate/stats.py +++ b/frigate/stats.py @@ -5,6 +5,7 @@ import time import psutil import shutil import os +import socket from frigate.config import FrigateConfig from frigate.const import RECORD_DIR, CLIPS_DIR, CACHE_DIR @@ -85,6 +86,8 @@ def stats_snapshot(stats_tracking): "version": VERSION, "storage": {}, "temperatures": get_temperatures(), + "hostname": socket.gethostname(), + "ipaddress": socket.gethostbyname(socket.gethostname()), } for path in [RECORD_DIR, CLIPS_DIR, CACHE_DIR, "/dev/shm"]: