mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 04:06:03 +01:00
fix abfallnavi_de
abfallnavi.de changed their service api. Now it is no sufficient any more to use the extracted street or house number id to fetch the dates because the ids frequently change. Therefore it is now mandatory to specify city, street and house number and the scraper has to query the current id every time.
This commit is contained in:
@@ -10,6 +10,7 @@ waste_collection_schedule:
|
||||
- name: abfallnavi_de
|
||||
args:
|
||||
service: SERVICE
|
||||
ort: SERVICE
|
||||
strasse: STRASSE
|
||||
hausnummer: hausnummer
|
||||
```
|
||||
@@ -19,11 +20,14 @@ waste_collection_schedule:
|
||||
**service**<br>
|
||||
*(string) (required)*
|
||||
|
||||
**ort**<br>
|
||||
*(string) (required)*
|
||||
|
||||
**strasse**<br>
|
||||
*(integer) (required)*
|
||||
*(string) (required)*
|
||||
|
||||
**hausnummer**<br>
|
||||
*(integer) (optional)*
|
||||
*(string) (optional)*
|
||||
|
||||
## Example
|
||||
|
||||
@@ -32,8 +36,9 @@ waste_collection_schedule:
|
||||
sources:
|
||||
- name: abfallnavi_de
|
||||
args:
|
||||
service: lindlar
|
||||
strasse: 53585
|
||||
service: coe
|
||||
ort: Coesfeld
|
||||
strasse: Ahornweg
|
||||
```
|
||||
|
||||
## How to get the source arguments
|
||||
@@ -42,4 +47,4 @@ There is a script with an interactive command line interface which generates the
|
||||
|
||||
[https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/custom_components/waste_collection_schedule/package/wizard/abfallnavi_de.py](https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/custom_components/waste_collection_schedule/package/wizard/abfallnavi_de.py).
|
||||
|
||||
Just run this script from a shell and answer the questions.
|
||||
Just run this script from a shell and answer the questions.
|
||||
|
||||
Reference in New Issue
Block a user