diff --git a/blueprints/automation/awtrix_uv_hum.yaml b/blueprints/automation/awtrix_uv_hum.yaml index e655c45..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,1" -%} + {%- if show_forecast %} + {%- set uv_offset = "23,1" -%} + {%- else %} + {%- set uv_offset = "23,2" -%} + {%- endif %} {%- else %} - {%- set uv_offset = "25,1" -%} + {%- if show_forecast %} + {%- set uv_offset = "25,1" -%} + {%- else %} + {%- set uv_offset = "25,2" -%} + {%- endif %} {%- endif %} {% macro draw_uv() %} @@ -183,8 +192,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 -%} {