* add Abfall_IO ics source * Zollernalbkreis stopped working use abfall_io_ics now --------- Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
2.9 KiB
Abfall.IO / AbfallPlus.de
Support for schedules provided by Abfall.IO. The official homepage is using the URL AbfallPlus.de instead.
This source is designed for the old API of Abfall.IO. If your region/preovider uses the new API you should use the Abfall ICS version source instead. Your provider uses the new API if you can see an ICS button above your collection dates on the website after selecting your location and waste types.
Configuration via configuration.yaml
waste_collection_schedule:
sources:
- name: abfall_io
args:
key: KEY
f_id_kommune: KOMMUNE
f_id_bezirk: BEZIRK
f_id_strasse: strasse
f_id_strasse_hnr: HNR
f_abfallarten:
- 1
- 2
- 3
Configuration Variables
key
(hash) (required)
f_id_kommune
(integer) (required)
f_id_bezirk
(integer) (optional)
f_id_strasse
(integer) (required)
f_id_strasse_hnr
(string) (optional)
f_abfallarten
(list of integer) (optional)
Example
waste_collection_schedule:
sources:
- name: abfall_io
args:
key: "8215c62763967916979e0e8566b6172e"
f_id_kommune: 2999
f_id_strasse: 1087
How to get the source arguments
Simple Variant: Use wizard script
There is a script with an interactive command line interface which generates the required source configuration:
First, install the Python module inquirer. Then run this script from a shell and answer the questions.
Hardcore Variant: Extract arguments from website
Another way get the source arguments is to us a (desktop) browser with developer tools, e.g. Google Chrome:
- Open your county's
Abfuhrterminehomepage, e.g. https://www.lrabb.de/start/Service+_+Verwaltung/Abfuhrtermine.html. - Enter your data, but don't click on
Datei exportierenso far! - Select
Exportieren als:ICS - Open the Developer Tools (Ctrl + Shift + I) and open the
Networktab. - Now click the
Datei exportierenbutton. - You should see one entry in the network recording.
- Select the entry on the left hand side and scroll down to
Query String Parameterson the right hand side. - Here you can find the value for
key. - Now go down to the next section
Form Data. - Here you can find the values for
f_id_kommune,f_id_bezirk,f_id_strasse,f_id_strasse_hnrandf_abfallarten. All other entries don't care.