ambervalley_gov_uk add predict argument, which tries to predict collections further in the future

This commit is contained in:
5ila5
2024-09-19 15:18:18 +02:00
committed by 5ila5
parent 1aabc69c14
commit e8a316f68a
5 changed files with 69 additions and 25 deletions

View File

@@ -10,6 +10,7 @@ waste_collection_schedule:
- name: ambervalley_gov_uk
args:
uprn: UPRN_CODE
predict: PREDICT (optional) True or False
```
### Configuration Variables
@@ -17,6 +18,11 @@ waste_collection_schedule:
**uprn**
*(string) (required)*
**predict**
*(boolean) (optional|defaults to false)*
If `predict` is set to `True`, the source will try to predict the next collection date based on the previous collection dates and collection frequency. By default this source only provides the next collection date.
## Example
```yaml
@@ -29,4 +35,4 @@ waste_collection_schedule:
## How to get the source argument
An easy way to discover your Unique Property Reference Number (UPRN) is by going to <https://www.findmyaddress.co.uk/> and entering in your address details.
An easy way to discover your Unique Property Reference Number (UPRN) is by going to <https://www.findmyaddress.co.uk/> and entering in your address details.