dotfiles/.local/scripts/bbr/0010_300_weather

18 lines
317 B
Plaintext
Raw Normal View History

2022-10-03 02:06:02 +08:00
#!/bin/bash
CITY="Tyumen"
COLOR1="#AAAAAA"
COLOR2="#444444"
icon=$(curl -s "wttr.in/$CITY?format=%c")
icon=$(echo $icon | tr -d ' ')
temp=$(curl -s "wttr.in/$CITY?format=%t")
wind=$(curl -s "wttr.in/$CITY?format=%w")
echo "^b$COLOR2^^c$COLOR1^ $wind ^b$COLOR1^^c$COLOR2^ $icon ^c$COLOR1^^b$COLOR2^ $temp ^d^"