mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 04:06:03 +01:00
add random offset to fetch-time
to avoid peak loads at the service providers
This commit is contained in:
@@ -51,6 +51,7 @@ waste_collection_schedule:
|
||||
sources:
|
||||
- name: SOURCE
|
||||
fetch_time: FETCH_TIME
|
||||
random_fetch_time_offset: RANDOM_FETCH_TIME_OFFSET
|
||||
day_switch_time: DAY_SWITCH_TIME
|
||||
separator: SEPARATOR
|
||||
args:
|
||||
@@ -79,6 +80,11 @@ Name of the source. Equates to the file name (without ```.py```) of the source.
|
||||
|
||||
Time of day when to fetch new data from the source. Data will be fetched once per day.
|
||||
|
||||
**random_fetch_time_offset**<br>
|
||||
*(int) (optional, default: ```60```)*
|
||||
|
||||
Random offset to the `fetch_time` in minutes. Used to distribute the fetch commands of all HO instances over a large period of time to avoid peak loads at the service providers.
|
||||
|
||||
**day_switch_time**<br>
|
||||
*(time) (optional, default: ```"10:00"```)*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user