diff --git a/README.md b/README.md index 3c49c3a5..66e25ffc 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ Currently the following service providers are supported: - [Stadtreinigung.Hamburg](./doc/source/stadtreinigung_hamburg.md) - [Abfallwirtschaft Zollernalbkreis](./doc/source/abfall_zollernalbkreis_de.md) - [MyMuell App](./doc/source/jumomind_de.md) +- [Sector27.de](./doc/source/sector27_de.md) ### Netherlands diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/sector27_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/sector27_de.py new file mode 100644 index 00000000..e69de29b diff --git a/doc/source/sector27_de.md b/doc/source/sector27_de.md new file mode 100644 index 00000000..6b5a845c --- /dev/null +++ b/doc/source/sector27_de.md @@ -0,0 +1,54 @@ +http://muellkalender.sector27.de/muellkalender-oer-erkenschwick.html + +# sector27.de + +Support for schedules provided by [Sector27.de](https://muellkalender.sector27.de). Some Cities use this service, e.g. Datteln,Oer-Erkenschwick and Marl. This source will show you schedules from the actualmonth an 2 month ahead. + +## Configuration via configuration.yaml + +```yaml +waste_collection_schedule: + sources: + - name: sector27_de + args: + licenseKey: VALIDKEY + cityId: CITYID + streetId: STREETID +``` + +### Configuration Variables + +**VALIDKEY**
+*(string) (required)* + +**CITIYID**
+*(string) (required)* + +**STREETID**
+*(string) (required)* + +## Example + +```yaml +waste_collection_schedule: + sources: + - name: sector27_de + args: + licenseKey: Dattelnx2345612 + cityId: 9 + streetId: 2162 +``` + +## How to get the source arguments + +At this time this can only be done via "hacking". You have to open the website of your service. + +e.g. [Oer-Erkenschwick](http://muellkalender.sector27.de/muellkalender-oer-erkenschwick.html) +select your street and press "aktualisieren". The schedule for your street is shown. +Now start the developer tools in your browser (usually with F12). Press "aktualisieren" again and look in "network" tab wich url is refreshed. There is on that looks like this: + +https://muellkalender.sector27.de/web/fetchPickups?callback=callbackFunc&*licenseKey=OSCXXXKREHXXX*&serverStage=development&*cityId=8*&*streetId=1789*&viewdate=1627812000&viewrange=yearRange&_=1629621078660 + +Take the marked values and you are prepared. + + diff --git a/info.md b/info.md index 6f8673e3..552c5e8c 100644 --- a/info.md +++ b/info.md @@ -57,6 +57,7 @@ Currently the following service providers are supported: - [Stadtreinigung.Hamburg](https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/stadtreinigung_hamburg.md) - [Abfallwirtschaft Zollernalbkreis](https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/abfall_zollernalbkreis_de.md) - [MyMuell App](./doc/source/jumomind_de.md) +- [Sector27.de](./doc/source/sector27_de.md) ### Netherlands