mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 04:06:03 +01:00
2.0 KiB
2.0 KiB
Abfallwirtschaft Zollernalbkreis
Support for schedules provided by https://www.abfallkalender-zak.de/.
Configuration via configuration.yaml
waste_collection_schedule:
sources:
- name: abfall_zollernalbkreis_de
args:
city: CITY
street: STREET
types:
- "restmuell"
- "gelbersack"
- "papiertonne"
- "biomuell"
- "gruenabfall"
- "schadstoffsammlung"
- "altpapiersammlung"
- "schrottsammlung"
- "weihnachtsbaeume"
- "elektrosammlung"
Configuration Variables
city
(string) (required)
street
(integer) (optional)
types
(list of string) (required)
Example
waste_collection_schedule:
sources:
- name: abfall_zollernalbkreis_de
args:
city: "2,3,4"
street: 3
types:
- "restmuell"
- "gelbersack"
- "papiertonne"
- "biomuell"
- "gruenabfall"
- "schadstoffsammlung"
- "altpapiersammlung"
- "schrottsammlung"
- "weihnachtsbaeume"
- "elektrosammlung"
How to get the source arguments
Hardcore Variant: Extract arguments from website
Another way get the source arguments is to extract the arguments from the website using a (desktop) browser with developer tools, e.g. Google Chrome:
- Open https://www.abfallkalender-zak.de/.
- Enter your data, but don't click on "ICS Download" so far!
- Open the Developer Tools (Ctrl + Shift + I) and open the
Networktab. - Now click the "ICS Download" button.
- You should see (amongst other's) one POST entry to Host
https://www.abfallkalender-zak.de/labeled/in the network recording. - Select
/on the left hand side and click on Request on the right hand side. - At the
Form Datayou can find the values forcityandstreetetc..