dwmbar/modules/weather

16 lines
204 B
Text
Raw Normal View History

#!/bin/bash
# Deps:
# curl
2019-10-21 18:42:40 +00:00
get_weather()
{
curl -s v2.wttr.in | grep -e "Weather" | sed 's/C,.*/C/g; s/+//g; s/.*\[0m.//g; s/.//2'
}
if [ $(( 10#$(date +'%S') % 30 )) -eq 0 ]; then
get_weather
fi