mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
added hostname and ipaddress to stats
This commit is contained in:
parent
08f573aaa5
commit
123cef3b55
@ -5,6 +5,7 @@ import time
|
|||||||
import psutil
|
import psutil
|
||||||
import shutil
|
import shutil
|
||||||
import os
|
import os
|
||||||
|
import socket
|
||||||
|
|
||||||
from frigate.config import FrigateConfig
|
from frigate.config import FrigateConfig
|
||||||
from frigate.const import RECORD_DIR, CLIPS_DIR, CACHE_DIR
|
from frigate.const import RECORD_DIR, CLIPS_DIR, CACHE_DIR
|
||||||
@ -85,6 +86,8 @@ def stats_snapshot(stats_tracking):
|
|||||||
"version": VERSION,
|
"version": VERSION,
|
||||||
"storage": {},
|
"storage": {},
|
||||||
"temperatures": get_temperatures(),
|
"temperatures": get_temperatures(),
|
||||||
|
"hostname": socket.gethostname(),
|
||||||
|
"ipaddress": socket.gethostbyname(socket.gethostname()),
|
||||||
}
|
}
|
||||||
|
|
||||||
for path in [RECORD_DIR, CLIPS_DIR, CACHE_DIR, "/dev/shm"]:
|
for path in [RECORD_DIR, CLIPS_DIR, CACHE_DIR, "/dev/shm"]:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user