-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path2.1-date.yaml
More file actions
40 lines (40 loc) · 1.1 KB
/
2.1-date.yaml
File metadata and controls
40 lines (40 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
alias: 날짜 라벨
description: ""
triggers:
- trigger: time
at: "00:00:00"
conditions: []
actions:
- action: gicisky.write
data:
payload:
- type: text
value: "{{ now().strftime('%m월 %d일') }}"
font: fonts/GmarketSansTTFBold.ttf
anchor: mt
x: 125
"y": 10
size: 45
color: black
- type: text
value: |
{% set day_map = {
'Monday': '월요일',
'Tuesday': '화요일',
'Wednesday': '수요일',
'Thursday': '목요일',
'Friday': '금요일',
'Saturday': '토요일',
'Sunday': '일요일'
} %} {{ day_map[now().strftime('%A')] }}
font: fonts/GmarketSansTTFBold.ttf
anchor: mb
x: 125
"y": 108
size: 45
color: |
{% set date = now().strftime('%A') %}
{{ 'red' if date == 'Saturday' or date == 'Sunday' else 'black' }}
target:
device_id: 84cd077d3c883242348f7a2ce0fb3c75
mode: single