007620b2b4ce466a8f2f7ae4b50a37f738ab48e1
[khome.git] / home / bin / notify_weather
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)
This page took 0.044852 seconds and 3 git commands to generate.