summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weather-widget/weather.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua
index 4ae586b..07849c9 100644
--- a/weather-widget/weather.lua
+++ b/weather-widget/weather.lua
@@ -452,7 +452,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