mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
Merge branch 'weather-city' into experimental
This commit is contained in:
commit
cf72cc7e49
@ -6,7 +6,7 @@ NOW_TIME=$(date +%s)
|
|||||||
TIME_PASSED=$((NOW_TIME-CACHE_TIME))
|
TIME_PASSED=$((NOW_TIME-CACHE_TIME))
|
||||||
if [[ "$TIME_PASSED" -gt "1200" ]]
|
if [[ "$TIME_PASSED" -gt "1200" ]]
|
||||||
then
|
then
|
||||||
curl -m 2 -s wttr.in/\?format\="%c%t" > $CACHE_FILE
|
curl -m 2 -s wttr.in/$WEATHER_CITY\?format\="%c%t" > $CACHE_FILE
|
||||||
fi
|
fi
|
||||||
cat $CACHE_FILE
|
cat $CACHE_FILE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user