Update 0010_300_weather
This commit is contained in:
parent
ea8ebd5001
commit
a2530b3f18
|
@ -16,7 +16,7 @@ icon=$(echo $icon | tr -d ' ')
|
||||||
|
|
||||||
temp=$(curl -s "wttr.in/$CITY?format=%t")
|
temp=$(curl -s "wttr.in/$CITY?format=%t")
|
||||||
|
|
||||||
wind=$(curl -s "wttr.in/$CITY?format=%w")
|
wind=$(curl -s https://wttr.in/@178.23.190.182?format=j2 | python3 -c "import sys, json; print(json.load(sys.stdin)['current_condition'][0]['windspeedKmph'])")
|
||||||
|
|
||||||
|
|
||||||
echo "^b$COLOR2^^c$COLOR1^ ^b$COLOR1^^c$COLOR2^ $icon ^c$COLOR1^^b$COLOR2^ $temp ^d^"
|
echo "^b$COLOR2^^c$COLOR1^ $wind ^b$COLOR1^^c$COLOR2^ $icon ^c$COLOR1^^b$COLOR2^ $temp ^d^"
|
||||||
|
|
Loading…
Reference in New Issue