Add support for hygea.be (#90)

* feat: add support for hygea

* chore: renamaed hygea to follow the rule

* fix: impossible to import and added icons

* fix: datetime instead of date

* fix: range instead of data

* fix: data instead of day

* fix: handling bad response

* fix: 'Déchets residuels' not working properly

* fix: 'Déchets residuels' not working properly

* disabled 'Dechets residuels' because it is not returned by the api

* doc: add documentation

Co-authored-by: Tim Simon <tim@mirahi.io>
This commit is contained in:
Timothee Simon
2021-11-01 10:39:05 +01:00
committed by GitHub
parent 8ff1a33561
commit d9cd5bfe80
2 changed files with 90 additions and 0 deletions

31
doc/source/hygea_be.md Normal file
View File

@@ -0,0 +1,31 @@
# Hygea
Support for schedules provided by [hygea.be](https://www.hygea.be/).
## Configuration via configuration.yaml
```yaml
waste_collection_schedule:
sources:
- name: hygea_id
args:
street_id: ID
```
You id can be found in the url when visiting the [the calendar](https://www.hygea.be/votre-calendrier-de-collecte.html) for your street.
It may also work by giving it your post code, but this "api" is a mess so only do that if you have no other choice
### Configuration Variables
**street_id**<br>
*(string) (required)*
## Example
```yaml
waste_collection_schedule:
sources:
- name: hygea_id
args:
street_id: 3758
```