From a1ebd2af6cc9600060ad63c4957dc4e0976f4834 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 14 Jul 2020 09:49:18 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9B=85=20Decrease=20weather=20update=20frequ?= =?UTF-8?q?ency=20to=202=20minutes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref #167 --- weather-widget/weather.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua index 4fcdba7..21d3d0d 100644 --- a/weather-widget/weather.lua +++ b/weather-widget/weather.lua @@ -450,7 +450,11 @@ local function worker(args) end))) -- watch('cat /home/pmakhov/.config/awesome/awesome-wm-widgets/weather-widget/weather.json', 5, update_widget, weather_widget) - watch(string.format(GET_FORECAST_CMD, owm_one_cal_api), 5, update_widget, weather_widget) + watch( + string.format(GET_FORECAST_CMD, owm_one_cal_api), + 120, -- API limit is 1k req/day; day has 1440 min; every 2 min is good + update_widget, weather_widget, + ) return weather_widget end