Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions blueprints/automation/awtrix_uv_hum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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() %}
Expand All @@ -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 -%}

{
Expand Down