weather scripts integrated

This commit is contained in:
Luke Smith committed 2019-03-31 22:22:51 -04:00
1 parent d0d9ae45e1
commit 4139a6a0e7
2 files changed
+15 -12

No files matched your search

-6
View File
@@ -1,6 +0,0 @@
#!/bin/sh
# Updates weather forecast
ping -q -w 1 -c 1 "$(ip r | grep default | tail -1 | cut -d ' ' -f 3)" >/dev/null || exit
location="$1"; [ -z "$location" ] || location="$location+"
curl -s "wttr.in/$location" > /tmp/weatherreport
pkill -RTMIN+5 i3blocks && notify-send "🌞 Weather forecast updated."