add wikipedia fact
This commit is contained in:
parent
3fb3c4f63f
commit
26a2cfb91b
3 changed files with 20 additions and 34 deletions
|
|
@ -1,7 +1,10 @@
|
|||
echo "Get Wikipedia fact..."
|
||||
wget -qO- "https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/events/$(date +%m)/$(date +%d)" | \
|
||||
jq -r '.events[0] | "\(.year): \(.text)"' > event.txt
|
||||
echo "Generate document..."
|
||||
./typst compile --format png document.typ
|
||||
echo "Convert to image..."
|
||||
mogrify -resize 400x300^ -gravity center -extent 400x300 document_ready.png document_ready.bmp
|
||||
convert -rotate 90 -resize 400x300^ -gravity center -extent 400x300 document.png document.bmp
|
||||
echo "Update display..."
|
||||
python3 display.py
|
||||
echo "Done."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue