Added source Gästrike Återvinnare (#1667)

* Added source Gastrike Återvinnare

* reformat + raise exception instead of returning [] + fixed typo

---------

Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
This commit is contained in:
Emil Torp
2024-01-15 23:32:13 +01:00
committed by GitHub
parent 3dd16e6b04
commit 3123b83dac
4 changed files with 116 additions and 1 deletions

View File

@@ -0,0 +1,39 @@
# Gästrike Återvinnare
Support for schedules provided by [Gästrike Återvinnare](https://gastrikeatervinnare.se/privat/hamtningsdag/), serving the region of Gästrikland, Sweden.
## Configuration via configuration.yaml
```yaml
waste_collection_schedule:
sources:
- name: gastrikeatervinnare_se
args:
street: STREET_NAME
city: CITY_NAME
```
### Configuration Variables
**street**
*(string) (required)*
**city**
*(string) (required)*
## Example
```yaml
waste_collection_schedule:
sources:
- name: tekniskaverken_se
args:
street: Bryggargatan 6
city: Sandviken
```
## How to get the source argument
The source argument is the street including number and the city to the house with waste collection.
The address can be tested [here](https://gastrikeatervinnare.se/privat/hamtningsdag/).
Note that the city can't be used in the search above, and is only used as a differentiator in case several citys have the same street address.