bettwaage-sidequest #2

Merged
m.giller merged 38 commits from bettwaage-sidequest into master 2024-06-07 23:38:56 +02:00
Showing only changes of commit abd9ec221c - Show all commits

View file

@ -98,7 +98,9 @@ def check_for_change():
# Make sure there is a bed_weight
global empty_weight
if empty_weight is None:
clusters = get_clusters([d["total"] for d in local_history])
clusters = get_clusters(
[d["total"] for d in local_history], min_noticable_difference
)
empty_weight = min([median(cluster) for cluster in clusters.values()])
logging.info(f"Empty weight: {empty_weight}")