add time indication
This commit is contained in:
parent
5f4d1f24d4
commit
f70364619b
3 changed files with 10 additions and 3 deletions
|
|
@ -4,6 +4,9 @@ margin: ("x":0cm,"y":0cm)
|
|||
)
|
||||
#let today = datetime.today()
|
||||
#let weather = json("weather.json")
|
||||
#let timestamp_data = weather.timestamp.split(" ")
|
||||
//#let time = datetime(hour: int(date_data.at(3)), minute: int(date_data.at(4)), second:0)
|
||||
#let current_hour = int(timestamp_data.at(3))
|
||||
#let icons_map = (
|
||||
"0": "icons/clear_day.svg",
|
||||
"1": "icons/clear_day.svg",
|
||||
|
|
@ -65,7 +68,8 @@ margin: ("x":0cm,"y":0cm)
|
|||
|
||||
#grid(
|
||||
columns: (1fr,2fr,2fr),
|
||||
align: (right,center,center),
|
||||
align: (horizon+right,horizon+center,horizon+center),
|
||||
stroke: (x,y) => if int(times.at(y*2+8)) == current_hour or int(times.at(y*2+9)) == current_hour{(y:black)},
|
||||
..values.flatten().map(x => text(size:1.7em)[#x])
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue