Files
random-api-calls/pve-metrics/homelab-api.py
rgcosta 3f8e8f545a RC: (update) script to use threading library and a deque (a highly efficient rolling array).
By using Python's threading library and a deque (a highly efficient rolling array). A background thread will wake up every 1 second, take a snapshot, and push it into the array. When your website hits the API, it just grabs whatever is currently in the arrays.
2026-03-31 13:37:05 +00:00

4.5 KiB