X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Fnotify_weather;h=91775beb1df2c78c8c27b3c7b6886c7b03efcef0;hb=11b7df8d9c6623d857070d7577b559161b43a806;hp=007620b2b4ce466a8f2f7ae4b50a37f738ab48e1;hpb=37321ed15ff25d8477e69f81d2bf9047e2830060;p=khome.git diff --git a/home/bin/notify_weather b/home/bin/notify_weather index 007620b..91775be 100755 --- a/home/bin/notify_weather +++ b/home/bin/notify_weather @@ -1,18 +1,3 @@ #! /bin/bash -# For WEATHER_LOCATION variable -. ~/lib/login_variables.private.sh - -weather_report=$(curl "http://wttr.in/${WEATHER_LOCATION}?1TFq") -notify-send "$weather_report" -u low - -# wttr options: -# 0 # only current weather -# 1 # current weather + today's forecast -# 2 # current weather + today's + tomorrow's forecast -# A # ignore User-Agent and force ANSI output format (terminal) -# F # do not show the "Follow" line -# n # narrow version (only day and night) -# q # quiet version (no "Weather report" text) -# Q # superquiet version (no "Weather report", no city name) -# T # switch terminal sequences off (no colors) +notify-send 'weather summary' "$(< ~/.pista-out/weather-summary)" -u low