mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
5 lines
449 B
HTML
5 lines
449 B
HTML
{# NOAA SWPC space-weather alerts. Fields from payload->data->data. #}
|
|
{% set d = (event.data.get('data') or {}).get('data') or {} %}
|
|
{% if d.get('product_id') is not none %}<dt>Product</dt><dd><code>{{ d.product_id }}</code></dd>{% endif %}
|
|
{% if d.get('issue_datetime') is not none %}<dt>Issued</dt><dd>{{ d.issue_datetime }}</dd>{% endif %}
|
|
{% if d.get('message') is not none %}<dt>Message</dt><dd>{{ d.message | truncate(240) }}</dd>{% endif %}
|