add time indication
This commit is contained in:
parent
5f4d1f24d4
commit
f70364619b
3 changed files with 10 additions and 3 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Get weather data..."
|
||||
wget -O weather.json "https://api.open-meteo.com/v1/forecast?latitude=43.4516&longitude=-80.4925&hourly=temperature_2m,weather_code&start_date=2025-08-23&end_date=2025-08-23&timezone=America/Toronto"
|
||||
wget -O tmpweather.json "https://api.open-meteo.com/v1/forecast?latitude=43.4516&longitude=-80.4925&hourly=temperature_2m,weather_code&start_date=2025-08-23&end_date=2025-08-23&timezone=America/Toronto"
|
||||
jq --arg timestamp "$(date '+%Y %m %d %H %M %S')" '. + {"timestamp": $timestamp}' tmpweather.json > weather.json
|
||||
echo "Generate document..."
|
||||
./typst compile --format png document.typ
|
||||
echo "Convert to image..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue