Merge pull request #168 from webknjaz/bugfixes/167-weather-upd-freq
⛅ Decrease weather update frequency to 2 minutes
This commit is contained in:
commit
8dd2793651
|
@ -450,7 +450,11 @@ local function worker(args)
|
||||||
end)))
|
end)))
|
||||||
|
|
||||||
-- watch('cat /home/pmakhov/.config/awesome/awesome-wm-widgets/weather-widget/weather.json', 5, update_widget, weather_widget)
|
-- 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
|
return weather_widget
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue