diff --git a/template.liquid b/template.liquid new file mode 100644 index 0000000..c8ded28 --- /dev/null +++ b/template.liquid @@ -0,0 +1,57 @@ +{% assign json_data = data | where: "TRMNL_ID", trmnl.plugin_settings.custom_fields_values.device_id | first %} +{% assign my_id = trmnl.plugin_settings.custom_fields_values.device_id %} + +{% if json_data %} + +
+
+
+
+
+ + {{ json_data.header }} +
+ {{ json_data.tagline }} + +
+
+
+

    {{ json_data.info }}

+
+
+ + {% assign room_days = json_data.days | split: ',' %} + {% for day in room_days %} + +
+ {{ day }} +
+ {% endfor %} +
+

{{json_data.note}}

+
+
+
+
+
+ + +

DeviceID: {{ my_id }} Updated at {{ "now" | date: "%s" | plus: trmnl.user.utc_offset | date: "%H:%M" }}

+
+{% else %} +
+ +
+{% endif %} + +