mirror of
https://github.com/RunLit/Bambu-Run.git
synced 2026-08-22 06:44:19 +01:00
Compare commits
2 Commits
v0.1.11
...
40ec163134
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40ec163134 | ||
|
|
61cfd3f5a9 |
@@ -28,7 +28,13 @@ _METRICS_API_FIELDS = [
|
|||||||
'gcode_state', 'print_type', 'subtask_name',
|
'gcode_state', 'print_type', 'subtask_name',
|
||||||
'external_spool',
|
'external_spool',
|
||||||
]
|
]
|
||||||
_MAX_CHART_POINTS = 3000
|
# 24h at the collector's 30s cadence is ~2800 readings, and every one of them
|
||||||
|
# also drags in ~9 FilamentSnapshot rows — that snapshot fetch, not the metrics
|
||||||
|
# query, is what dominated the dashboard's load time (measured: 2.09s of context
|
||||||
|
# building and a 410 KB payload at 3000). 1440 caps the series at roughly one
|
||||||
|
# point per minute over a day, which is finer than any chart can resolve on
|
||||||
|
# screen, and cuts both the server time and the payload by ~4x.
|
||||||
|
_MAX_CHART_POINTS = 1440
|
||||||
# Fallback window for requests that don't specify a full date range. Without it a
|
# Fallback window for requests that don't specify a full date range. Without it a
|
||||||
# bare API call scans the entire metrics table.
|
# bare API call scans the entire metrics table.
|
||||||
_DEFAULT_WINDOW = timedelta(hours=24)
|
_DEFAULT_WINDOW = timedelta(hours=24)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "bambu-run"
|
name = "bambu-run"
|
||||||
version = "0.1.11"
|
version = "0.1.12"
|
||||||
description = "Django reusable app for Bambu Lab 3D printer monitoring and filament inventory management"
|
description = "Django reusable app for Bambu Lab 3D printer monitoring and filament inventory management"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = {text = "MIT"}
|
license = {text = "MIT"}
|
||||||
|
|||||||
Reference in New Issue
Block a user