added swansea_gov_uk source (#1527)

* added swansea_gov_uk source

* refactoring/reformatting

---------

Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
This commit is contained in:
Peter Barnes
2023-12-18 17:20:26 +00:00
committed by GitHub
parent 55847a4448
commit 38038b53d0
4 changed files with 148 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
# Swansea Council
Support for schedules provided by [Swansea Council](https://swansea.gov.uk/), UK.
If collection data is available for the address provided, it will return household and recycling waste collection dates.
## Configuration via configuration.yaml
```yaml
waste_collection_schedule:
sources:
- name: swansea_gov_uk
args:
street_name: STREET_NAME
post_code: POST_CODE
```
### Configuration Variables
**street_name** _(string) (required)_ : Any part of the road/street name
**post_code** _(string) (required)_ : Full postcode of the property
## Example:
```yaml
waste_collection_schedule:
sources:
- name: swansea_gov_uk
args:
street_name: "cwmdonkin"
post_code: "SA20RA"
```
## How to verify that your address works
Visit [swansea.gov.uk/recyclingsearch](https://swansea.gov.uk/recyclingsearch) and search for your street name and postcode.