From f3098e6ba74d3f05465fe5f781c33866308c80a3 Mon Sep 17 00:00:00 2001 From: Fwinns <160972651+Fwinns@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:14:28 -0500 Subject: [PATCH 1/2] Update awtrix_uv_hum.yaml Slightly nicer looking V in vertical UV and value aligned with humidity --- blueprints/automation/awtrix_uv_hum.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blueprints/automation/awtrix_uv_hum.yaml b/blueprints/automation/awtrix_uv_hum.yaml index e655c45..3171b8f 100644 --- a/blueprints/automation/awtrix_uv_hum.yaml +++ b/blueprints/automation/awtrix_uv_hum.yaml @@ -167,9 +167,9 @@ action: {#- Calculate UV Offset -#} {%- if uv|float >= 10-%} - {%- set uv_offset = "23,1" -%} + {%- set uv_offset = "23,2" -%} {%- else %} - {%- set uv_offset = "25,1" -%} + {%- set uv_offset = "25,2" -%} {%- endif %} {% macro draw_uv() %} @@ -183,8 +183,8 @@ action: {%- endmacro -%} {%- macro draw_v(x,y,color) -%} - {"dl":[{{x}},{{y}},{{x+1}},{{y+2}},"{{color}}"]}, - {"dl":[{{x+2}},{{y}},{{x+1}},{{y+2}},"{{color}}"]} + {"dl":[{{x+1}},{{y+2}},{{x}},{{y}},"{{color}}"]}, + {"dl":[{{x+1}},{{y+2}},{{x+2}},{{y}},"{{color}}"]} {%- endmacro -%} { From 0d1255f1a0ddbae3979621d622f541b03be71a10 Mon Sep 17 00:00:00 2001 From: Fwinns <160972651+Fwinns@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:19:00 -0500 Subject: [PATCH 2/2] Update awtrix_uv_hum.yaml Updated UV value location based on forecast display --- blueprints/automation/awtrix_uv_hum.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/blueprints/automation/awtrix_uv_hum.yaml b/blueprints/automation/awtrix_uv_hum.yaml index 3171b8f..a13e86a 100644 --- a/blueprints/automation/awtrix_uv_hum.yaml +++ b/blueprints/automation/awtrix_uv_hum.yaml @@ -166,10 +166,19 @@ action: {#- Calculate UV Offset -#} + {%- if uv|float >= 10-%} - {%- set uv_offset = "23,2" -%} + {%- if show_forecast %} + {%- set uv_offset = "23,1" -%} + {%- else %} + {%- set uv_offset = "23,2" -%} + {%- endif %} {%- else %} - {%- set uv_offset = "25,2" -%} + {%- if show_forecast %} + {%- set uv_offset = "25,1" -%} + {%- else %} + {%- set uv_offset = "25,2" -%} + {%- endif %} {%- endif %} {% macro draw_uv() %}