This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Weather ### | |
#kyoto = 260010 | |
#tokyo = 130010 | |
#shiga = 250010 | |
WEATHER=$(curl -s http://weather.livedoor.com/forecast/webservice/json/v1\?city\=260010 | jq -r '.forecasts[] | select(.dateLabe\ | |
l == "今日").telop' ); | |
case $WEATHER in | |
曇時々晴) WE="☁ /☀";; | |
曇時々雨) WE="☁ /☂";; | |
曇時々雪) WE="☁ /☃";; |