aboutsummaryrefslogtreecommitdiff
path: root/modules/weather
blob: 42887b71586d432c7383984c31661d19930d0176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Deps:
# 	curl


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