init
This commit is contained in:
commit
0500266b92
21 changed files with 1766 additions and 0 deletions
12
templates/card.txt
Normal file
12
templates/card.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{% set w = int((len(weather.play_condition.message) - len(datetime.fromtimestamp(weather.dt).strftime(format = '%A %I:%M %p')))-1) %}
|
||||
╭─ {{ datetime.fromtimestamp(weather.dt).strftime(format = '%A %I:%M %p')}} {{ '─'*w }}╮
|
||||
│ {%if color %}{{ weather.play_condition.ansi_color }}{%endif%}{{ weather.play_condition.message | safe }}{%if color%}\033[0m{%endif%} │
|
||||
╰─{{ '─'* len(weather.play_condition.message) }}─╯
|
||||
{{ weather.name }}
|
||||
Feels Like: {{ weather.main.feels_like }}
|
||||
Air Quality: {{ air_quality.list.0.main.aqi }}
|
||||
Sunset: {{ datetime.fromtimestamp(sunset).strftime(format = '%I:%M %p') }}
|
||||
Visibility: {{ weather.visibility }}
|
||||
{% if weather.wind.speed > 5 -%}
|
||||
Wind Speed: {{ weather.wind.speed }}
|
||||
{% endif -%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue