You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix speedtest color: use Fritz!Box connection_info as fallback for booked speed
When booked_download/booked_upload settings are not configured (default 0),
fall back to connection_info.max_downstream_kbps/max_upstream_kbps from
Fritz!Box. This ensures the speedtest card shows correct colors without
requiring manual settings entry.
{%seteff_booked_dl = booked_downloadif(booked_downloadandbooked_download> 0) else ((connection_info.max_downstream_kbps // 1000) if connection_info and connection_info.max_downstream_kbps else 0) %}
1015
+
{% set eff_booked_ul = booked_upload if (booked_upload and booked_upload > 0) else ((connection_info.max_upstream_kbps // 1000) if connection_info and connection_info.max_upstream_kbps else 0) %}
1016
+
{% if eff_booked_dl > 0 %}
1017
+
{% set dl_ratio = speedtest_latest.download_mbps / eff_booked_dl %}
1015
1018
{% if dl_ratio >= 0.8 %}
1016
1019
{% set speed_health = 'health-good' %}
1017
1020
{% set dl_val_class = 'val-good' %}
@@ -1026,8 +1029,8 @@
1026
1029
{% set speed_health = 'health-good' %}
1027
1030
{% set dl_val_class = 'val-good' %}
1028
1031
{% endif %}
1029
-
{% if booked_upload and booked_upload> 0 %}
1030
-
{% set ul_ratio = speedtest_latest.upload_mbps / booked_upload %}
1032
+
{% if eff_booked_ul> 0 %}
1033
+
{% set ul_ratio = speedtest_latest.upload_mbps / eff_booked_ul %}
0 commit comments