Commit | Line | Data |
---|---|---|
37321ed1 SK |
1 | #! /bin/bash |
2 | ||
3 | # For WEATHER_LOCATION variable | |
4 | . ~/lib/login_variables.private.sh | |
5 | ||
6 | weather_report=$(curl "http://wttr.in/${WEATHER_LOCATION}?1TFq") | |
7 | notify-send "$weather_report" -u low | |
8 | ||
9 | # wttr options: | |
10 | # 0 # only current weather | |
11 | # 1 # current weather + today's forecast | |
12 | # 2 # current weather + today's + tomorrow's forecast | |
13 | # A # ignore User-Agent and force ANSI output format (terminal) | |
14 | # F # do not show the "Follow" line | |
15 | # n # narrow version (only day and night) | |
16 | # q # quiet version (no "Weather report" text) | |
17 | # Q # superquiet version (no "Weather report", no city name) | |
18 | # T # switch terminal sequences off (no colors) |